- Fix a few headers in the README.md
- Update for PSR-2 compliance
- Remove mcrypt dependency (deprecated in PHP 7.1) and replace it with openssl for scoped key support.
- Update the querying methods to use a POST request instead of a GET request
- Fixes a bug with the return type of queries (reverting back to associated arrays)
- Added a new HTTP Header that tracks the SDK version
- Added Saved Queries and Project Creation
- Updated minimum php and phpunit versions
- Added use of organizationID
- Fix a bug when using analytics method (first parameter is now considered the event collection, as before)
- Allow to specify absolute timeframe
- All commands can now be used with a master key.
- [BC] Method
deleteEvent
has been renamed todeleteEvents
as it allows to delete multiple events. - [BC]
getScopedKey
has been renamedcreateScopedKey
to better reflect its purpose. - [BC]
createScopedKey
anddecryptScopedKey
no longer need an API key: it just reuses the one set in the client. - [BC] The client provides shortcut for the
addEvent
andaddEvents
methods. Instead of:
$client->addEvent(array('event_collection' => 'bar', 'data' => array('my' => 'data')));
Just use it like this:
$client->addEvent('bar', array('my' => 'data'));
If you still want to use the command manually, you must get the commands manually.