예제 #1
0
    def __init__(self, *args, **kwargs):
        kwargs['pathname'] = '/api/v1/users'
        ApiClient.__init__(self, *args, **kwargs)

        self.user_class = User
        if "user_class" in kwargs and kwargs["user_class"]:
            self.user_class = kwargs["user_class"]
예제 #2
0
 def __init__(self, *args, **kwargs):
     if 'base_url' in kwargs and 'api_token' in kwargs:
         kwargs['base_url'] += '/api/v1/groups'
     else:
         kwargs['base_url'] = args[0] + '/api/v1/groups'
         kwargs['api_token'] = args[1]
     ApiClient.__init__(self, **kwargs)
예제 #3
0
 def __init__(self, *args, **kwargs):
     kwargs['pathname'] = '/api/v1/users'
     ApiClient.__init__(self, *args, **kwargs)
예제 #4
0
 def __init__(self, *args, **kwargs):
     #        kwargs['pathname'] = '/api/v1/authn'
     ApiClient.__init__(self, *args, **kwargs)
예제 #5
0
 def __init__(self, *args, **kwargs):
     kwargs['pathname'] = '/api/v1/authn'
     ApiClient.__init__(self, *args, **kwargs)
예제 #6
0
 def __init__(self, *args, **kwargs):
     kwargs['pathname'] = '/oauth2/v1'
     ApiClient.__init__(self, *args, **kwargs)
예제 #7
0
 def __init__(self, base_url, api_token):
     ApiClient.__init__(self, base_url + '/api/v1/groups', api_token)
예제 #8
0
 def __init__(self, base_url, api_token):
     ApiClient.__init__(self, base_url + '/api/v1/org', api_token)
예제 #9
0
 def __init__(self, base_url, api_token):
     ApiClient.__init__(self, base_url + '/api/v1/authn', api_token)
예제 #10
0
 def __init__(self, base_url, api_token):
     ApiClient.__init__(self, base_url + '/api/v1/sessions', api_token)
예제 #11
0
 def __init__(self, base_url, api_token):
     ApiClient.__init__(self, base_url + '/api/v1/sessions', api_token)