Upload a file to your account for use in campaigns.
Parameter | Type | Description |
---|---|---|
file | string | This value can be either a binary file or a URL to a file. |
folder | int | A folder ID for placing the file in a folder. |
curl "https://api-us1.stannp.com/v1/files/upload" \
-u {API_KEY}: \
{ "success": true, "data": { "id": "342" } }
Create a new folder to organize your files.
Parameter | Type | Description |
---|---|---|
name | string | The name of the folder you wish to create. |
curl "https://api-us1.stannp.com/v1/files/createFolder" \
-u {API_KEY}: \
{ "success": true, "data": "342" }
Retrieve a list of all folders in your account.
curl "https://api-us1.stannp.com/v1/files/folders" \
-u {API_KEY}:
{ "success": true, "data": [ { "id": "2", "name": "test folder", "created": "2017-06-27 14:24:07" }, { "id": "15", "name": "test folder 2", "created": "2017-06-27 14:26:23" } ] }