20 April 2012

DataSift Interaction CheatSheet #1:
A Tweet Reply

I've recently been working on an open source Android client for the DataSift platform and was subsequently making heavy use of our Developer Documentation site.

My notes quickly became this hyperlinked cheatsheet of an example interaction that would show you all the output of a particular interaction that one might encounter.

{
    "demographic": {
        "gender": "male"
    },
    "interaction": {
        "source": "TweetDeck",
        "author": {
            "username": "NetworkString",
            "name": "Gareth Llewellyn",
            "id": 21790170,
            "avatar": "http://a0.twimg.com/profile_images/1641848373/avatar2crop_normal.jpg",
            "link": "http://twitter.com/NetworkString"
        },
        "type": "twitter",
        "created_at": "Thu, 12 Apr 2012 09:01:11 +0000",
        "content": "@afharrold @milkreading @Scroobiuspipyo @benincitizen 'twas a good night. Thanks guys!",
        "id": "1e1847e0c9a2a580e074bd0afad1676c",
        "link": "http://twitter.com/NetworkString/statuses/190363927127928832"
    },
    "klout": {
        "amplification": 18,
        "network": 20.92,
        "score": 41,
        "true_reach": 484
    },
    "language": {
        "tag": "en"
    },
    "salience": {
        "content": {
            "sentiment": 6
        }
    },
    "twitter": {
        "created_at": "Thu, 12 Apr 2012 09:01:11 +0000",
        "id": "190363927127928832",
        "in_reply_to_screen_name": "afharrold",
        "in_reply_to_status_id": "190363261789667328",
        "in_reply_to_user_id": "19920358",
        "mentions": [
            "afharrold",
            "milkreading",
            "Scroobiuspipyo",
            "BeninCitizen"
        ],
        "source": "<a href=\"http://www.tweetdeck.com\" rel=\"nofollow\">TweetDeck</a>",
        "text": "@afharrold @milkreading @Scroobiuspipyo @benincitizen 'twas a good night. Thanks guys!",
        "user": {
            "name": "Gareth Llewellyn",
            "url": "http://blog.networksaremadeofstring.co.uk",
            "description": "SysAdmin / Operations guy at DataSift.com Casual Android Developer and Airsofter",
            "location": "Reading, UK",
            "statuses_count": 963,
            "followers_count": 159,
            "friends_count": 109,
            "screen_name": "NetworkString",
            "lang": "en",
            "time_zone": "London",
            "listed_count": 8,
            "id": 21790170,
            "id_str": "21790170",
            "created_at": "Tue, 24 Feb 2009 20:00:40 +0000"
        }
    }
}