Exemplo n.º 1
0
def list_all(params=None, connect_key=None):
    return api_resource.get(params, RESOURCE_URL, connect_key)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def withdrawal_requests(params=None, connect_key=None):
    return api_resource.get(params,
                            '{}/withdrawal_requests'.format(RESOURCE_URL),
                            connect_key)['withdrawal_requests']
Exemplo n.º 4
0
def list_all(connect_key=None):
    return api_resource.get(None, RESOURCE_URL, connect_key)
Exemplo n.º 5
0
def retrieve(connect_key=None):
    return api_resource.get(None, RESOURCE_URL, connect_key)
Exemplo n.º 6
0
def activities(connect_key=None):
    return api_resource.get(None, '{}/activities'.format(RESOURCE_URL),
                            connect_key)['activities']
Exemplo n.º 7
0
def transfer_info(connect_key=None):
    return api_resource.get(None, '{}/transfer_info'.format(RESOURCE_URL),
                            connect_key)
Exemplo n.º 8
0
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)
Exemplo n.º 9
0
def list_all(user_api_token):
    params = {'user_api_token': user_api_token}
    return api_resource.get(params, RESOURCE_URL, None)