To generate your X-Access-Token, you would need the following:
accessKey: sampleaccesskey
secretKey: samplesecretkey
timestamp: 1665993522952
Combined: sampleaccesskeysamplesecretkey1665993522952
You can find your accesskey and secretkey on the websaas platform > Account > Account Management.
For the timestamp, you would need to use a third party program like https://currentmillis.com/
Here's a sample timestamp:
To combine the accesskey, secretkey and timestamp, you may use a third party site like https://emn178.github.io/online-tools/sha256.html
Here's the the code:
-H "Content-Type: application/json" \
-d '{"accessKey":"22********70b","signature":"f786441e7b3d95f*****************853a5a244f9522","timestamp":1648785145789,"periodSecond":120}' \
"https://api.advance.ai/openapi/auth/ticket/v1/generate-token"
Important thing to remember: Please take note that your token will expire based on the number of second that you have place under "periodSecond"
More information may be found here: https://doc.advance.ai/
Comments
0 comments