Beispiel #1
0
def print_api(method, function, access_token, **kwargs):
    if access_token:
        rc = py7D.oauth_request(method, function, access_token, **kwargs)
    else:
        rc = py7D.request(method, function, **kwargs)

    pprint(rc['http_headers'])
    print json.dumps(rc['response'], indent=4)
Beispiel #2
0
def print_api(method, function, access_token, **kwargs):
    if access_token:
        rc = py7D.oauth_request(method,
                                function,
                                access_token,
                                **kwargs)
    else:
        rc = py7D.request(method, function, **kwargs)

    pprint(rc['http_headers'])
    print json.dumps(rc['response'], indent=4)
def get_locker(access_token):
    resp = py7D.oauth_request('user', 'locker', access_token=access_token)
    return resp
def get_locker(access_token):
    resp = py7D.oauth_request('user', 'locker', access_token=access_token)
    return resp