README.md in parse-ruby-client-0.1.7 vs README.md in parse-ruby-client-0.1.8
- old
+ new
@@ -17,11 +17,11 @@
# Getting Started
## Installation
-`gem "parse-ruby-client", "~> 0.1.7"`
+`gem "parse-ruby-client", "~> 0.1.8"`
---
To get started, load the parse.rb file and call Parse.init to initialize the client object with
your application ID and API key values, which you can obtain from the parse.com dashboard.
@@ -46,11 +46,11 @@
Parse.init
```
The test folder assumes this naming convention for environment variables, so if you want to run the tests, you *must* do this. But it's easy. And good for you, too.
-### New: Load API keys from `global.json` created by Cloud Code
+### Load API keys from `global.json` created by Cloud Code
```ruby
Parse.init_from_cloud_code("path/to/global.json")
```
@@ -151,9 +151,24 @@
## Push Notifications
```ruby
push = Parse::Push.new({"alert" => "I'm sending this push to all my app users!"})
push.save
+```
+
+## Batch Requests
+
+```ruby
+batch = Parse::Batch.new
+batch.add_request({
+ "method" => "POST",
+ "path" => "/1/classes/GameScore",
+ "body" => {
+ "score" => 1337,
+ "playerName" => "Sean Plott"
+ }
+})
+resp = batch.run!
```
## Cloud Code
```ruby