Technical Articles
Call SAP Conversational AI API using OAuth from Python
Here is a short blog post based the great Call SAP Conversational AI API Using OAuth tutorial https://developers.sap.com/tutorials/conversational-ai-api-oauth.html. I did not want to use flask and just wanted to provide a simple request example of how to do the call to SAP Conversational AI API using OAuth from Python.
The code can be found on GitHub here: https://github.com/bjornhenrikzink/python/tree/master/SAP-Conversational-AI
Simple sequence diagram of the flow:
Sometimes a screenshot says more than a thousand words and should be all you need to make the example work:
That’s it. Enjoy!
Be the first to leave a comment
You must be Logged on to comment or reply to a post.