MENU navbar-image

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"
}
 

Request      

GET api/v1/adnec-events

Headers

X-AI-KEY      

Example: libero

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

order_by   string  optional  

select a column to order by - check store method for column names . Example: created_at

sort   string  optional  

Either asc or desc. Example: desc

start_date   string  optional  

The start date of the event. Example: 2023-10-01

end_date   string  optional  

The end date of the event. Example: 2023-10-31

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"
}
 

Request      

GET api/v1/adnec-events/{event}

Headers

X-AI-KEY      

Example: quos

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

event   string   

Example: nihil