Skip to content

Commit 9ae58fe

Browse files
Merge pull request #132 from beyerz/master
Create Project fix
2 parents 7c3ef0c + 24c4928 commit 9ae58fe

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Change Log
22
==========
33

4+
VERSION 2.5.13
5+
-------------
6+
* Fix for invalid request "Missing required organizationKey" when using createProject
7+
* Fix for no body content being sent when using createProject
8+
49
VERSION 2.5.12
510
-------------
611
* Fix a bug that caused arrays in the POST body to be encoded as strings

src/Client/KeenIOClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class KeenIOClient extends GuzzleClient
4242
{
4343

44-
const VERSION = '2.5.12';
44+
const VERSION = '2.5.13';
4545

4646
/**
4747
* Factory to create new KeenIOClient instance.
@@ -106,6 +106,7 @@ public function getCommand($name, array $params = [])
106106
$params['writeKey'] = $this->getKeyForWriting();
107107
$params['readKey'] = $this->getKeyForReading();
108108
$params['organizationId'] = $this->getConfig('organizationId');
109+
$params['organizationKey'] = $this->getConfig('organizationKey');
109110

110111
return parent::getCommand($name, $params);
111112
}

src/Client/Resources/keen-io-3_0.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
'type' => 'string',
4141
'required' => true,
4242
),
43-
'project_data' => array(
44-
'location' => 'json',
45-
'type' => 'array',
46-
),
43+
),
44+
'additionalParameters' => array(
45+
'location' => 'json'
4746
),
4847
),
4948

0 commit comments

Comments
 (0)