How to Generate X-Access-Token

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: 

Current Mills.jpg


To combine the accesskey, secretkey and timestamp, you may use a third party site like https://emn178.github.io/online-tools/sha256.html 

combined.jpg

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/ 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.