Generar tu firma
#
GeneralX-ORIONX-SIGNATURE es un header que debe tener un c贸digo HMAC-SHA512.
#
Generaci贸nPara generar la firma debemos juntar nuestro timestamp con el body de nuestra llamada, y generar un c贸digo HMAC-SHA512. Para hacerlo debemos utilizar esta formula, RFC 2104. Te recomiendamos crear una funci贸n donde centralices todas las llamadas a la API.
Para mayor informaci贸n ver HMAC Wikipedia.
#
Ejemplo de llamada#
Librer铆asExisten distintas librer铆as que te pueden ayudar a generar tu request. Algunas de ellas son:
Lenguaje | Librer铆a | Link |
---|---|---|
Javascript | jsSHA | https://github.com/Caligatio/jsSHA |
Python2 | hmac | https://docs.python.org/2/library/hmac.html |
Python3 | hmac | https://docs.python.org/3/library/hmac.html |