Exemplo n.º 1
0
 def __init__(self, login, api_key):
     BaseShortener.__init__(self, api_key)
     self.login = login
     self.default_request_params = {
         'format': 'json',
         'login': self.login,
         'apiKey': self.api_key,
     }
Exemplo n.º 2
0
 def __init__(self, login, api_key):
     BaseShortener.__init__(self, api_key)
     self.login = login
     self.default_request_params = {
         'format': 'json',
         'login':  self.login,
         'apiKey': self.api_key,
     }
Exemplo n.º 3
0
 def __init__(self, api_key=None):
     BaseShortener.__init__(self, api_key=None)
Exemplo n.º 4
0
 def __init__(self, api_key=None):
     BaseShortener.__init__(self, api_key)
     # goo.gl mandates that requests containing JSON content bodies must be
     # accompanied by a "Content-Type: application/json" request header.
     # Otherwise, the request will result in an Error (400: Bad Request).
     self.headers['Content-Type'] = 'application/json'
Exemplo n.º 5
0
 def __init__(self):
     BaseShortener.__init__(self, api_key=None)
     self.default_request_params = {
         'format': 'json',
     }
     self.service_url = VGD_SERVICE_URL
Exemplo n.º 6
0
 def __init__(self, api_key=None):
     BaseShortener.__init__(self, api_key)
     # goo.gl mandates that requests containing JSON content bodies must be
     # accompanied by a "Content-Type: application/json" request header.
     # Otherwise, the request will result in an Error (400: Bad Request).
     self.headers['Content-Type'] = 'application/json'
Exemplo n.º 7
0
 def __init__(self, api_key=None):
     BaseShortener.__init__(self, api_key=None)