This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://api.datasift.com/push/create \ | |
-d 'hash=50395c37ace276ae6e5f82d79c6ccbf8' \ | |
-d 'name=flyyeroldbird' \ | |
-d 'output_type=pigeon' \ | |
-d 'output_params.name=Bob' \ | |
-d 'output_params.latitude="57.13424"' \ | |
-d 'output_params.longitude="-11.324324"' \ | |
-d 'output_params.type="British Show Racer"' \ | |
-d 'output_params.encapsulatePackets=true' \ | |
-d 'output_params.font="comic sans"' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://api.datasift.com/v1/source/delete \ | |
-d 'id=d779a6e49a3d41e22fd76e38782db082' \ | |
-H 'Authorization: datasift-user:your-datasift-api-key' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://api.datasift.com/v1/source/get \ | |
-d 'id=fd2e72e3a7ae40c2a6e86e96381d8165' \ | |
-H 'Authorization: datasift-user:your-datasift-api-key' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": "Could not find the specified source \"d77906e49a3d41e298d76e38782db084\"" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"source_type": "facebook_page", | |
"status": "running", | |
"parameters": [], | |
"auth": [ | |
{ | |
"identity_id": "51a86d7062464613b7db231d685c4083", | |
"source_id": "d71906e49a3d41e298d76e38782db083", | |
"status": "valid", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": "Invalid source type meow_pages" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": "Bad Request (400): {\"exception\":\"BadRequest400Exception\",\"message\":\"an identity with the same token already exists\",\"success\":false}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://api.datasift.com/v1/source/create \ | |
-d 'source_type=facebook_page' \ | |
-d 'name=fbp-theguardian' \ | |
-d 'parameters=%7B%22likes%22%3A%20true%2C%22posts_by_others%22%3Atrue%2C%22comments%22%3Atrue%7D' | |
-d 'resources=%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22parameters%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22url%22%3A%20%22http%3A%2F%2Fwww.facebook.com%2Ftheguardian%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22title%22%3A%20%22The%20Guardian%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%2010513336322%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%5D' \ | |
-d 'auth=%5B%7B%22parameters%22%3A%7B%22value%22%3A%22911056353669203%7C099f2ce9a5d4d23a47ec4ee39a3caac8%22%7D%2C%22expires_at%22%3A1388556000%7D%5D' \ | |
-H 'Authorization: datasift-user:your-datasift-api-key' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"parameters": { | |
"url": "http://www.facebook.com/theguardian", | |
"title": "The Guardian", | |
"id": 10513336322 | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "4ffaee9aebd52ba37a7f", | |
"name": "preview", | |
"progress": 100, | |
"status": "succeeded", | |
"feeds": "twitter", | |
"sample": 1, | |
"end": 1359936000, | |
"created_at": 1364314662, | |
"start": 1359849600, |