Did I find the right examples for you? yes no

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

src/v/2/v2ex-HEAD/t.py   v2ex(Download)
from twitter.oauth import OAuthToken
 
from config import twitter_consumer_key as CONSUMER_KEY
from config import twitter_consumer_secret as CONSUMER_SECRET
 
    def get(self):
        self.session = Session()
        member = CheckAuth(self)
        if member:
            twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET)
            if member:
                request_token = self.session['request_token']
                twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, request_token)
                access_token = twitter.getAccessToken()
                twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
            if member and 'request_token' in self.session:
                request_token = self.session['request_token']
                twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, request_token)
                access_token = twitter.getAccessToken()
                twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)

src/v/2/v2ex-HEAD/xmpp.py   v2ex(Download)
from twitter.oauth import OAuthToken
 
from config import twitter_consumer_key as CONSUMER_KEY
from config import twitter_consumer_secret as CONSUMER_SECRET
 
            if member.twitter_oauth == 1:
                access_token = OAuthToken.from_string(member.twitter_oauth_string)
                twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
                status = message.body
                result = None

src/v/2/v2ex-HEAD/topic.py   v2ex(Download)
from twitter.oauth import OAuthToken
 
from config import twitter_consumer_key as CONSUMER_KEY
from config import twitter_consumer_secret as CONSUMER_SECRET
 
                    if member.twitter_oauth == 1 and member.twitter_sync == 1:
                        access_token = OAuthToken.from_string(member.twitter_oauth_string)
                        twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
                        status = topic.title + ' #' + topic.node.name + ' http://' + self.request.headers['Host'] + '/t/' + str(topic.num)
                        try:
                if member.twitter_oauth == 1 and member.twitter_sync == 1:
                    access_token = OAuthToken.from_string(member.twitter_oauth_string)
                    twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
                    if topic.replies > page_size:
                        link = 'http://' + self.request.headers['Host'] + '/t/' + str(topic.num) + '?p=' + str(pages) + '#r' + str(topic.replies)

src/v/2/v2ex-HEAD/mail.py   v2ex(Download)
from twitter.oauth import OAuthToken
 
from config import twitter_consumer_key as CONSUMER_KEY
from config import twitter_consumer_secret as CONSUMER_SECRET
 
                    if member.twitter_oauth == 1:
                        access_token = OAuthToken.from_string(member.twitter_oauth_string)
                        twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
                        status = body[1].decode()
                        if len(status) > 140:

src/d/j/django-v2ex-HEAD/v2ex/views/mail.py   django-v2ex(Download)
from twitter.oauth import OAuthToken
 
from config import twitter_consumer_key as CONSUMER_KEY
from config import twitter_consumer_secret as CONSUMER_SECRET
 
                    if member.twitter_oauth == 1:
                        access_token = OAuthToken.from_string(member.twitter_oauth_string)
                        twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
                        status = body[1].decode()
                        if len(status) > 140: