Access Key
Permission
We need to confirm who you are and you have access to our developers' APIs.
So, we always ask you to sign any request by ACCESS_KEY
and SECRET_KEY
.
note
Visit: Guides - Generate new key for instruction on creating a key by steps.
Examples
Ruby
PHP
For PHP you can use remitano-php library to authenticate and send API request to Remitano
Javascript (Node.js)
Other programming languages
For other progamming languages, please follow these instructions to sign each API request with your Access Key:
Hash the request body with MD5 then base64 encode it and set the header
Content-MD5
with this value.Set the header
Date
with RFC2616 format (eg:Tue, 15 Nov 2020 12:45:26 GMT
)Combine the following data to a comma-separated string:
- Request Method (eg:
POST
,GET
,PUT
) - Header
Content-Type
(usuallyapplication/json
) - Header
Content-MD5
(the value from step 1) - Request target (eg:
/api/v1/users/coin_accounts
) - Header
Date
(the value from step 2)
eg:
POST,application/json,eyJ1c2VyOmFzZGN4emN6eGMiLEEic2R4YXNkYWFzZH0=,/api/v1/users/coin_accounts,Tue, 15 Nov 2020 12:45:26 GMT- Request Method (eg:
Hmac the string from step 3 with
SHA1
algorithm and yourSECRET_KEY
as key, then base64 encode it.Set the header
Authorization
with value:APIAuth {YOUR_ACCESS_KEY}:{hmac value from step 4}eg:
APIAuth a4c60313f2ce6a0d934:N2IxZjhhNTFlMGI1NmQ1ZmY2MTBkY2I1MTI2ZjY2YTU=