Tuly Posted January 17, 2017 Report Posted January 17, 2017 i am really not good at API, So excuse for the simple simple question.. how do I generate an Auto token to start working with the APIs? if someone can please explain it in very very simple terms, i would appreciate..... Thank you
minimint Posted January 17, 2017 Report Posted January 17, 2017 Do you mean Authentication Token?Generating Authentication Token is here https://2600hz.atlassian.net/wiki/display/APIs/Generating+an+Authentication+Token2600Hz has API doc for other things here https://2600hz.atlassian.net/wiki/display/APIs/Kazoo+API+Documentation
Tuly Posted January 17, 2017 Author Report Posted January 17, 2017 would you mind explaining a bit more on how to get the Authentication Token? its not working for me, looks like i'm missing some basics here.....
Logicwrath Posted January 17, 2017 Report Posted January 17, 2017 Use Postman in chrome. Create MD5 hash of username:password and submit it with postman.{ "data":{ "credentials":"md5 has here", "realm":"client realm to connect too" }}You need to configure the headers to be Content-Type application/json
FASTDEVICE Posted January 17, 2017 Report Posted January 17, 2017 As per Logicwrath, download Postman from the Chrome store.- Change the verb to "PUT" and on the line enter http://api.zswitch.net:8000/v2/user_auth- Under the tabs, Headers; Key = Content-Type and value = application/json- Under the tabs, Body, raw; enter what Logicwrath provided.Press send!the return value "auth_token" is the token. And, yes it is a long string.Hope that helps.
Recommended Posts