Fix stackoverflow tag, minor doc cleanup for batch API

This commit is contained in:
Steven Bazyl 2012-11-05 11:05:48 -08:00
parent 1c849c7e7a
commit b0b03cc363
2 changed files with 5 additions and 6 deletions

View File

@ -104,9 +104,9 @@ Example:
puts result.data puts result.data
end end
batch.add(:api_method=>urlshortener.url.insert, batch.add(:api_method => urlshortener.url.insert,
:body_object => { 'longUrl' => 'http://example.com/foo' }) :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' }) :body_object => { 'longUrl' => 'http://example.com/bar' })
client.execute(batch) client.execute(batch)
@ -172,7 +172,7 @@ See the full list of [samples on Google Code](http://code.google.com/p/google-ap
## Support ## 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).

View File

@ -59,12 +59,11 @@ module Google
# puts result.data # puts result.data
# end # 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/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/bar' })
# #
# client.execute(batch) # client.execute(batch)
# #
class BatchRequest < Request class BatchRequest < Request
BATCH_BOUNDARY = "-----------RubyApiBatchRequest".freeze BATCH_BOUNDARY = "-----------RubyApiBatchRequest".freeze