API generation
This commit is contained in:
@ -69,6 +69,15 @@ function buildMlGetInfluencers (opts) {
|
||||
options = {}
|
||||
}
|
||||
|
||||
// promises support
|
||||
if (callback == null) {
|
||||
return new Promise((resolve, reject) => {
|
||||
mlGetInfluencers(params, options, (err, body) => {
|
||||
err ? reject(err) : resolve(body)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
return callback(
|
||||
|
||||
Reference in New Issue
Block a user