Sign in for Tokens, AuthKeys and learning resources.
Supply header [name:connection-token] along with your connection_string when starting these channels.
Use API Mmethod create_blockchain_mq or sign in for existing.
Start your new application with API Method: add_application.
PUBLIC_ID
[:~]
API_SECRET
[:~]
These keys are needed to authenticate requests with the API endpoint, sign your payload using the HMAC-SHA512 method and include the following headers.
HTTP POST
[API Endpoint] https://api.async360.com
[Add Header] public-id: YOUR_PUBLIC_ID
[Add Header] sign: HEX_ENCODED_SIGNATURE
NETWORKS
[:~]
const crypto = require("crypto"); const message = { "method": "create_blockchain_mq", "params": { "queue_name": "new-processor" }, }; const sign = crypto.createHmac('sha512', apiSecret) .update(JSON.stringify(message)).digest('hex');
string GetHeaderSign(string obj)
{
var hmac = new HMACSHA512(Encoding.UTF8.GetBytes(API_SECRET));
byte[] hash = hmac.ComputeHash(Encoding.UTF8.GetBytes(obj));
return hash.ToHex();
}
client.DefaultRequestHeaders.Add("public-id", PUBLIC_ID);
client.DefaultRequestHeaders.Add("sign", GetHeaderSign(obj.ToString()));