Twitter v1.1: 400 Bad request

后端 未结 3 1302
有刺的猬
有刺的猬 2021-01-22 10:51

I have problems with the new Twitter API: v1.0 is working without problems, but if I change the URL to v1.1 I get all the time a error \"400 Bad request\" (seen with Firebug).

3条回答
  •  再見小時候
    2021-01-22 11:38

    https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi redirects me to https://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitterapi

    Looks like 1.1 is the same thing as 1

    UPD: Looks like this is a rate limit (as 1.1 link worked for me 2 hours ago). Even if you hit API page for the first time, some of your apps (descktop or mobile) could use API methods.

    UPD2: in 1.1 400 Bad request means you are not autorized (https://dev.twitter.com/docs/error-codes-responses, https://dev.twitter.com/docs/auth/oauth#user-context). So you need to get user context

提交回复
热议问题