Call an API from a Website

I’m confused, when I search for a (from my perspective :grinning:) common task I only get hundreds of examples how to add http requests to my Studio. But this is what I want:

On my IIS Webpage, any user hits a button “click here to get notepad calculate 1+1” and gets the response “2”. (in the background orchestrator gets an API call to start process and returns the result. I know how orchestrators apps work, so you can do this on UiPath… but I want the users to connect (without licenses) on my page http://runnotepadbyrob.com/try

So I’ve managed this with postman, but absolutely no idea how to manage oauth in my web-page. Do you know any examples or videos or documentation? I can get the code from postman for node-js, sure, but the oauth-process is never explained. Perhaps I’m completely wrong, so please correct my ideas.

I can see many connectors who do this, for example out of service-now, but how to do this on my own site?

Many thanks for any support!

Toby

Hey @TP2B

This is possible using Orchestrator APIs.

The method used in the above ref link should be replicated in your app may be in .NET or JavaScript based on your app stack

Since you said you already tried with Postman you can even export the code for your request from it in required langauge.

Hope that helps

Thanks
#nK

Thanks! Looks good, will try that. But how would you manage refresh-tokens? Or will you ever start from scratch without refreshs?
BR Toby

Yep, Starting from scratch. Refresh tokens can be also be used of course.

But may be you can first go without it in the first version and may be build upon it later.