def list_all(params=None, connect_key=None): return api_resource.get(params, RESOURCE_URL, connect_key)
def retrieve(charge_id, connect_key=None): if not charge_id: raise error.InvalidRequestError("Charge id cannot be empty", 400) return api_resource.get(None, '{}/{}'.format(RESOURCE_URL, charge_id), connect_key)
def withdrawal_requests(params=None, connect_key=None): return api_resource.get(params, '{}/withdrawal_requests'.format(RESOURCE_URL), connect_key)['withdrawal_requests']
def list_all(connect_key=None): return api_resource.get(None, RESOURCE_URL, connect_key)
def retrieve(connect_key=None): return api_resource.get(None, RESOURCE_URL, connect_key)
def activities(connect_key=None): return api_resource.get(None, '{}/activities'.format(RESOURCE_URL), connect_key)['activities']
def transfer_info(connect_key=None): return api_resource.get(None, '{}/transfer_info'.format(RESOURCE_URL), connect_key)
def get_token(params, connect_key=None): if not params: raise error.InvalidRequestError("Params cannot be empty", 400) return api_resource.get(params, '{}/get_token'.format(RESOURCE_URL), connect_key)
def list_all(user_api_token): params = {'user_api_token': user_api_token} return api_resource.get(params, RESOURCE_URL, None)