We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f110458 commit 4c7771cCopy full SHA for 4c7771c
examples/emailmessages-view.php
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+use MessageBird\Client;
4
5
+require_once(__DIR__ . '/../autoload.php');
6
7
+$messageBird = new Client('YOUR_ACCESS_KEY'); // Set your own API access key here.
8
9
+try {
10
+ $emailMessageResult = $messageBird->emailmessages->read('ca0a8220453bc36ddeb3115a37400870'); // Set a message id here
11
+ var_dump($emailMessageResult);
12
+} catch (\MessageBird\Exceptions\AuthenticateException $e) {
13
+ // That means that your accessKey is unknown
14
+ echo 'wrong login';
15
+} catch (\Exception $e) {
16
+ var_dump($e->getMessage());
17
+}
0 commit comments