Get a Filter Set¶
Get information for a single filter set.
Endpoint¶
GET https://api.crowdynews.com/collection/sets/{id}
Request Parameters¶
URL PARAMETER | VALUE DESCRIPTION |
---|---|
id | The resource ID of the set. The consumer that wants to retrieve the set must have access to the contract said set 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 a set 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/sets/565d4de4056f859526d53389?access_token={your access token}
Response:
HTTP/1.1 200
{
"_id": "565d4de4056f859526d53389",
"created": "2016-05-03T10:26:22.009Z",
"lastModified": "2016-05-03T10:26:22.009Z",
"lastModifiedBy": "John Doe",
"createdBy": "John Doe",
"contractId": "565c4df4056e859526e62257",
"name": "Twitter Blacklist",
"preCondition": {
"operator": "equals",
"field": "service",
"value": "twitter",
"not": false
},
"active": true,
"rules": [
{
"operator": "equals",
"field": "user",
"value": "Justin Bieber",
"not": false
}
],
"or": false
}