Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

src/t/w/tweetapp-HEAD/standalone/twitter_oauth_handler.py   tweetapp(Download)
 
try:
    from config import OAUTH_APP_SETTINGS
except:
    pass
def get_service_key(service, cache={}):
    if service in cache: return cache[service]
    return cache.setdefault(
        service, "%s&" % encode(OAUTH_APP_SETTINGS[service]['consumer_secret'])
        )
    return client.get('/account/verify_credentials')['screen_name']
 
OAUTH_APP_SETTINGS['twitter']['specifier_handler'] = twitter_specifier_handler
 
# ------------------------------------------------------------------------------
    def __init__(self, service, handler, oauth_callback=None, **request_params):
        self.service = service
        self.service_info = OAUTH_APP_SETTINGS[service]
        self.service_key = None
        self.handler = handler
    def get(self, service, action=''):
 
        if service not in OAUTH_APP_SETTINGS:
            return self.response.out.write(
                "Unknown OAuth Service Provider: %r" % service

src/r/e/Reader2Twitter-HEAD/twitter_oauth_handler.py   Reader2Twitter(Download)
 
try:
    from config import OAUTH_APP_SETTINGS  #you need to specify the consumer_key and consumer_secret to use the oAUTH API
except:
    pass
def get_service_key(service, cache={}):
    if service in cache: return cache[service]
    return cache.setdefault(
        service, "%s&" % encode(OAUTH_APP_SETTINGS[service]['consumer_secret'])
        )
        return cre['screen_name']
 
OAUTH_APP_SETTINGS['twitter']['specifier_handler'] = twitter_specifier_handler
 
# ------------------------------------------------------------------------------
    def __init__(self, service, handler, oauth_callback=None, **request_params):
        self.service = service
        self.service_info = OAUTH_APP_SETTINGS[service]
        self.service_key = None
        self.handler = handler
    def get(self, service, action=''):
 
        if service not in OAUTH_APP_SETTINGS:
            return self.response.out.write(
                "Unknown OAuth Service Provider: %r" % service

src/a/r/ArduinoTweetLib-server-HEAD/twitter_oauth_handler.py   ArduinoTweetLib-server(Download)
 
try:
    from config import OAUTH_APP_SETTINGS
except:
    pass
def get_service_key(service, cache={}):
    if service in cache: return cache[service]
    return cache.setdefault(
        service, "%s&" % encode(OAUTH_APP_SETTINGS[service]['consumer_secret'])
        )
    return client.get('/account/verify_credentials')['screen_name']
 
OAUTH_APP_SETTINGS['twitter']['specifier_handler'] = twitter_specifier_handler
 
class MyError(Exception):
    def __init__(self, service, handler, oauth_callback=None, **request_params):
        self.service = service
        self.service_info = OAUTH_APP_SETTINGS[service]
        self.service_key = None
        self.handler = handler
    def get(self, service, action=''):
 
        if service not in OAUTH_APP_SETTINGS:
            return self.response.out.write(
                "Unknown OAuth Service Provider: %r" % service

src/r/e/Reader2Twitter-HEAD/sina_oauth_handler.py   Reader2Twitter(Download)
 
try:
    from config import OAUTH_APP_SETTINGS  #you need to specify the consumer_key and consumer_secret to use the oAUTH API
except:
    pass
def _oauth(handler = None):
    """获取oauth认证类"""
    auth_client = WebOAuthHandler(OAUTH_APP_SETTINGS['weibo']['consumer_key'], OAUTH_APP_SETTINGS['weibo']['consumer_secret'], handler = handler)
    if handler:
        if auth_client.get_cookie():

src/t/a/taskoverflow-HEAD/to-site/taskoverflow/twitteroauth.py   taskoverflow(Download)
 
try:
    from config import OAUTH_APP_SETTINGS
except:
    pass
    return client.get('/account/verify_credentials')['screen_name']
 
OAUTH_APP_SETTINGS['twitter']['specifier_handler'] = twitter_specifier_handler
 
# ------------------------------------------------------------------------------
    def __init__(self, service, request, response, consumer_key, consumer_secret, oauth_callback=None, **request_params):
        self.service = service
        self.service_info = OAUTH_APP_SETTINGS[service]
        self.service_key = None
        self.request = request