Hi Nick,

You should see tweets from the user - in the JSON message (i.e. 
data['message']), you should see the normal JSON of a tweet intended for the 
user. You can check to see if there's a "text" field in the message, and if 
the author matches the user, then it's a tweet from the user (the 
"for_user"). Otherwise, it's a mention of the "for_user".


Example of the JSON you might receive:

{

  "for_user": <user_id>,

  "message": {

    "entities": {

      "hashtags": [

      ],

      "urls": [

      ],

      "user_mentions": [

      ]

    },

    "text": "test",

    .... more of the tweet body ....

    "favorited": false,

       "user": {

        .... user body ....

    },

    "id": <tweet_id>

  }

}

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to