/foreach
Does a ForEach loop on Arrays to retrieve certain data
Last updated
Does a ForEach loop on Arrays to retrieve certain data
This endpoint will require a POST request.
apikey - Your Api Auth Key [String] (Required)
array- Array to loop through [Array] (Required)
opt - Option to retrieve during loop [String] (Required)
Data API version required. Must replace <version> with either release or beta.
Example usage of /foreach endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/foreach;{
array: [],
opt: 'userId'
}]
$httpResult OR $httpResult[details]Example usage of /foreach endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/foreach',
{ array: [],
opt: 'userId'
}, {
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()Last updated
{
status: 200,
details: [
//Array is based off your input and may not be what you're expecting
]
}}{
status: 400
error: 'Cannot read ... (This can vary)'
}