cowitter icon indicating copy to clipboard operation
cowitter copied to clipboard

Client->oauthForAccessToken実行時にuidとsnが入っていない

Open gaogao-9 opened this issue 8 years ago • 1 comments

AccessTokenを取得するAPIなのですが https://developer.twitter.com/en/docs/basics/authentication/api-reference/access_token のリファレンスの通り、本来であればレスポンスにuser_idとscreen_nameが入るんですが

https://github.com/mpyw/cowitter/blob/master/src/Traits/AuthenticatorTrait.php#L65-L74 の部分で、withCredentialsがOAuthトークンしか受け取らないようになっているので、この2つが切り捨てられるみたいです。

gaogao-9 avatar Jan 21 '18 16:01 gaogao-9

格納場所に非常に困るので,->post() ->postAsync() でも認証系エンドポイントを使えるようにするのが一番いい解決策になりそうです。

(最近メンテナンスできてない)

mpyw avatar Jan 21 '18 16:01 mpyw