Obtain a device fingerprint
This tutorial explains how to get the device_fingerprint
, which is one of the required parameters for client authentication when using the POST[host]/api/v2/my/signin method.
Obtain a device fingerprint as follows:
Create a free-form JSON string that uniquely identifies your device.
You can create you device fingerprint using the AmIUnique online tool , and then download it in JSON format.
From the downloaded JSON file, extract the
userAgent
data, such as:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Convert the
userAgent
data to a Base64 string.To convert JSON to Base64, you can use ReqBin:
$data = [
'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'];
echo base64_encode(json_encode($data))
Include the Base64-encoded string that you obtained after conversion as the device_fingerprint
parameter when using POST[host]/api/v2/my/signin.