sigh. background: https://dev.twitter.com/discussions/21281
@Aaron1011, i'm open to doing something stronger about this if you want, e.g. don't allow them both at the same time, or silently disable signin_with_twitter if access_type is set (which isn't as nice).
import urllib
import base64
import json
+import logging
from tweepy.error import TweepError
from tweepy.api import API
try:
if signin_with_twitter:
url = self._get_oauth_url('authenticate')
+ if access_type:
+ logging.warning(
+ "Warning! Due to a Twitter API bug, signin_with_twitter "
+ "and access_type don't always play nice together. Details: "
+ "https://dev.twitter.com/discussions/21281")
else:
url = self._get_oauth_url('authorize')
self.request_token = self._get_request_token(access_type=access_type)