npx adsum-client-api
download:data
Download data to be included in ios/android asset folder.
npx adsum-client-api download:data [endpoint] [site] [username] [key]
Arguments:
Name | Type | Required | Default | Description |
---|---|---|---|---|
endpoint | string | Yes | - | The api endpoint without api version (i.e. https://api.adsum.io ) |
username | string | Yes | - | he username in format {id}-user and {id}-device for respectively an user and a device with {id} it's actual id |
key | string | Yes | - | The username's specific api key |
site | int | Yes | - | The site id |
Options:
Name | Type | Required | Default | Description |
---|---|---|---|---|
target | "ios" | "android" | "all" | No | "all" | The target destination |
config | path | No | - | The configuration file which can be used to provide arguments |
Usage:
npx adsum-client-api download:data https://api.adsum.io 322 323-device 343169bf805f8abd5fa71a4f529594a654de6afbac70a2d867a8b458c526fb7d --target=android
You can also provide arguments using configuration file like:
Assuming the file config.json
{
"endpoint": "https://api.adsum.io",
"site": 322,
"username": "323-device",
"key": "343169bf805f8abd5fa71a4f529594a654de6afbac70a2d867a8b458c526fb7d",
"target": "android"
}
npx adsum-client-api download:data --config config.json