Friendships/exists
目录 |
friendships/exists
Tests for the existence of friendship between two users. Will return true if user_a follows user_b, otherwise will return false.
URL:
http://api.t.sina.com.cn/friendships/exists.format
Formats:
xml, json
HTTP Method(s):
POST, DELETE
Requires Authentication (about authentication):
true if user_a or user_b is protected
API rate limited (about rate limiting):
true
Parameters:
- user_a. Required. The ID or screen_name of the subject user.
- user_b. Required. The ID or screen_name of the user to test for following.
Response (about return values):
XML example:
<friends>true</friends>
JSON example:
true
Usage examples:
cURL (about cURL):
curl -u user:password http://api.t.sina.com.cn/friendships/exists.xml?user_a=dougw&user_b=al3x