Friendships/exists
« Return to the list of API methods
Contents |
URL
http://yourserver/api/friendships/exists.format
Description
It checks for the relationship between user_a and user_b. When successful, user info about the user will be returned.
Available formats
XML, JSON
HTTP Method
GET
Requires authentication
YES
Required parameters
- user_a: The ID or username of the subject user. Example: http://yourserver/api/friendships/exists.xml?user_a=3
- user_b: The ID or username of the user you want to check the relationship. Example: http://yourserver/api/friendships/exists.json?user_b=abcded
Return example (XML)
curl http://yourserver/api/friendships/exists.xml -G -d "user_a=operador&user_b=lorena"
<friends>false</friends>
Return example (JSON)
curl http://yourserver/api/friendships/exists.json -G -d "user_a=operador&user_b=lorena"
false
