Make Authenticated Calls
Making your first authenticated request
Section titled “Making your first authenticated request”Here is a simple example to verify your connectivity:
# first store your freshly signed token in a variableexport YOUR_SIGNED_TOKEN=$(python main.py)
# then use it in your request# curliecurlie POST https://api.happypathology.com/auth/hello "Authorization:Bearer $YOUR_SIGNED_TOKEN"
# or using curlcurl -X POST https://api.happypathology.com/auth/hello -H "Authorization:Bearer $YOUR_SIGNED_TOKEN"You will see a response similar to the following:
{ "status": 200, "results": { "auth_info": "Hello there!" }, "debug_info": { "delta": "54.156211ms", "version": "happy_api.386.main.f6b326f" }}