diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0ab66..6840371 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG * Designed to make the most of DataSift's latest API version and features * Designed for Ruby 2.3+. Use features like keyword parameters across the board +## v.3.7.2 (2016-11-08) +### Fixes +* Uses correct timestamp params in PYLON Sample API calls. `start_time` -> `start` and `end_time` - `end` + ## v.3.7.1 (2016-10-06) ### Added * Explicit support for 500 and 502 responses from the API @@ -33,6 +37,10 @@ CHANGELOG * Support for the [/pylon/update](http://dev.datasift.com/docs/platform/api/rest-api/endpoints/pylonupdate) API endpoint * Support for [API v1.3](http://dev.datasift.com/docs/platform/api/api-changelog) +## v.3.5.2 (2016-11-08) +### Fixes +* Uses correct timestamp params in PYLON Sample API calls. `start_time` -> `start` and `end_time` - `end` + ## v.3.5.1 (2016-10-06) ### Added * Explicit support for 500 and 502 responses from the API diff --git a/VERSION b/VERSION index a76ccff..0b2eb36 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.7.1 +3.7.2 diff --git a/lib/pylon.rb b/lib/pylon.rb index b98bcf9..1b2d4d4 100644 --- a/lib/pylon.rb +++ b/lib/pylon.rb @@ -174,8 +174,8 @@ def sample(hash = '', count = nil, start_time = nil, end_time = nil, filter = '' params.merge!(hash: hash) unless hash.empty? params.merge!(id: id) unless id.empty? params.merge!(count: count) unless count.nil? - params.merge!(start_time: start_time) unless start_time.nil? - params.merge!(end_time: end_time) unless end_time.nil? + params.merge!(start: start_time) unless start_time.nil? + params.merge!(end: end_time) unless end_time.nil? if filter.empty? DataSift.request(:GET, 'pylon/sample', @config, params)