Skip to content

Subscribing multiple users using the API

edited September 2017 in Using Sendy

I'm required to pass a list of subscribers, in the [name] [email] format through the Sendy API. Does Sendy accept an array as a parameter for the name and email fields?

Or will I have to make a post request for each of the users, separately? I'm looking at adding about 1000 - 2000 subscribers in one go, through the API.

Comments

  • Hi,

    You can write a loop in your script to add all subscribers to your list.

    Thanks.

    Best regards,
    Ben

  • Would it be okay to make a POST request from my main server to sendy installation server with every iteration?

  • BenBen
    edited September 2017

    Hi,

    Would it be okay to make a POST request from my main server to sendy installation server with every iteration?

    Yes. You can POST to the 'subscribe' API multiple times using a 'loop' in your script.

    Best regards,
    Ben

This discussion has been closed.