Calling a plugin API from plugin action script

Is there any way to call the plugin API (defined on the plugin’s API tab) from a plugin’s action script? I know I can use XHR, but I’m just wondering if there’s any way to use the preset configurations in the API for the plugin to do it instead, thanks.

Hi guys, i have the exact same problem. Does anyone have a solution ?

There is no preset setting or something like this, but you can call the API as you call the external API using the “fetch” function.

hi @ankur1 , thanks for your answer.

I’m new to bubble and i’m not sure to understand what you mean by “fetch” function.

Are you talking about js function ? bubble function ? something else ?
And where am i’m suppose to do this call ?

Thanks again for your answer

Yeah, it’s a JS function…

This is how you call the api-

Ankur@ Nocodetalks
Looking for a Bubble Coach? Check out here

1 Like

Oki, i’ll try to do it this way thank you