def _request(self, action='GET', url='/', data=None, query_params=None):
    if (data is None):
        data = {}
    if (query_params is None):
        query_params = {}
    request = requests.request(action, (self.api_endpoint + url), params=query_params, data=json.dumps(data), headers={'Authorization': 'Bearer {0}'.format(self.options.get('auth_token'))})
    request.raise_for_status()
    return request.json()
def _request(self, action='GET', url='/', data=None, query_params=None):
    if (data is None):
        data = {}
    if (query_params is None):
        query_params = {}
    request = requests.request(action, (self.api_endpoint + url), params=query_params, data=json.dumps(data), headers={'Authorization': 'Bearer {0}'.format(self.options.get('auth_token'))})
    request.raise_for_status()
    return request.json()