updated text

This commit is contained in:
Andris Reinman 2016-05-07 15:36:51 +03:00
parent 8725143dfa
commit bc902f8db7
2 changed files with 23 additions and 9 deletions

View file

@ -21,7 +21,7 @@
<div class="row">
<div class="col-md-4">
<h2>List management</h2>
<p>Mailtrain allows you to easily manage even very large lists. Million subscribers? Not a problem. You can add subscribers manually or import from a CSV file. All lists come with support for custom fields and merge tags as well.</p>
<p>Mailtrain allows you to easily manage even very large lists. Million subscribers? Not a problem. You can add subscribers manually, through the API or import from a CSV file. All lists come with support for custom fields and merge tags as well.</p>
</div>
<div class="col-md-4">
<h2>Custom fields</h2>
@ -59,7 +59,7 @@
</div>
<div class="col-md-4">
<h2>On the roadmap</h2>
<p>Better reports, API access, campaign automation and more…</p>
<p>Better reports, campaign automation and more…</p>
</div>
</div>

View file

@ -29,6 +29,20 @@
</div>
</div>
<div class="well">
<h3>Notes about the API</h3>
<ul>
<li>
API response is a JSON structure with <code>error</code> and <code>data</code> properties. If the response <code>error</code> has a value set then the request failed.
</li>
<li>
You need to define proper <code>Content-Type</code> when making a request. You can either use <code>application/x-www-form-urlencoded</code> for normal form data or <code>application/json</code> for a JSON payload. Using <code>multipart/form-data</code> is not supported.
</li>
</ul>
</div>
<h3>POST /api/subscribe/:listId Add subscription</h3>
<p>
@ -47,10 +61,10 @@
</p>
<ul>
<li><strong>EMAIL</strong> subscriber's email address (<em>required</em>)
<li><strong>FIRST_NAME</strong> subscriber's first name
<li><strong>LAST_NAME</strong> subscriber's last name
<li><strong>TIMEZONE</strong> subscriber's timezone (eg. "Europe/Tallinn", "PST" or "UTC"). If not set defaults to "UTC"
<li><strong>MERGE_TAG_VALUE</strong> custom field value. Use yes/no for option group values (checkboxes, radios, drop downs)
<li><strong>FIRST_NAME</strong> subscriber's first name</li>
<li><strong>LAST_NAME</strong> subscriber's last name</li>
<li><strong>TIMEZONE</strong> subscriber's timezone (eg. "Europe/Tallinn", "PST" or "UTC"). If not set defaults to "UTC"</li>
<li><strong>MERGE_TAG_VALUE</strong> custom field value. Use yes/no for option group values (checkboxes, radios, drop downs)</li>
<li>
<strong>FORCE_SUBSCRIBE</strong> set to "yes" if you want to make sure the email is marked as subscribed even if it was previously marked as unsubscribed. By default if the email was already unsubscribed then subscription status is not changed.
</li>