You can use any technology you want to create the web API.  

Here are common example scenarios for reference.


These are examples relating to Step 1.4 of Step 1- Authentication.


Example Authentication API -- Using NodeJS and Axios

Note:  Do NOT use this code on the client-side for security reasons.


async AuthenticationExample() {
    const url = "https://v1-area-api.luxiflux.com/Authenticate";
    const data = { Username: "YourUsername", Password: "YourPassword" };
    const config = { headers: { "Content-Type": "application/json" } };

    const response = await axios.post(url, data, config);

    response.headers["Access-Control-Allow-Origin"] = "https://v1-area-tools.luxiflux.com";
    response.headers["Access-Control-Allow-Methods"] = "GET";
    response.headers["Cache-Control"] = "no-store";

    return response;
}
JavaScript


Example Authentication API -- Using PHP and cURL


<?php

$handle = curl_init();
$options = array(
    CURLOPT_URL            => "https://v1-area-api.luxiflux.com/Authenticate",
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS     => '{"Username": "YourUsername", "Password": "YourPassword"}'
);
curl_setopt_array($handle, $options);
$response = curl_exec($handle);
curl_close($handle);

header("Access-Control-Allow-Origin: https://v1-area-tools.luxiflux.com");
header("Access-Control-Allow-Methods: GET");
header("Cache-Control: no-store");

echo $response;

?>
PHP