Skip to content

Commit 206e88e

Browse files
committed
Fix Conversation::Create() response (id, not uuid)
1 parent 9b905cc commit 206e88e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Conversations/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function post($conversation)
100100
}
101101

102102
$body = json_decode($response->getBody()->getContents(), true);
103-
$conversation = new Conversation($body['uuid']);
103+
$conversation = new Conversation($body['id']);
104104
$conversation->jsonUnserialize($body);
105105
$conversation->setClient($this->getClient());
106106

test/Conversation/responses/conversation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"uuid": "CON-aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
2+
"id": "CON-aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
33
"name": "NAM-0209adeb-8b42-45d5-82fa-909373338039",
44
"display_name": "Nexmo Chat",
55
"timestamp": {

0 commit comments

Comments
 (0)