Blocks/exists/en
Contents |
blocks/exists
Tests whether the specified user is in the authenticating user’s blocking list.
URL
http://api.t.sina.com.cn/blocks/exists.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
GET
Requires Authentication
true
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
true
See the Interface Access Rights Statement for the Request Count Limitaiton details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | true | string | AppKey for the application to identify it. ( This parameter is not needed when using OAuth) |
user_id | true | int64 | User ID to be tested. |
screen_name | false | string | Screen name of the user to be tested. |
Notes
It returns HTTP 400 error, if user_id or screen_name are not provided.
Example Request
- XML
- curl -u "username:password" "http://api.t.sina.com.cn/blocks/exists.xml?source=appkey&user_id=12345"
- JSON
- curl -u "username:password" "http://api.t.sina.com.cn/blocks/exists.json?source=appkey&user_id=12345"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <result>false</result>
JSON Example
{ "result" : false }
Others
None
文档更新时间: 21 January 2011