奇数:Twitter API v1.1 返回错误 (46)“'Twitter REST API v1 不再有效。”来自 VALID 1.1 端点。其他人?
Odd: Twitter API v1.1 returning Error(46) "'The Twitter REST API v1 is no longer active." from a VALID 1.1 endpoint. Any body else?
调用 twitter 时 api v1.1 端点:
https://upload.twitter.com/1.1/media/uplaod.json
我收到以下错误:
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: 64
完整请求通过 python-requests with requests-oauthlib:
POST https://upload.twitter.com/1.1/media/uplaod.json
Content-Length: 25566
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: python-requests/2.4.3 CPython/2.7.2 Windows/post2008Server
Connection: keep-alive
Content-Type: multipart/form-data; boundary=57ae35dd03714226a367e5a8268f9c5b
Authorization: OAuth oauth_nonce="<censored>", oauth_timestamp="1424492683", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="<censored>", oauth_token="<censored>", oauth_signature="<censored>"
--57ae35dd03714226a367e5a8268f9c5b
Content-Disposition: form-data; name="media[]"; filename="4725ec4acf23d7a9a7fd92337f2b4713f746c7df.jpg"
Content-Type: application/octet-stream
<censored...binary...data>
--57ae35dd03714226a367e5a8268f9c5b--
这是今天早些时候的工作。有人可以确认这是一个推特问题,我不会生气吗?
似乎 https://api.twitter.com/1.1/statuses/home_timeline.json 等其他端点工作正常。
单击 link 和 chrome 得到错误:https://upload.twitter.com/1.1/media/uplaod.json
这是 Twitter,不是我...
看来你打错了URL - 只是输入错误。
而是
https://upload.twitter.com/1.1/media/uplaod.json
你应该打电话给:
https://upload.twitter.com/1.1/media/upload.json
调用 twitter 时 api v1.1 端点:
https://upload.twitter.com/1.1/media/uplaod.json
我收到以下错误:
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: 64
完整请求通过 python-requests with requests-oauthlib:
POST https://upload.twitter.com/1.1/media/uplaod.json
Content-Length: 25566
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: python-requests/2.4.3 CPython/2.7.2 Windows/post2008Server
Connection: keep-alive
Content-Type: multipart/form-data; boundary=57ae35dd03714226a367e5a8268f9c5b
Authorization: OAuth oauth_nonce="<censored>", oauth_timestamp="1424492683", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="<censored>", oauth_token="<censored>", oauth_signature="<censored>"
--57ae35dd03714226a367e5a8268f9c5b
Content-Disposition: form-data; name="media[]"; filename="4725ec4acf23d7a9a7fd92337f2b4713f746c7df.jpg"
Content-Type: application/octet-stream
<censored...binary...data>
--57ae35dd03714226a367e5a8268f9c5b--
这是今天早些时候的工作。有人可以确认这是一个推特问题,我不会生气吗?
似乎 https://api.twitter.com/1.1/statuses/home_timeline.json 等其他端点工作正常。
单击 link 和 chrome 得到错误:https://upload.twitter.com/1.1/media/uplaod.json
这是 Twitter,不是我...
看来你打错了URL - 只是输入错误。
而是
https://upload.twitter.com/1.1/media/uplaod.json
你应该打电话给:
https://upload.twitter.com/1.1/media/upload.json