Encapsulates a resource, and provides actions to invoke on it.
|
|
__init__(self,
client,
relpath='')
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
invoke(self,
method,
relpath=None,
params=None,
data=None,
headers=None)
Invoke an API method. |
source code
|
|
|
|
get(self,
relpath=None,
params=None)
Invoke the GET method on a resource. |
source code
|
|
|
|
delete(self,
relpath=None,
params=None)
Invoke the DELETE method on a resource. |
source code
|
|
|
|
post(self,
relpath=None,
params=None,
data=None,
contenttype=None)
Invoke the POST method on a resource. |
source code
|
|
|
|
put(self,
relpath=None,
params=None,
data=None,
contenttype=None)
Invoke the PUT method on a resource. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|