I’m experimenting with Open Cloud, but whenever I try sending a request to list datastores it says my API Key is invalid. I just made the key today, I have no idea what’s going on.
Here’s the code, I’m using express.js + node.js’s built in https module
const listOptions = {
params: {
'prefix': '',
'limit': '10',
},
headers: {
'x-api-key': DatastoresAPIKey
}
}
app.get('/list', function (req, res) {
https.get(`https://apis.roblox.com/datastores/v1/universes/3984205042/standard-datastores`, listOptions, (response) => {
var result = ''
response.on('data', function(chunk) {
result += chunk;
});
response.on('end', async function() {
console.log(result)
res.send(result)
})
})