Skip to content

Commit

Permalink
Fix stackoverflow tag, minor doc cleanup for batch API
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Nov 5, 2012
1 parent 1c849c7 commit b0b03cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ Example:
puts result.data
end

batch.add(:api_method=>urlshortener.url.insert,
batch.add(:api_method => urlshortener.url.insert,
:body_object => { 'longUrl' => 'http://example.com/foo' })
batch.add(:api_method=>urlshortener.url.insert,
batch.add(:api_method => urlshortener.url.insert,
:body_object => { 'longUrl' => 'http://example.com/bar' })
client.execute(batch)

Expand Down Expand Up @@ -172,7 +172,7 @@ See the full list of [samples on Google Code](http://code.google.com/p/google-ap

## Support

Please [report bugs at the project on Google Code](http://code.google.com/p/google-api-ruby-client/issues/entry). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api) about the client or APIs on [StackOverflow](http://stackoverflow.com).
Please [report bugs at the project on Google Code](http://code.google.com/p/google-api-ruby-client/issues/entry). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).



5 changes: 2 additions & 3 deletions lib/google/api_client/batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ def initialize(call_id, status = nil, headers = nil, body = nil)
# puts result.data
# end
#
# batch.add(:api_method=>urlshortener.url.insert, :body_object => { 'longUrl' => 'http://example.com/foo' })
# batch.add(:api_method=>urlshortener.url.insert, :body_object => { 'longUrl' => 'http://example.com/bar' })
# batch.add(:api_method => urlshortener.url.insert, :body_object => { 'longUrl' => 'http://example.com/foo' })
# batch.add(:api_method => urlshortener.url.insert, :body_object => { 'longUrl' => 'http://example.com/bar' })
#
# client.execute(batch)
#

class BatchRequest < Request
BATCH_BOUNDARY = "-----------RubyApiBatchRequest".freeze

Expand Down

0 comments on commit b0b03cc

Please sign in to comment.