diff --git a/CHANGE.md b/CHANGE.md index c9e0606..431f50c 100755 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,6 +1,11 @@ Change Log ========== +VERSION 2.5.13 +------------- +* Fix for invalid request "Missing required organizationKey" when using createProject +* Fix for no body content being sent when using createProject + VERSION 2.5.12 ------------- * Fix a bug that caused arrays in the POST body to be encoded as strings diff --git a/src/Client/KeenIOClient.php b/src/Client/KeenIOClient.php index 70fc81f..022a9dd 100755 --- a/src/Client/KeenIOClient.php +++ b/src/Client/KeenIOClient.php @@ -41,7 +41,7 @@ class KeenIOClient extends GuzzleClient { - const VERSION = '2.5.12'; + const VERSION = '2.5.13'; /** * Factory to create new KeenIOClient instance. @@ -106,6 +106,7 @@ public function getCommand($name, array $params = []) $params['writeKey'] = $this->getKeyForWriting(); $params['readKey'] = $this->getKeyForReading(); $params['organizationId'] = $this->getConfig('organizationId'); + $params['organizationKey'] = $this->getConfig('organizationKey'); return parent::getCommand($name, $params); } diff --git a/src/Client/Resources/keen-io-3_0.php b/src/Client/Resources/keen-io-3_0.php index f2741e0..9eff6e1 100755 --- a/src/Client/Resources/keen-io-3_0.php +++ b/src/Client/Resources/keen-io-3_0.php @@ -40,10 +40,9 @@ 'type' => 'string', 'required' => true, ), - 'project_data' => array( - 'location' => 'json', - 'type' => 'array', - ), + ), + 'additionalParameters' => array( + 'location' => 'json' ), ),