Ejemplo n.º 1
0
def tp(path, method="GET", body=None, headers=None):
    c = TypePadClient()
    c.add_credentials(CONSUMER, ACCESS_TOKEN, domain="api.typepad.com")
    req = c.request(_get_url(path), method=method, body=body, headers=headers)[1]
    return json.loads(req)
Ejemplo n.º 2
0
def me():
    c = TypePadClient()
    c.add_credentials(CONSUMER, ACCESS_TOKEN, domain="api.typepad.com")
    req = c.request(_get_url('/users/@self.json'))[1]
    return json.loads(req)