/jsonkey

This endpoint will require a POST request.

This endpoint is only on the Beta Version of the API and may be unstable.

Please report any & all bugs to the Support Server

Endpoint Headers:

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

Endpoint Body Parameters

  • json - JSON object to loop through [Object] (Required)

  • param - Parameters to go deeply into nested JSON [String] (Required)

You can get a Object Key inside of another Object by specifying the first object AND the second object integers. Ex: Obj1.Obj2

Examples:

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

Bot Designer for Discord

Example usage of /jsonkey endpoint using BDFD

$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/jsonkey;{
json: {
test1:'test',
test2: 'testing'
},
param: 'test1'
}]


$httpResult OR $httpResult[details]
Discord.js

Example usage of /jsonkey endpoint using Discord.js

const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/jsonkey', 
{  json: {
test1:'test',
test2: 'testing'
},,
param: 'test1'
}, { 
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

{
 status: 200,
 details: 'test'
}}
Code 400

An error occurred that stopped execution.

{
    status: 400
    error: 'Cannot read ...  (This can vary)'
}

Last updated