-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do filter out null-value fields in responses and requests
- Loading branch information
Erik Räni
authored
Jul 24, 2019
1 parent
49e80a3
commit f9987c2
Showing
46 changed files
with
27 additions
and
3,919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$groupId = 'groupId_example'; // string | String in UUID format | ||
$phone = 'phone_example'; // string | A phone number | ||
$groupId = 5792a02a-e5c2-422b-a0a0-0ae65d814663; // string | String in UUID format | ||
$phone = +37251000000; // string | A phone number | ||
|
||
try { | ||
$result = $apiInstance->addContactToGroup($groupId, $phone); | ||
|
@@ -103,7 +103,7 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$contactFields = new \Messente\Api\Model\ContactFields(); // \Messente\Api\Model\ContactFields | | ||
$contactFields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // \Messente\Api\Model\ContactFields | | ||
|
||
try { | ||
$result = $apiInstance->createContact($contactFields); | ||
|
@@ -164,7 +164,7 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$phone = 'phone_example'; // string | A phone number | ||
$phone = +37251000000; // string | A phone number | ||
|
||
try { | ||
$apiInstance->deleteContact($phone); | ||
|
@@ -224,7 +224,7 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$phone = 'phone_example'; // string | A phone number | ||
$phone = +37251000000; // string | A phone number | ||
|
||
try { | ||
$result = $apiInstance->fetchContact($phone); | ||
|
@@ -285,7 +285,7 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$phone = 'phone_example'; // string | A phone number | ||
$phone = +37251000000; // string | A phone number | ||
|
||
try { | ||
$result = $apiInstance->fetchContactGroups($phone); | ||
|
@@ -346,7 +346,7 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$groupIds = array('groupIds_example'); // string[] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | ||
$groupIds = ["5792a02a-e5c2-422b-a0a0-0ae65d814663","4792a02a-e5c2-422b-a0a0-0ae65d814662"]; // string[] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | ||
|
||
try { | ||
$result = $apiInstance->fetchContacts($groupIds); | ||
|
@@ -407,8 +407,8 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$groupId = 'groupId_example'; // string | String in UUID format | ||
$phone = 'phone_example'; // string | A phone number | ||
$groupId = 5792a02a-e5c2-422b-a0a0-0ae65d814663; // string | String in UUID format | ||
$phone = +37251000000; // string | A phone number | ||
|
||
try { | ||
$apiInstance->removeContactFromGroup($groupId, $phone); | ||
|
@@ -469,8 +469,8 @@ $apiInstance = new Messente\Api\Api\ContactsApi( | |
new GuzzleHttp\Client(), | ||
$config | ||
); | ||
$phone = 'phone_example'; // string | A phone number | ||
$contactUpdateFields = new \Messente\Api\Model\ContactUpdateFields(); // \Messente\Api\Model\ContactUpdateFields | | ||
$phone = +37251000000; // string | A phone number | ||
$contactUpdateFields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // \Messente\Api\Model\ContactUpdateFields | | ||
|
||
try { | ||
$result = $apiInstance->updateContact($phone, $contactUpdateFields); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.