php - Getting Twitter data with new API -
as twitter has updated api recently, how can number of followers of person?
i such data old api using following, if understand correctly, stop working @ time.
http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitter how can same data using new api? have checked documentation not understand.
well straight new documentation seem biggest difference using 1.1 instead of 1 
you still retreive data using json -
https://api.twitter.com/1.1/statuses/user_timeline.json
the docs requirements are:
always specify either user_id or screen_name when requesting user timeline.
and returned object contains "user" object, contains followers_count key:value pair.
{     {         ......         user: {             .....             "followers_count" : int         }     } } 
Comments
Post a Comment