There is currently no way to execute them through the RESTful API. You can script them, however, which may be useful if you're executing a script from a separate process on the same Mac using the
indigo-host command.
We encourage plugin developers to document this in their plugins documentation, but it can be discovered if necessary.
Yes,
Indigo Plugins as a general rule are scriptable (that link discusses how and shows some examples). We encourage plugin developers to document this in their plugin's documentation, but it can be discovered if necessary as you'll see below.
First you need to determine the ID of the plugin, which is visible on the
Plugin Store page for that plugin (com.oldefortran.indigo.exlink). That's the easy part.
The more complex part is figuring out what the props are that you have to pass to the plugin - this is where you have to
inspect the plugin code. In the Actions.xml for the plugin, you'll want to look at the
sendSingleButton action at the very bottom (that's the action id that you'll pass in to the
executeAction method of the plugin). You'll notice on the
Action definition that it specifies a
deviceFilter - this indicates that you'll need to pass a
deviceId in to the
executeAction method. The only field specified is the
Button field id - you need to pass the appropriate value for the required button as specified in the
Option List in a dictionary as the
props parameter of the
executeAction method.