Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

loq and register_exp

Liam Jack edited this page Aug 21, 2015 · 3 revisions

Endpoint

/loq/and/register_exp

Description

Request made to the server after receiving a new device token set. Could be used to mark a device token set as valid ?

Request

  • device_unique_id: Base64'd SHA-1 digest of dtoken1i
  • timestamp
  • req_token

Response

None

Notes

How to get the SHA1 digest in Java:

MessageDigest instance = MessageDigest.getInstance("SHA-1");
instance.reset();
return Base64.encodeToString(instance.digest(dtokenl1.getBytes(Charsets.UTF_8)), 0);

How to get the SHA1 digest in PHP:

echo base64_encode(hex2bin(sha1($dtokenl1)));
Clone this wiki locally