Thanks for reply.
I’m in PHP environment, using plain PHP PECL package:
php54-pecl-oauth.x86_64 1.2.2-3.3.amzn1
Token type is read-write, which is stated by response header:
x-access-level: read-write
I’m not sending any cookies.
Here is simplified code or my request:
$oauth = new OAuth($appKey, $appSecret, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);
$oauth->setToken($token, $secret);
$oauth->setTimeout(3000);
$headers = ['User-Agent' => ""];
$args = ['trim_user' => true];
$oauth->fetch('https://api.twitter.com/1.1/statuses/retweet/358226004998766592.json', $args, OAUTH_HTTP_METHOD_POST, $headers);
Seems like PECL package supports only OAuth 1.0. This can be a problem.
But why Error 37 occurs for only part of the same-type requests, while others work fine?