Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
Events
APIs for managing Events
Display a listing of the events.
Example request:
curl --request GET \
--get "https://www.adnec.ae/api/v1/adnec-events?order_by=created_at&sort=desc&start_date=2023-10-01&end_date=2023-10-31" \
--header "X-AI-KEY: libero" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://www.adnec.ae/api/v1/adnec-events"
);
const params = {
"order_by": "created_at",
"sort": "desc",
"start_date": "2023-10-01",
"end_date": "2023-10-31",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"X-AI-KEY": "libero",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
permissions-policy: interest-cohort=()
access-control-allow-origin: *
{
"message": "Unauthorized"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified event.
Example request:
curl --request GET \
--get "https://www.adnec.ae/api/v1/adnec-events/nihil" \
--header "X-AI-KEY: quos" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://www.adnec.ae/api/v1/adnec-events/nihil"
);
const headers = {
"X-AI-KEY": "quos",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
permissions-policy: interest-cohort=()
access-control-allow-origin: *
{
"message": "Unauthorized"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.