Multiple url in web component?

I wanted to know how to use More than one url in same web component.

I create an app in which i use an api, the api needs to do authentication first to build a fast network, and 2nd URL is for getting data from the URL. I am wanted to know how to Authenticate and Get data, with this api, URL1 and URL2 both are not same.

Screenshot_2021_0129_001415

1 Like

Yes, I use 1 web component for several url. One way would be to use a variable to define if the url will be www.xyz.com or if it will be www.ywk.com.
In the web.got event too.

But, I don’t know how your app’s algorithm works. In mine it works.

You can simply trigger an event

Button
url
call web 1 get

when clock1 timer, call button1 click