跳转到主要内容
POST
Vote on a Reddit post or comment

请求规范

  • 方法与路径: POST /apis/v1/social/accounts/{accountId}/reddit-vote
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/accounts/{accountId}/reddit-vote
  • accountId: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

accountId
string
必填

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$

请求体

application/json
direction
enum<integer>
必填

1 to upvote, -1 to downvote, 0 to clear an existing vote

可用选项:
1,
0,
-1
thingId
string
必填

Reddit fullname of the target. Prefix "t3_" for a post and "t1_" for a comment. A bare id with no prefix is treated as a post ("t3_").

响应

Vote registered

success
boolean