@@ -28,13 +28,13 @@ Sandbox is minimum application for playing around with PHP MailQ library.
28
28
29
29
#### Windows
30
30
31
- Run ` docker run --rm -it -v %cd%:/app composer install ` to install PHP dependencies
32
- Run ` docker run --rm -it -v %cd%:/app php:cli php /app/sandbox/sandbox.php <API key> <company ID> `
31
+ - Run ` docker run --rm -it -v %cd%:/app composer install ` to install PHP dependencies
32
+ - Run ` docker run --rm -it -v %cd%:/app php:cli php /app/sandbox/sandbox.php <API key> <company ID> `
33
33
34
34
#### Unix
35
35
36
- Run ` docker run --rm -it -v $(pwd):/app composer install ` to install PHP dependencies
37
- Run ` docker run --rm -it -v $(pwd):/app php:cli php /app/sandbox/sandbox.php <API key> <company ID> `
36
+ - Run ` docker run --rm -it -v $(pwd):/app composer install ` to install PHP dependencies
37
+ - Run ` docker run --rm -it -v $(pwd):/app php:cli php /app/sandbox/sandbox.php <API key> <company ID> `
38
38
39
39
Where API key is your private company key used for authentication and company ID is integer number used for identication company.
40
40
@@ -134,6 +134,28 @@ $newsletter = new \MailQ\Entities\v2\NewsletterEntity($data);
134
134
$mailq->updateNewsletter($newsletter);
135
135
$newsletterId = $newsletter->getId();
136
136
```
137
+
138
+ #### Update newsletter in ready state
139
+
140
+
141
+ ``` php
142
+ $data = [
143
+ "id" => 1,
144
+ "name" => "Awesome newsletter",
145
+ "campaign" => "Spring 2016",
146
+ "subject" => "Buy our new product",
147
+ "senderEmail" => "
[email protected] ",
148
+ "replyToEmail" : "
[email protected] ",
149
+ "sendAs" => "Awesome Company",
150
+ "text" => "TmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciwgbmV3c2xldHRlciw=",
151
+ "automaticTime" => false,
152
+ "templateUrl" => "http://example.org/newsletter.html",
153
+ "unsubscribeTemplateUrl" => "http://example.org/unsubscribe.html"
154
+ ];
155
+ $newsletter = new \MailQ\Entities\v2\NewsletterEntity($data);
156
+ $mailq->updateNewsletter($newsletter);
157
+ $newsletterId = $newsletter->getId();
158
+ ```
137
159
#### Get all newsletters
138
160
139
161
``` php
0 commit comments