Methods for Plugin Action

Is there a way to create a plugin with an editor action that “Get data from and external API”?

Does the app allow you to call it via js?

I’m not quite too sure, could you clarify on how I can check and implications on what that would mean if I allowed that to happen please? :slight_smile:

You should be able to call an Ajax request.

Could you clarify what you mean by

Do you mean call an Ajax request from the Action part of the plugin editor? Element part of the plugin editor? Call Ajax from any of the javascript bodies? Could you have screenshots if you don’t mind please so there is no misunderstanding?

I haven’t done it myself.

@exception-rambler shows an example in his screenshot here:

Whether it works depends on the API and its CORS settings. If you need to include a server secret, it shouldn’t be sent directly from javascript.

1 Like