Added example for generating request.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@45 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
parent
de394a55c6
commit
c67444734d
|
@ -245,6 +245,14 @@ module Google
|
|||
# otherwise. Defaults to <code>true</code>.
|
||||
#
|
||||
# @return [Array] The generated request.
|
||||
#
|
||||
# @example
|
||||
# request = client.generate_request(
|
||||
# 'chili.activities.list',
|
||||
# {'scope' => '@self', 'userId' => '@me', 'alt' => 'json'},
|
||||
# '', [], {:signed => true}
|
||||
# )
|
||||
# method, uri, headers, body = request
|
||||
def generate_request(
|
||||
api_method, parameters={}, body='', headers=[], options={})
|
||||
options={
|
||||
|
|
Loading…
Reference in New Issue