tweepy/tweepy — pull request #476 by snarfed (2014-08-13 00:44:21+00:00)
Title: add x_auth_access_type support to allow requesting read-only tokens for read/write apps

Twitter's OAuth API has a custom `x_auth_access_type` query parameter for the `oauth/request_token` endpoint that lets you specify read or write access, similar to an OAuth scope. (https://dev.twitter.com/docs/api/1/post/oauth/request_token ) This lets you set that with a new `access_type` kwarg in `get_authorization_url()`.

I didn't see an obvious place to mention this in the docs, but I can add it to auth_tutorial.rst or api.rst or wherever if you want.

Also, the Twitter API has a bug that `x_auth_access_type` sometimes conflicts with `/authorize` (ie Sign In with Twitter). This PR logs a warning if you try to use both at the same time, but I'm open to doing something stronger, e.g. not allowing it or silently reverting to `/authenticate` if `access_type` is set.

Thanks in advance!