Get an Input¶
Get information for a single input.
Endpoint¶
GET https://api.crowdynews.com/collection/inputs/{id}
Request Parameters¶
URL PARAMETER | VALUE DESCRIPTION |
---|---|
id | The resource ID of the input. The consumer that wants to retrieve the input must have access to the contract said input belongs to, otherwise this action is forbidden. |
QUERY PARAMETER | VALUE DESCRIPTION |
---|---|
access_token | A valid OAuth access token with the correct permission(s). |
Response Format¶
On success, the HTTP status code in the response header is
200 OK
and the response body will contain an input object in JSON
format. 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/collection/inputs/565d4de40f6e5595f6e68111?access_token={your access token}
Response:
HTTP/1.1 200
{
"_id": "565d4de40f6e5595f6e68111",
"created": "2016-03-22T15:01:49.081Z",
"createdBy": "John Doe",
"lastModified": "2016-03-22T15:01:49.081Z",
"lastModifiedBy": "John Doe",
"active": true,
"display": true,
"service": "twitter",
"type": "user",
"input": "crowdynews",
"contractId": "565c4df4056e859526e62257",
"collectionId": "565d4de4046e659546e62151"
}