查询用户所在自定义分组

跳转到: 导航, 搜索
(查询自定义规则分组)
(接口请求参数)
第24行: 第24行:
 
{{api_args|follower_id|true|long|粉丝id。}}
 
{{api_args|follower_id|true|long|粉丝id。}}
 
|}
 
|}
 +
 +
调用示例:
 +
 +
curl "https://m.api.weibo.com/2/messages/custom_rule/getid.json?access_token=ACCESS_TOKEN&follower_id=FOLLOWER_ID"
  
 
==返回结果==
 
==返回结果==

2014年9月16日 (二) 19:45的版本

查询自定义规则分组

查询用户所在分组

URL

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

HTTP请求方式

GET

是否需要登录


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


接口请求参数

参数详情:

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

调用示例:

curl "https://m.api.weibo.com/2/messages/custom_rule/getid.json?access_token=ACCESS_TOKEN&follower_id=FOLLOWER_ID"

返回结果

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

{
    "groupid": 123123123
}

失败返回

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