Exemplo n.º 1
0
 def __init__(self,  client_id,  client_secret,  redirect_uri = 'oob'):
     '''
     Constructor.
     '''
     self.__client_id = client_id
     self.__client_secret = client_secret
     self.__redirect_uri = redirect_uri
     self.__oauth_client = None
     self.__api_client = None
     self.__logout_domain = 'https://openapi.baidu.com/connect/2.0/logout'
     self.__http_object = HttpObject()
     self.__utils = BaiduUtils()
Exemplo n.º 2
0
 def __init__(self,  client_id,  client_secret,  redirect_uri = 'oob'):
     self.__client_id = client_id
     self.__client_secret = client_secret
     self.__redirect_uri = redirect_uri
     self.__domain = 'https://openapi.baidu.com/oauth/2.0/'
     self.__http_object = HttpObject() 
Exemplo n.º 3
0
 def __init__(self):
     self.__http_object = HttpObject()