ios - How to retrieve list id by list name in Twitter API -
i've call twitter api's method
https://api.twitter.com/1.1/lists/statuses.json?list_id=12345
to retrieve tweets user in list. customer provide me name of list , i've no idea how list id using list name. list this: https://twitter.com/datasportnews/lists/i-campioni-di-brasile2014
.
i've tried method
https://api.twitter.com/1.1/lists.json?screen_name=i-campioni-di-brasile2014
to id list return message
{"errors":[{"message":"your credentials not allow access resource","code":220}]}.
i'm logged api key , api secret , token well, method doesn't work.
ideas ?
the list name in url referred slug. when want request statuses list using slug
, need pass owner_screen_name
.
for example, in case:
/1.1/lists/statuses.json?slug=i-campioni-di-brasile2014&owner_screen_name=datasportnews
more details on over endpoint's doc page @ https://dev.twitter.com/docs/api/1.1/get/lists/statuses
Comments
Post a Comment