From cb4a29f3e419904c42694222c97f4d87b98bbbb2 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Wed, 22 Nov 2017 12:03:32 +0100 Subject: [PATCH] Add `limit` property to `\MessageBird\Objects\BaseList` Without this, it's not possible to access the returned `limit` value of a list response from the API. --- src/MessageBird/Client.php | 2 +- src/MessageBird/Objects/BaseList.php | 1 + tests/integration/contacts/ContactTest.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MessageBird/Client.php b/src/MessageBird/Client.php index f6eeb832..4dd5f086 100644 --- a/src/MessageBird/Client.php +++ b/src/MessageBird/Client.php @@ -13,7 +13,7 @@ class Client const CHATAPI_ENDPOINT = 'https://chat.messagebird.com/1'; const VOICEAPI_ENDPOINT = 'https://voice.messagebird.com'; - const CLIENT_VERSION = '1.9.2'; + const CLIENT_VERSION = '1.9.3'; /** * @var string diff --git a/src/MessageBird/Objects/BaseList.php b/src/MessageBird/Objects/BaseList.php index 3ee6e937..b229a660 100644 --- a/src/MessageBird/Objects/BaseList.php +++ b/src/MessageBird/Objects/BaseList.php @@ -10,6 +10,7 @@ class BaseList extends Base { + public $limit; public $offset; public $count; public $totalCount; diff --git a/tests/integration/contacts/ContactTest.php b/tests/integration/contacts/ContactTest.php index 072b27b9..3104d624 100644 --- a/tests/integration/contacts/ContactTest.php +++ b/tests/integration/contacts/ContactTest.php @@ -87,6 +87,7 @@ public function testContactGetGroups() $ResultingGroupList = $this->client->contacts->getGroups("contact_id"); $GroupList = new \MessageBird\Objects\BaseList(); + $GroupList->limit = 20; $GroupList->offset = 0; $GroupList->count = 1; $GroupList->totalCount = 1;