@@ -43,7 +43,7 @@ class Configuration(object):
4343
4444 default_api_version = 'v4.0'
4545
46- def __init__ (self , app_key = None , app_sid = None , base_url = None ,
46+ def __init__ (self , client_secret = None , client_id = None , base_url = None ,
4747 api_version = None , debug = False ):
4848 """Constructor"""
4949 # Base url
@@ -72,8 +72,8 @@ def __init__(self, app_key=None, app_sid=None, base_url=None,
7272
7373 # Authentication Settings
7474 # dict to store API key(s)
75- self .api_key = {'api_key ' : app_key if app_key else "" ,
76- 'app_sid ' : app_sid if app_sid else "" }
75+ self .api_key = {'client_secret ' : client_secret if client_secret else "" ,
76+ 'client_id ' : client_id if client_id else "" }
7777 # dict to store API prefix (e.g. Bearer)
7878 self .api_key_prefix = {}
7979
@@ -101,7 +101,7 @@ def __init__(self, app_key=None, app_sid=None, base_url=None,
101101 self .__debug = debug
102102
103103 # On-premise switch
104- self .on_premise = not (app_key or app_sid ) and base_url
104+ self .on_premise = not (client_secret or client_id ) and base_url
105105
106106 # SSL/TLS verification
107107 # Set this to false to skip verifying SSL certificate when calling API
0 commit comments