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 d3bf3d0 commit 304c0daCopy full SHA for 304c0da
examples/emailmessages-view.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+require_once(__DIR__ . '/../autoload.php');
4
5
+$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY'); // Set your own API access key here.
6
7
+try {
8
+ $emailMessageResult = $messageBird->emailmessages->read('ca0a8220453bc36ddeb3115a37400870'); // Set a message id here
9
+ var_dump($emailMessageResult);
10
+} catch (\MessageBird\Exceptions\AuthenticateException $e) {
11
+ // That means that your accessKey is unknown
12
+ echo 'wrong login';
13
+} catch (\Exception $e) {
14
+ var_dump($e->getMessage());
15
+}
0 commit comments