Get connected account¶
Get the information of the social media account used to connect to the contract.
Endpoint¶
GET https://api.crowdynews.com/social-connect/me/{service}
Request Parameters¶
URL PARAMETER | VALUE DESCRIPTION |
---|---|
service | The name of the social media provider to retrieve account information for. Must be one of:
|
QUERY PARAMETER | VALUE DESCRIPTION |
---|---|
access_token | A valid OAuth access token with the correct permission(s). |
contract_id | The resource ID that specifies to which contract the social media provider is connected to. The consumer that wants to get this information must have access to the specified contract, otherwise this action is forbidden. |
Response Format¶
On success, the HTTP status code in the response header is
200 OK
. On error, the header status code is an error code and the response body contains an error object.
Example Request¶
Request:
GET https://api.crowdynews.com/social-connect/me/twitter?contract_id=565c4df4056e859526e62257&access_token={your access token}
Response:
HTTP/1.1 200
{
"id": 96149456,
"id_str": "96149456",
"name": "John Doe",
"screen_name": "jdoe",
"location": "",
"description": "I don't know who I am.",
"url": "http://t.co/1xsQAQYSOS",
}