-
Notifications
You must be signed in to change notification settings - Fork 0
API Doc: Check List Friendship Access
Carson McLean edited this page Nov 30, 2016
·
4 revisions
With HTTP POST, ask whether an author is friends with a list of authors.
Sending a JSON object as the body of the POST with the query type, a main authorid and then a list of authorids we want to know if the original authorid is friends with. The response JSON will include the query, the author we asked about, and then a list of author's authorids that are friends with the original authorid.
POST /api/friends/de205d94-75b4-c31b-a9b2-e32b9e54ef13 HTTP/1.1
{
"query":"friends",
"author":"9de17f29c12e8f97bcbbd34cc908f1baba40658e",
"authors": [
"de305d54-75b4-431b-adb2-eb6b9e546013",
"ae345d54-75b4-431b-adb2-fb6b9e547891",
]
}
200 OK
{
"query":"friends",
"author":"9de17f29c12e8f97bcbbd34cc908f1baba40658e",
"authors": [
"de305d54-75b4-431b-adb2-eb6b9e546013",
"ae345d54-75b4-431b-adb2-fb6b9e547891",
]
}