RESTful API
/api/v2/activities
Request Type
GET
Returns the identity's most recent activities from their social feed.
Example URL
https://example.stitchz.net/api/v2/activities?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3&format=json
Available Providers
Request
Required | Parameter | Type | Description |
---|---|---|---|
![]() |
Bearer | string | The application's unique Oauth2 bearer token (access token) in the request header |
![]() |
Identity | string | The identity string provided by Stitchz when the user logged in. |
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/activities?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3
GET /api/v2/activities?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
-H "Accept: application/json"
-A "example client"
https://example.stitchz.net/api/v2/activities?identity=http%3a%2f%2fwww.facebook.com%2f3408Rq4958qw3
GET /api/v2/activities?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 returned contains the fields and attributes as defined by the service provider.
<wantlist>
<wants>
<rating>0</rating>
<basic_information>
<labels>
<id>129270</id>
<resource_url>http://api.discogs.com/labels/129270</resource_url>
<catno>EKS-74025</catno>
<name>Elektra (2)</name>
<entity_type>1</entity_type>
</labels>
<formats>
<descriptions>LP</descriptions>
<descriptions>Compilation</descriptions>
<descriptions>Unofficial Release</descriptions>
<name>Vinyl</name>
<qty>2</qty>
</formats>
<thumb>http://api.discogs.com/image/R-150-2334309-1282652153.jpeg</thumb>
<title>Absolutely Rare</title>
<artists>
<join> </join>
<name>Doors, The</name>
<anv> </anv>
<tracks> </tracks>
<role> </role>
<resource_url>http://api.discogs.com/artists/56798</resource_url>
<id>56798</id>
</artists>
<resource_url>http://api.discogs.com/releases/2334309</resource_url>
<year>2010</year>
<id>2334309</id>
</basic_information>
<notes> </notes>
<notes_public>false</notes_public>
<resource_url>http://api.discogs.com/users/<username>/wants/2334309</resource_url>
<id>2334309</id>
</wants>
<pagination>
<per_page>50</per_page>
<items>5</items>
<page>1</page>
<urls />
<pages>1</pages>
</pagination>
</wantlist>
{
"?xml":{"@version":"1.0","@standalone":"no"},
"wantlist":
{
"wants":
[
{
"rating":"0",
"basic_information":
{
"labels":
{
"id":"129270",
"resource_url":"http://api.discogs.com/labels/129270",
"catno":"EKS-74025",
"name":"Elektra (2)",
"entity_type":"1"
},
"formats":
{
"descriptions":["LP","Compilation","Unofficial Release"],
"name":"Vinyl",
"qty":"2"
},
"thumb":"http://api.discogs.com/image/R-150-2334309-1282652153.jpeg",
"title":"Absolutely Rare",
"artists":
{
"join":"",
"name":"Doors, The",
"anv":"",
"tracks":"",
"role":"",
"resource_url":"http://api.discogs.com/artists/56798",
"id":"56798"
},
"resource_url":"http://api.discogs.com/releases/2334309",
"year":"2010",
"id":"2334309"
},
"notes":"",
"notes_public":"false",
"resource_url":"http://api.discogs.com/users/<username>/wants/2334309",
"id":"2334309"
},
],
"pagination":
{
"per_page":"50",
"items":"5",
"page":"1",
"urls":null,
"pages":"1"
}
}
}