Ejemplo n.º 1
0
    def __init__(self, username, account_id, auth):
        p_name = 'Identi.ca(%s)' % username
        Protocol.__init__(self, account_id, p_name, 'https://identi.ca/api',
                          'http://identi.ca/api', 'http://identi.ca/tag',
                          'http://identi.ca/group', 'http://identi.ca',
                          POST_ACTIONS)

        self.REQUEST_TOKEN_URL = 'https://identi.ca/api/oauth/request_token'
        self.ACCESS_TOKEN_URL = 'https://identi.ca/api/oauth/access_token'
        self.AUTHORIZATION_URL = 'https://identi.ca/api/oauth/authorize'

        self.oauth_support = False
        self.uname = None
        self.set_consumer(CK, base64.b64decode(CS + SALT))
        if auth:
            self.set_auth_info(auth)
Ejemplo n.º 2
0
    def __init__(self, username, account_id, auth):
        p_name = 'Twitter(%s)' % username
        Protocol.__init__(self, account_id, p_name,
            'http://api.twitter.com/1',
            'http://search.twitter.com',
            'http://twitter.com/search?q=%23',
            None,
            'http://www.twitter.com',
            POST_ACTIONS)

        self.REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
        self.ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'
        self.AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize'

        self.uname = None
        self.set_consumer(CK, base64.b64decode(CS + SALT))
        if auth:
            self.set_auth_info(auth)
Ejemplo n.º 3
0
    def __init__(self, username, account_id, auth):
        p_name = 'Twitter(%s)' % username
        Protocol.__init__(self, account_id, p_name,
            'http://api.twitter.com/1',
            'http://search.twitter.com',
            'http://twitter.com/search?q=%23',
            None,
            'http://www.twitter.com',
            POST_ACTIONS)

        self.REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
        self.ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'
        self.AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize'

        self.uname = None
        self.set_consumer(CK, base64.b64decode(CS + SALT))
        if auth:
            self.set_auth_info(auth)
Ejemplo n.º 4
0
    def __init__(self, username, account_id, auth):
        p_name = 'Identi.ca(%s)' % username
        Protocol.__init__(self, account_id, p_name,
            'https://identi.ca/api',
            'http://identi.ca/api',
            'http://identi.ca/tag',
            'http://identi.ca/group',
            'http://identi.ca',
            POST_ACTIONS)

        self.REQUEST_TOKEN_URL = 'https://identi.ca/api/oauth/request_token'
        self.ACCESS_TOKEN_URL = 'https://identi.ca/api/oauth/access_token'
        self.AUTHORIZATION_URL = 'https://identi.ca/api/oauth/authorize'

        self.oauth_support = False
        self.uname = None
        self.set_consumer(CK, base64.b64decode(CS + SALT))
        if auth:
            self.set_auth_info(auth)