You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to use the /v1/imports endpoint to send a CSV file to import people https://customer.io/docs/api/app/#tag/Imports
It seems your implementation of the CustomerIO APP API does not provide this feature yet.
Am I right?
If so, is there a way to specify a custom endpoint while using your implementation?
Thank you
Nicolas
The text was updated successfully, but these errors were encountered:
OK I figured out how I could do it:
I've seen that I could not call directly Client::request() because it is protected, but I could call Client::post()
I just needed to override the API endpoint so that my post request does not use the default Track API but the App API instead. I saw this could be done by specifying a custom 'endpoint' in the json parameter.
Also, the $endpoint parameter of the post method must not be the whole url such as "https://api.customer.io/v1/imports", but only the path "imports"
Here is the code:
$data = [
"endpoint" => "https://api.customer.io/v1/",
"import" => [
"name" => "The name displayed in Customer's UI in the list of all your imports",
"data_file_url" => "https://YOUR-SITE.com/YOUR-PUBLIC-PATH/export-users.csv",
"type" => "people",
"identifier" => "id",
"people_to_process" => "all",
"description" => "The description displayed in Customer's UI in the list of all your imports"
]
];
Hello,
I would like to use the /v1/imports endpoint to send a CSV file to import people
https://customer.io/docs/api/app/#tag/Imports
It seems your implementation of the CustomerIO APP API does not provide this feature yet.
Am I right?
If so, is there a way to specify a custom endpoint while using your implementation?
Thank you
Nicolas
The text was updated successfully, but these errors were encountered: