/foreach

Does a ForEach loop on Arrays to retrieve certain data

circle-info

This endpoint will require a POST request.

Endpoint Headers:

  • apikey - Your Api Auth Key [String] (Required)

Endpoint Body Parameters

  • array- Array to loop through [Array] (Required)

  • opt - Option to retrieve during loop [String] (Required)

Examples:

circle-info

Data API version required. Must replace <version> with either release or beta.

chevron-rightBot Designer for Discordhashtag

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]
chevron-rightDiscord.jshashtag

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)
})()

Possible Responses (Codes)

chevron-rightCode 200 hashtag

API succeeded and details were fetched.

chevron-rightCode 400hashtag

An error occurred that stopped execution.

Last updated