From c67444734d724ee93c9e951a48da81902663eb2e Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Thu, 7 Oct 2010 22:12:34 +0000 Subject: [PATCH] Added example for generating request. git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@45 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef --- lib/google/api_client.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/google/api_client.rb b/lib/google/api_client.rb index 3ebb9e98f..ce0a97a10 100644 --- a/lib/google/api_client.rb +++ b/lib/google/api_client.rb @@ -245,6 +245,14 @@ module Google # otherwise. Defaults to true. # # @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={