Skip to content

Commit

Permalink
Added example for generating request.
Browse files Browse the repository at this point in the history
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@45 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
  • Loading branch information
Bob Aman committed Oct 7, 2010
1 parent de394a5 commit c674447
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/google/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ def latest_service(service_name)
# 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={
Expand Down

0 comments on commit c674447

Please sign in to comment.