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": "Could not find the specified source \"1234567890\"" | |
} |
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/update \ | |
-d 'id=e25d533cf287ec44fe66e8362f61961f' \ | |
-d 'source_type=facebook_page' \ | |
-d 'name=fbp-giffgaff' \ | |
-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%2Ftherollingstones%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22title%22%3A%20%22The%20Rolling%20Stones%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%208305888286%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%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.giffgaff.com%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22title%22%3A%20%22giffgaffmobile%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20287613300716%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%5D' \ | |
-d 'auth=%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 |
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/therollingstones", | |
"title": "The Rolling Stones", | |
"id": 8305888286 | |
} | |
}, | |
{ | |
"parameters": { |
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": { | |
"value": "363056350669209|09af1ce9c5d8d23147ec4eeb9a33aac2" | |
}, | |
"expires_at": 1388556000 | |
}, | |
{ | |
"parameters": { | |
"value": "123456789012345|f9af1ce9c5d8d23147ecfeeb9a33aad4" |
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/therollingstones", | |
"title": "The Rolling Stones", | |
"id": 8305888286 | |
} | |
} | |
] |
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": { | |
"value": "363056350669209|09af1ce9c5d8d23147ec4eeb9a33aac2" | |
}, | |
"expires_at": 1388556000 | |
} | |
] |
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/source/update \ | |
-d 'id=e25d533cf287ec44fe66e8362f61961f' \ | |
-d 'source_type=facebook_page' \ | |
-d 'name=fbp-theguardian' \ | |
-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": { | |
"value": "911056353669203|099f2ce9a5d4d23a47ec4ee39a3caac8" | |
}, | |
"expires_at": 1388556000 | |
} | |
] |