0
votes

I know twitter api update to 1.1 and i have get successfully token & tokenSecret

I have checked both api

https://api.twitter.com/1/friends/ids.json?cursor=-1&screen_name=myscreenname

response getting

{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

https://api.twitter.com/1.1/friends/ids.json?cursor=-1&screen_name=myscreenname

response getting

{"errors":[{"message":"Bad Authentication data","code":215}]}

Please help me to get Response of Followers ids list.

1

1 Answers

1
votes

Just tried to execute your request (https://api.twitter.com/1.1/friends/ids.json?cursor=-1&screen_name=myscreenname) in dev console and it works like a charm.

Seems like you've missed the authorization step (autorization with OAuth is required for api v1.1), so verify that you authorized with valid credentials.

You can read more about auth on twitter here or check out documentation for library that you are using to make api requests.