README.md in rdstation-ruby-client-2.6.0 vs README.md in rdstation-ruby-client-2.7.0
- old
+ new
@@ -16,11 +16,12 @@
4. [Events](#Events)
5. [Fields](#Fields)
6. [Webhooks](#Webhooks)
7. [Emails](#Emails)
8. [Segmentations](#Segmentations)
- 9. [Errors](#Errors)
+ 9. [Analytics](#Analytics)
+ 10. [Errors](#Errors)
3. [Changelog](#Changelog)
4. [Migration guide](#Migration-guide)
1. [Upgrading from 1.2.x to 2.0.0](#Upgrading-from-1.2.x-to-2.0.0)
5. [Contributing](#Contributing)
6. [Maintainers](#Maintainers)
@@ -341,10 +342,20 @@
```ruby
client = RDStation::Client.new(access_token: 'access_token', refresh_token: 'refresh_token')
client.segmentations.contacts(segmentation_id)
```
+### Analytics
+Endpoints to [Analytics](https://developers.rdstation.com/reference/get_platform-analytics-emails) information in your RD Station account.
+#### List all email marketing analytics data
+- NOTE: The query params `start_date`(yyyy-mm-dd) and `end_date`(yyyy-mm-dd) are required
+
+```ruby
+client = RDStation::Client.new(access_token: 'access_token', refresh_token: 'refresh_token')
+query_parms = { start_date:'2022-11-02', end_date:'2022-11-08' }
+client.analytics.email_marketing(query_params)
+```
### Errors
Each endpoint may raise errors accoording to the HTTP response code from RDStation:
- `RDStation::Error::BadRequest` (400)