curl -X POST \
-H "Authorization: Bearer 52ce223c5adbb66fa188a959a8b08889adb3580c" \
-H "Content-Type: application/json" \
-d '{
"repository_path":"https://baas-hello-world.cloud.ifanrusercontent.com/test.zip",
"url_refresh": true
}' \
https://cloud.minapp.com/oserve/v2.6/miniapp/custom-userdash/
var request = require('request');
var opt = {
uri: 'https://cloud.minapp.com/oserve/v2.6/miniapp/custom-userdash/',
method: 'POST',
headers: {
Authorization: `Bearer ${token}`
},
json: {
repository_path: 'https://baas-hello-world.cloud.ifanrusercontent.com/test.zip',
url_refresh: 'true'
}
}
request(opt, function(err, res, body) {
console.log(res.statusCode, body)
})
{
"message": "Submit deploy request succeed.",
"status": "ok"
}