Fix stackoverflow tag, minor doc cleanup for batch API
This commit is contained in:
parent
1c849c7e7a
commit
b0b03cc363
|
@ -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).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue