Hi @gellu !
I was thinking about to create an api request to add o bunch of users to a list in one request. For example in some cases I need to add like 15k users to a new list and execute 15k request is crazy...
The api request to add one user now is:
POST /subscribers/user/add
I was thinking to add that request:
POST /subscribers/users/add (Content-Type: application/json)
PARAMS:
list: list id
users: a json object ej: [{email: xxx, name: yyy}]
Or maybe this other:
POST /lists/subscribers/add (Content-Type: application/json)
PARAMS:
list: list id
users: a json object ej: [{email: xxx, name: yyy}]
Examples:
POST /subscribers/users/add (Content-Type: application/json)
{list:2, users: [...]}
POST /lists/subscribers/add (Content-Type: application/json)
{list:2, users: [...]}
Or maybe is better to keep the Content-Type as it is in the other api requests:
POST /subscribers/users/add (Content-Type: application/x-www-form-encoded)
list=2&users=[...]
What do you think? Tell me if you would like to have that in your API and how do you think is better!
Hi @gellu !
I was thinking about to create an api request to add o bunch of users to a list in one request. For example in some cases I need to add like 15k users to a new list and execute 15k request is crazy...
The api request to add one user now is:
I was thinking to add that request:
Or maybe this other:
Examples:
Or maybe is better to keep the Content-Type as it is in the other api requests:
What do you think? Tell me if you would like to have that in your API and how do you think is better!