Upload csv file
v1
post
/1/newsletters/{domain}/subscribers/import/upload
Upload a csv file with subscribers to be processed
Path parameters
domain
requiredstring
Examples:example
Body Parameters
application/jsoncontentstring
Examples:example
filestring
Examples:example
Response Body
application/json
resultstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataarrayofstring
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$body = '{
"content": "example",
"file": "example"
}';
$request = new Request('POST', 'https://api.infomaniak.com/1/newsletters/{domain}/subscribers/import/upload', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":["example"]}