Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../nikic/../telnyx/../brick/../maximebf/../paragonie/../.././bootstrap/../vendor/phpunit/./../predis/../ezyang/../webmozart/../sabberworm/../messagebird/php-rest-api/./examples
الملفات الموجودة في هذا الـ Path:
.
..
available-phone-numbers-view.php
balance-view.php
contact-create.php
contact-delete.php
contact-get-groups.php
contact-get-messages.php
contact-list.php
contact-update.php
contact-view.php
conversations
emailmessages-view.php
group-add-contact-to-group.php
group-create.php
group-delete.php
group-get-contacts.php
group-list.php
group-remove-contact-from-group.php
group-update.php
group-view.php
hlr-create.php
hlr-list.php
hlr-view.php
lookup-hlr-view.php
lookup-view.php
message-create-unicode.php
message-create.php
message-delete.php
message-list.php
message-view.php
mms-create.php
mms-delete.php
mms-list.php
mms-view.php
partner-account-create.php
partner-account-delete.php
partner-account-list.php
partner-account-read.php
partner-account-update.php
phone-numbers-create.php
phone-numbers-delete.php
phone-numbers-update.php
phone-numbers-view.php
signed-request-validation.php
signedrequest-verification.php
verify-create-email.php
verify-create.php
verify-verification.php
verify-view.php
voice-call-flows-create.php
voice-call-flows-delete.php
voice-call-flows-list.php
voice-call-flows-read.php
voice-call-flows-update.php
voice-calls-create.php
voice-calls-list.php
voice-calls-read.php
voice-legs-list.php
voice-legs-read.php
voice-recordings-download.php
voice-recordings-list.php
voice-recordings-read.php
voice-transcriptions-create.php
voice-transcriptions-download.php
voice-transcriptions-list.php
voice-transcriptions-read.php
voice-webhooks-create.php
voice-webhooks-delete.php
voice-webhooks-list.php
voice-webhooks-read.php
voice-webhooks-update.php
voicemessages-create.php
voicemessages-list.php
voicemessages-view.php

مشاهدة ملف: contact-update.php

<?php

require_once(__DIR__ . '/../autoload.php');

$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY'); // Set your own API access key here.

$contact = new \MessageBird\Objects\Contact();
$contact->msisdn = '31123456789';
$contact->firstName = 'ChangedFirst';
$contact->lastName = "ChangedLast";
$contact->custom1 = "custom-1b";
$contact->custom2 = "custom-2b";
$contact->custom3 = "custom-3b";
$contact->custom4 = "custom-4b";


try {
    $groupResult = $messageBird->contacts->update($contact, 'contact_id');
    var_dump($groupResult);
} catch (\MessageBird\Exceptions\AuthenticateException $e) {
    // That means that your accessKey is unknown
    echo 'Wrong login';
} catch (\Exception $e) {
    echo $e->getMessage();
}