Skip to content

Commit

Permalink
docs(readme): update code block
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 19, 2023
1 parent 8a5f345 commit 08f014a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ Send a message to your user:

```php
use Braze\Braze;
use Braze\Model\MessagesSendPostBody;

$braze = new Braze('YOUR_API_URL', 'YOUR_API_KEY');

$braze->client->postMessagesSend((object) [
$braze->client->postMessagesSend(new MessagesSendPostBody([
'external_user_ids' => ['your_external_user_id'],
'messages' => [
'email' => [
Expand All @@ -91,7 +92,7 @@ $braze->client->postMessagesSend((object) [
'email_template_id' => 'your_email_template_id',
],
],
]);
]));
```

Handle an API error:
Expand Down

0 comments on commit 08f014a

Please sign in to comment.