NAV
bash php

Info

Welcome to the generated API reference.

Arcadius

Display Swagger API page.

Example request:

curl -X GET \
    -G "https://main.allin1uae.com/api/documentation" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY"

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://main.allin1uae.com/api/documentation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/documentation

Display Oauth2 callback pages.

Example request:

curl -X GET \
    -G "https://main.allin1uae.com/api/oauth2-callback" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY"

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://main.allin1uae.com/api/oauth2-callback',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/oauth2-callback

api/check-email

Example request:

curl -X POST \
    "https://main.allin1uae.com/api/check-email" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY" \
    -d '{"email":"vendor@gmail.com"}'

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://main.allin1uae.com/api/check-email',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
        'json' => [
            'email' => 'vendor@gmail.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "message": []
}

Example response (409):

{
    "success": false,
    "message": [
        "<p>The email already has been token<\/p>"
    ]
}

HTTP Request

POST api/check-email

Body Parameters

Parameter Type Status Description
email required optional Email which needs to check

api/create-user

Example request:

curl -X POST \
    "https://main.allin1uae.com/api/create-user" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY" \
    -d '{"first_name":"Vendor","last_name":"Vendor","email":"vendor@gmail.com","password":"$2y$12$zqfFAcUk92xc1JYA.Ff.l.M7aQ\/aw9istUlKOm0THfz0rtxrvc\/gK","main_domain":"classification"}'

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://main.allin1uae.com/api/create-user',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
        'json' => [
            'first_name' => 'Vendor',
            'last_name' => 'Vendor',
            'email' => 'vendor@gmail.com',
            'password' => '$2y$12$zqfFAcUk92xc1JYA.Ff.l.M7aQ/aw9istUlKOm0THfz0rtxrvc/gK',
            'main_domain' => 'classification',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (409):

{
    "success": false,
    "message": [
        "<p>First name is required<\/p>",
        "<p>Last name is required<\/p>"
    ]
}

Example response (200):

{
    "success": true,
    "message": [
        "<p>User was created successfully.<\/p>"
    ]
}

HTTP Request

POST api/create-user

Body Parameters

Parameter Type Status Description
first_name required optional First name of client
last_name required optional Last name of client
email required optional Email of client
password required optional Password of client (Password must be as hash)
main_domain required optional (For classification set [classification] - For E-commerce set [e_commerce])

api/get-systems-list

Example request:

curl -X GET \
    -G "https://main.allin1uae.com/api/get-systems-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY"

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://main.allin1uae.com/api/get-systems-list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "_list": [
        "e_commerce",
        "classification"
    ]
}

HTTP Request

GET api/get-systems-list

api/p-change-password

Example request:

curl -X PUT \
    "https://main.allin1uae.com/api/p-change-password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY" \
    -d '{"password":"1234","main_id":"2"}'

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://main.allin1uae.com/api/p-change-password',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
        'json' => [
            'password' => '1234',
            'main_id' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (409):

{
    "success": false,
    "message": [
        "<p>Main id is required<\/p>",
        "<p>Password is required<\/p>"
    ]
}

Example response (200):

{
    "success": true,
    "message": [
        "<p>Password was changed successfully.<\/p>"
    ]
}

HTTP Request

PUT api/p-change-password

Body Parameters

Parameter Type Status Description
password required optional Password of user
main_id required optional Main id of user

api/check-phone-status

Example request:

curl -X POST \
    "https://main.allin1uae.com/api/check-phone-status" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "x-api-key: API_KEY" \
    -d '{"phone":"+90545487875"}'

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://main.allin1uae.com/api/check-phone-status',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'x-api-key' => 'API_KEY',
        ],
        'json' => [
            'phone' => '+90545487875',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "message": []
}

Example response (409):

{
    "success": false,
    "message": [
        "<p>The phone already has been token<\/p>"
    ]
}

HTTP Request

POST api/check-phone-status

Body Parameters

Parameter Type Status Description
phone required optional Phone which needs to check