NodeJS API wrapper for Mobile Devices Cloud Connect
const CloudConnectWebApi = require('cloud-connect-web-api');
let credentials = {
userToken: '653638dc733afce75130303fe6e6010f63768af0'
};
let api = new CloudConnectWebApi(credentials);
//using callback
api.getConfigurations(function(err, data){
if (err) throw err;
console.log(data);
});
//using promise
api.getConfigurations()
.then(function (data) {
console.log(data);
}, function (err) {
console.log(err);
});
Visible configurations information
getConfigurations()
getConfiguration(configId)
createConfiguration(configName, version, options)
updateConfiguration(configId, configName, options)
getConfigurationAssets(configId)
getConfigurationCompatibleAssets(configId)
getAssets(options, cb)
getAsset(imei, options, cb)
getVehicleInfo(imei, cb)
updateVehicleInfo(imei, options, cb)
Retrieve the current configuration for a specific asset and return the configuration for the OS version and for each module that could be configured.
getAssetConfiguration(imei, cb)
getAssetsGroups(callback)
getAssetsGroup(assetGroupId, callback)
createAssetsGroup(options, callback)
updateAssetsGroup(assetGroupId, options, callback)
getCampaigns(callback)
getCampaignsArchive(callback)
getCampaign(campaignId, callback)
Create an asset update campaign by providing a name, a list of configurations or a sotfware version, a list of assets, and / or a list of asset groups. There can be one or more configurations, and there must be at least when valid asset (either alone or in an asset group).
createCampaignToUpdateConfig(configIds, options, callback)
createCampaignToUpdateSoftware(newVersion, options, callback)
Modify an assets name, provide a new list of assets or change configurations. You can not modify a campaign that has already been sent.
updateCampaign(campaignId, options, callback)
Launch a campaign targeting all assets both compatible and not already being updated in another campaign.
launchCampaign(campaignId, options, callback)
- manage pagination
- add validations
- improve docs
- Driver profiles
- Remote files
- Vehicles
- Versions
npm test
npm run-script test-travis