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)
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)