{
"data": {
"status": "success",
"result": [
"https://storage.googleapis.com/spacely-enterprise/c18302f5-a9de-422d-000/ea6abee1-ed4b-4ca8-994e-2c215150bf9e-1.png",
"https://storage.googleapis.com/spacely-enterprise/c18302f5-a9de-422d-000/ea6abee1-ed4b-4ca8-994e-2c215150bf9e-2.png",
"https://storage.googleapis.com/spacely-enterprise/c18302f5-a9de-422d-000/ea6abee1-ed4b-4ca8-994e-2c215150bf9e-3.png",
"https://storage.googleapis.com/spacely-enterprise/c18302f5-a9de-422d-000/ea6abee1-ed4b-4ca8-994e-2c215150bf9e-4.png"
]
}
}
{
"data": {
"status": "processing",
"result": []
}
}
curl --location 'https://api.spacely.ai/api/v1/generate/poll-result?refId=REF_ID' \
--header 'X-API-KEY: YOUR_API_KEY'
var myHeaders = new Headers();
myHeaders.append("X-API-KEY", YOUR_API_KEY);
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.spacely.ai/api/v1/generate/poll-result?refId=068e3933-4aeb-4b4d-a473-9f8fa9f2d20a", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.spacely.ai/api/v1/generate/poll-result?refId=REF_ID',
headers: {
'X-API-KEY': YOUR_API_KEY
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.spacely.ai/api/v1/generate/poll-result?refId=REF_ID"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("X-API-KEY", YOUR_API_KEY)
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
import requests
url = "https://api.spacely.ai/api/v1/generate/poll-result?refId=REF_ID"
payload = {}
headers = {
'X-API-KEY': YOUR_API_KEY
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)