In this example, I use Logic Apps to reach out to a Service Now instance using Basic Auth. This is kind of old as we use Oauth now, but the example can still be useful!
Source code is here
Be sure to find/replace for
double open bracketsto set your own values. Also keep in mind I had to make many changes to sanitize it so it is just a general idea of how the Logic App will work, you might have to tweak it.