README.md in keen-0.7.2 vs README.md in keen-0.7.3
- old
+ new
@@ -131,10 +131,30 @@
Detailed information on available parameters for each API resource can be found on the [API Technical Reference](https://keen.io/docs/api/reference/).
### Other code examples
+#### Batch publishing
+
+The keen-gem supports publishing events in batches via the `publish_batch` method. Here's an example usage:
+
+```ruby
+Keen.publish_batch(
+ :signups => [
+ { :name => "Bob" },
+ { :name => "Mary" }
+ ],
+ :purchases => [
+ { :price => 10 },
+ { :price => 20 }
+ ]
+)
+```
+
+This call would publish 2 `signups` events and 2 `purchases` events - all in just one API call.
+Batch publishing is ideal for loading historical events into Keen IO.
+
#### Authentication
To configure keen-gem in code, do as follows:
```ruby
@@ -175,10 +195,14 @@
To track email opens, simply add an image to your email template that points to this URL.
### Changelog
+##### 0.7.3
++ Add batch publishing support
++ Allow event collection names for querying methods to be symbols. Thanks to [cbartlett](https://github.com/cbartlett).
+
##### 0.7.2
+ Fix support for non-https API URL testing
##### 0.7.1
+ Allow configuration of the base API URL via the KEEN_API_URL environment variable. Useful for local testing and proxies.
@@ -221,7 +245,8 @@
### Community Contributors
+ [alexkwolfe](https://github.com/alexkwolfe)
+ [peteygao](https://github.com/peteygao)
+ [obieq](https://github.com/obieq)
-
++ [cbartlett](https://github.com/cbartlett)
+
Thanks everyone, you rock!