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:
Bob Aman 2010-10-07 22:12:34 +00:00
parent de394a55c6
commit c67444734d
1 changed files with 8 additions and 0 deletions

View File

@ -245,6 +245,14 @@ module Google
# otherwise. Defaults to <code>true</code>. # otherwise. Defaults to <code>true</code>.
# #
# @return [Array] The generated request. # @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( def generate_request(
api_method, parameters={}, body='', headers=[], options={}) api_method, parameters={}, body='', headers=[], options={})
options={ options={