» Lists » Subscribers » Post

POST lists/{list_id}/subscribers

Create Subscribers with relation to the list

Resource

Method POST
URL http://api.responder.co.il/v1.0/lists/{list_id}/subscribers

Parameters

subscribers
required

Array of Subscriber JSON objects
* Personal Field IDs can be retrived threw GET lists/{list_id}/personal_fields api

Example Value:
[
   {
      "NAME" : "John Smith",
      "EMAIL" : "johnsmith@gmail.com",
      "PHONE" : "01-23456789",
      "DAY" : 12
   },
   {
      "NAME" : "Bob Jones",
      "EMAIL" : "bobjones@yahoo.com",
      "PHONE" : "09-87654321",
      "PERSONAL_FIELDS" : {
         3 : "Tel Aviv",
         49 : "Honda Civic"
      }
   }
]

Example

POST http://api.responder.co.il/v1.0/lists/123456/subscribers
{
   "SUBSCRIBERS_CREATED" : [123],
   "EMAILS_INVALID" : [],
   "EMAILS_EXISTING" : ["johnsmith@gmail.com"],
   "EMAILS_BANNED" : [],
   "PHONES_INVALID" : [],
   "PHONES_EXISTING" : [],
   "BAD_PERSONAL_FIELDS" : {
      123 : {
         3 : "Tel Aviv"
      }
   },
   "ERRORS" : []
}