修改自定义规则分组

跳转到: 导航, 搜索
(以“=修改自定义规则分组= 开发者可以通过用户UID和分组ID,修改分组名称。 ==URL== https://m.api.weibo.com/2/messages/custom_rule/update.json ...”为内容创建页面)
 
(接口请求参数)
 
(未显示1个用户的3个中间版本)
第1行: 第1行:
 
=修改自定义规则分组=
 
=修改自定义规则分组=
开发者可以通过用户UID和分组ID,修改分组名称。
+
修改分组名
  
 
==URL==
 
==URL==
第22行: 第22行:
 
!width="75%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|说明
 
!width="75%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|说明
 
{{api_args|access_token|true|string|在粉丝服务平台 - 高级功能 - 开发者模式页面中获取,或者OAuth2.0授权后获得, 详细参考 [[Messages_api/access_token|获取粉丝服务平台开发接口的access token]]。}}
 
{{api_args|access_token|true|string|在粉丝服务平台 - 高级功能 - 开发者模式页面中获取,或者OAuth2.0授权后获得, 详细参考 [[Messages_api/access_token|获取粉丝服务平台开发接口的access token]]。}}
{{api_args|uid|true|long|用户id。}}
 
 
{{api_args|id|true|long|分组id。}}
 
{{api_args|id|true|long|分组id。}}
 
{{api_args|name|true|string|分组名称。}}
 
{{api_args|name|true|string|分组名称。}}
 
|}
 
|}
  
 +
 +
调用示例:
 +
 +
curl "https://m.api.weibo.com/2/messages/custom_rule/update.json" -d 'access_token=ACCESS_TOKEN&id=ID&name=NAME'
  
 
==返回结果==
 
==返回结果==
第32行: 第35行:
 
正常情况下,微博会返回下述JSON数据包:
 
正常情况下,微博会返回下述JSON数据包:
 
<pre>
 
<pre>
{"errcode": 0, "errmsg": "ok"}
+
{“error”:”ok”,”error_code”:”0”}
 
</pre>
 
</pre>
  

2014年9月16日 (二) 19:48的最后版本

修改自定义规则分组

修改分组名

URL

https://m.api.weibo.com/2/messages/custom_rule/update.json

HTTP请求方式

POST

是否需要登录


关于登录授权,参见 如何登录授权


接口请求参数

参数详情:

  必选 类型及范围 说明
access_token true string 在粉丝服务平台 - 高级功能 - 开发者模式页面中获取,或者OAuth2.0授权后获得, 详细参考 获取粉丝服务平台开发接口的access token
id true long 分组id。
name true string 分组名称。


调用示例:

curl "https://m.api.weibo.com/2/messages/custom_rule/update.json" -d 'access_token=ACCESS_TOKEN&id=ID&name=NAME'

返回结果

正常情况下,微博会返回下述JSON数据包:

{“error”:”ok”,”error_code”:”0”}

失败返回

{
"request": "XXXX/messages/custom_rule/update",
"errcode": "1000XX",
"errmsg": "error message."
}



文档更新时间: 2014-09-16