RESTful API

 

/api/v2/likes/{id}

Request Type
GET
 
Returns the total number of likes for the identity.
 
Example URL
https://example.stitchz.net/api/v2/likes/121949102388222771?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3
 
Supported Providers
 
Request
Required Parameter Type Description
yes Bearer string The application's unique Oauth2 bearer token (access token) in the request header
yes Identity string The identity string provided by Stitchz when the user logged in.
yes Id number The id of the activity or item as given by the provider. Include the value in the URL of the request, e.g. /api/v2/likes/000000
  Format string The format of the authenticated Stitchz response, XML, JSON, JSONP. A query string parameter can be included in the request (e.g. ?format=json) or a header variable of "Accept" with the proper value, e.g. 'application/json', 'application/xml', etc. The default response is in "JSON" format.
Example Request
$ curl -H "Authorization: Bearer e72e16c7e42f292c6912e7710c838347ae178b4a"
-H "Accept: application/json"
-A "example client"
https://example.stitchz.net/api/v2/likes/125419727_121949102388222771?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3

GET /api/v2/likes/125419727_121949102388222771?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3 HTTP/1.1
User-Agent: example client
Host: example.stitchz.net
Accept: application/json
Authorization: Bearer e72e16c7e42f292c6912e7710c838347ae178b4a
Response
The response is a count of the total likes for the identity provided.
 
Example XML Response
Example JSON Response
<response status="ok" version="1">
    <count>29</count>
</response>
{
"status":"ok","version":1,"count":29
}