Skip to content

Commit

Permalink
Changed example
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuspot committed Sep 3, 2019
1 parent c924750 commit 93a686b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/conversations/enable-whatsapp-sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
// Create a client with WhatsApp sandbox enabled.
$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY', null, [\MessageBird\Client::ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX]);

// Continue using whatsapp channel as normal.
// Use WhatsApp sandbox channel as normal.

$content = new \MessageBird\Objects\Conversation\Content();
$content->text = 'Hello world';

$message = new \MessageBird\Objects\Conversation\Message();
$message->channelId = 'CHANNEL_ID';
$message->channelId = 'WHATSAPP_SANDBOX_CHANNEL_ID';
$message->content = $content;
$message->to = 'RECIPIENT'; // Channel-specific, e.g. MSISDN for SMS.
$message->type = 'text';
Expand Down

0 comments on commit 93a686b

Please sign in to comment.