Hello community
I have followed the instructions here https://developer.playcanvas.com/en/user-manual/api/app-download/
my code
var request = require('request');
function callRequest(postData){
postData = {
project_id: MY_PROJECT ID,
name: "MY GAME",
scenes: [ID1, ID2],
scripts_concatenate : true,
version : '1.0'
}
var clientServerOptions = {
uri: 'https://playcanvas.com/api/apps/download',
body: JSON.stringify(postData),
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer MY_TOKEN',
}
};
request(clientServerOptions, function (error, response) {
console.log(error,response.body);
return;
});
}
callRequest();
The result
The status always returns as running
,
The question is when does it change status to completed
and when do I get the download_url
parameter
Can someone give me advice?
Thanks!