Skip to content

Instantly share code, notes, and snippets.

View badmetacoder's full-sized avatar

Jacek Artymiak badmetacoder

View GitHub Profile
{
"count": 0,
"page": 1,
"pages": 0,
"per_page": 20,
"log_entries": []
}
HTTP/1.1 400 Bad Request
Server: nginx/0.8.55
Date: Fri, 05 Jul 2013 09:59:20 GMT
Content-Type: application/json
Connection: keep-alive
X-API-Version: 1
P3P: CP="CAO PSA"
X-Served-By: <server_name>
{"error": "The data requested is no longer available"}
curl -X POST 'https://api.datasift.com/v1/pull' \
-d 'id=d468655cfe5f93741ddcd30bb309a8c7' \
-d 'cursor=de8f75fd8b0359f457b6a39bd58c43ee' \
-H 'Authorization: datasift-user:your-datasift-api-key'
X-DataSift-Cursor-Current: de8f75fd8b0359f457b6a39bd58c43ee
X-DataSift-Cursor-Next: 321b50e20cc9a15453b774e229d2b59a
HTTP/1.1 204 No Content
Server: nginx/0.8.55
Date: Fri, 05 Jul 2013 09:59:20 GMT
Content-Type: application/json
Connection: keep-alive
X-API-Version: 1
P3P: CP="CAO PSA"
X-DataSift-Cursor-Current: 3b29a57fa62474d2c3cd4ca55510c4fe
X-Served-By: <server_name>
HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 05 Jul 2013 09:56:34 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
X-API-Version: 1
P3P: CP="CAO PSA"
X-DataSift-Cursor-Current: de8f75fd8b0359f457b6a39bd58c43ee
X-DataSift-Cursor-Next: 321b50e20cc9a15453b774e229d2b59a
curl -X POST 'https://api.datasift.com/v1/pull' \
-d 'id=d468655cfe5f93741ddcd30bb309a8c7' \
-d 'size=1' \
-d 'cursor=de8f75fd8b0359f457b6a39bd58c43ee' \
-H 'Authorization: datasift-user:your-datasift-api-key'
GET /8bc638ddff76a9c01bd6a454de03bd30 HTTP/1.1
Host: stream.datasift.com
Authorization: <username>:<api_key>
Connection: Keep-Alive
curl -X POST 'https://api.datasift.com/v1/push/create' \
-d 'name=connectorpull' \
-d 'hash=42d388f8b1db997faaf7dab487f11290' \
-d 'output_type=pull' \
-d 'output_params.format=json_new_line' \
-H 'Authorization: datasift-user:your-datasift-api-key'
curl -X POST 'https://api.datasift.com/v1/push/create' \
-d 'name=connectors3' \
-d 'hash=SourceStreamHash' \
-d 'output_type=s3' \
-d 'output_params.bucket=datasift-s3' \
-d 'output_params.directory=interactions' \
-d 'output_params.acl=private' \
-d 'output_params.auth.access_key=YourAmazonAWSAccessKey' \
-d 'output_params.auth.secret_key=YourAmazonAWSSecretKey' \
-d 'output_params.delivery_frequency=0' \