C/2/datapush/edit
Xuezheng (讨论 | 贡献)
(以“{{Api_desc_business| uri=datapush/edit| desc=Subscribe keywords and users.| httpMethod=POST| needAuth=False| rateLimit={{B_rate_limit}}| params={{api_args|subid|true...”为内容创建页面)
下一编辑→
(以“{{Api_desc_business| uri=datapush/edit| desc=Subscribe keywords and users.| httpMethod=POST| needAuth=False| rateLimit={{B_rate_limit}}| params={{api_args|subid|true...”为内容创建页面)
下一编辑→
2013年10月11日 (五) 18:52的版本
datapush/edit
Subscribe keywords and users.
URL
https://c.api.weibo.com/2/datapush/edit.json
支持格式
JSON
HTTP请求方式
POST
是否需要登录
False
关于登录授权,参见 如何登录授权
访问授权限制
请求所有商业接口:
- 50000次/小时/IP;
- 50000次/小时/IP;
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | false | string | 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。 |
access_token | false | string | 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。 |
subid | true | int | Subscription ID (See the description for more information). |
add_keywords | false | string | Add keywords that will be subscribed. The keywords should be separated by semiangle comma, and are limited by 20 keywords per call. |
del_keywords | false | string | Delete keywords that have already been subscribed. The keywords should be separated by semiangle comma, and are limited by 20 keywords per call. |
add_users | false | string | Add userids that will be subscribed. The userids should be separated by semiangle comma, and are limited by 50 userids per call. |
del_users | false | string | Delete userids that have already been subscribed. The userids should be separated by semiangle comma, and are limited by 50 userids per call. |
注意事项
- If just parameter ‘subid’ is passed, the subscription info included the keywords and users list will be returned.
- The IP address to call the API must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned.
- Parameter 'access_token' is not needed to pass.
返回结果
JSON示例
//Success { “data”: [ { “uid”: 730, //微任务用户ID “sinaid”: 1235653741, //新浪微博用户ID “nick”: ”随便谁吧”, //新浪微博用户昵称 “stars”: 3, “price”: 95.5, //直发价格 ”reprice“: 95.3 //转发价格 “followers”: 3000000, “weiboclass”: ”汽车,娱乐,新闻”, //微任务帐号分类 “location”: ”北京朝阳”, “gender”: ”男”, “profile_imageurl”: ”http: //www2.img.sina.com.com/asdfsa345.jpg” }, ... ], “count”: 20 } //Failure { "request": "/statuses/bilateral_timeline/ids.json", "error_code": "201XX", "error": "error message." }
关于错误返回值与错误代码,参见 错误代码说明
字段说明
None
其他
None