Obtain a device fingerprint
The device_fingerprint
is one of the required parameters for the methods to sign up and sign in to the B2Core UI.
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 in your sign up and sign in requests.