Skip to content

Instantly share code, notes, and snippets.

@edstenson
edstenson / TwitterInputFormat.json
Created September 9, 2011 14:28
Twitter input format
{
"in_reply_to_user_id": null,
"user": {
"profile_use_background_image": true,
"favourites_count": 16,
"protected": false,
"url": null,
"listed_count": 2,
"profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme1/bg.png",
"profile_background_color": "C0DEED",
@edstenson
edstenson / TwitterOutputFormat.json
Created September 9, 2011 14:36
Twitter output format
{
"interaction": {
"source": "TweetDeck",
"author": {
"username": "stewarttownsend",
"name": "Stewart Townsend",
"id": 14065694,
"avatar": "http://a2.twimg.com/profile_images/1302306721/twitterpic_normal.jpg",
"link": "http://twitter.com/stewarttownsend"
},
@edstenson
edstenson / PHP compile
Created September 20, 2011 11:00
api.datasift.net/compile in PHP
<?php
/**
* This example is written in PHP
* It demonstrates
@edstenson
edstenson / PHP compile
Created September 20, 2011 11:03
api.datasift.net/compile in PHP
<?php
/**
* This example is written in PHP
* It demonstrates
* - creating a CSDL statement
* - making an API request to Datasift
* - displaying the data returned
*/
@edstenson
edstenson / TwitterIpFormat.json
Created September 23, 2011 11:35
Twitter input format
{
"in_reply_to_user_id": null,
"user": {
"profile_use_background_image": true,
"favourites_count": 16,
"protected": false,
"url": null,
"listed_count": 2,
"profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme1/bg.png",
"profile_background_color": "C0DEED",
@edstenson
edstenson / Stream.json
Created September 23, 2011 12:32
Example of JSON for /stream output
{
"stream": [
{
"interaction": {
"source": "Twitter for iPhone",
"author": {
"username": "C12UFO",
"name": "Harry Metcalfe",
"id": 92770254,
"avatar": "http://a3.twimg.com/profile_images/551435066/DSC02615_normal.JPG",
@edstenson
edstenson / validate.json
Created September 23, 2011 13:48
Validate JSON object
{
"created_at":"2011-05-12 11:18:07",
"dpu":"0.1"
}
@edstenson
edstenson / compile.json
Created September 23, 2011 13:49
Compile JSON output
{
"hash": "9fe133a7ee1bd2757f1e26bd78342458",
"created_at": "2011-05-12 11:18:07",
"dpu": "0.1"
}
@edstenson
edstenson / cost.json
Created September 23, 2011 13:53
Cost JSON output
{
"costs": {
"contains": {
"count": 1,
"cost": 4,
"targets": {
"interaction.content": {
"count": 1,
"cost": 4
}
@edstenson
edstenson / recording1.json
Created September 23, 2011 14:02
Recording JSON output (with id)
{
"id": "47ce46821c942ff42f8e",
"start_time": 1313055762,
"finish_time": null,
"name": "Inherit everything 123",
"hash": "9e2e0ba334ee76aa06ef42d5565dbb70"
}