call(method,
path,
ret_type,
ret_is_list=False,
data=None,
params=None,
api_version=1)
| source code
|
Generic function for calling a resource method and automatically
dealing with serialization of parameters and deserialization of return
values.
- Parameters:
method - method to call (must be bound to a resource; e.g.,
"resource_root.get").
path - the full path of the API method to call.
ret_type - return type of the call.
ret_is_list - whether the return type is an ApiList.
data - Optional data to send as payload to the call.
params - Optional query parameters for the call.
api_version - minimum API version for the call.
|