Package restkit :: Module resource
[hide private]
[frames] | no frames]

Module resource

source code


restkit.resource
~~~~~~~~~~~~~~~~

This module provide a common interface for all HTTP equest. 

    >>> from restkit import Resource
    >>> res = Resource('http://friendpaste.com')
    >>> res.get('/5rOqE9XTz7lccLgZoQS4IP',headers={'Accept': 'application/json'}).body
    u'{"snippet": "hi!", "title": "", "id": "5rOqE9XTz7lccLgZoQS4IP", "language": "text", "revision": "386233396230"}'
    >>> res.status
    200

Classes [hide private]
  Resource
A class that can be instantiated for access to a RESTful resource, including authentication.
Variables [hide private]
  __package__ = 'restkit'