API run a event

tomimatko

Active member
I'm experimenting a bit with the API. Is it possible to trigger a specific event in the scheduler via the API?
If yes, what would the command look like? For example, if the event is called "Dance"

http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&Dance

Although action=schedule&type=list returns XML showing that the event "Dance" exists, it still keeps giving me E101: event does not exist.
 
I'm experimenting a bit with the API. Is it possible to trigger a specific event in the scheduler via the API?
If yes, what would the command look like? For example, if the event is called "Dance"

http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&Dance

Although action=schedule&type=list returns XML showing that the event "Dance" exists, it still keeps giving me E101: event does not exist.
OK, I got it. As I understand, it doesn’t work with the event name but with its ID.
First, I made http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=list to see the event ID (or copy the event ID in the scheduler), and then I made
http://IP:port/?user=USERNAME&pass=PASSWORD&action=schedule&type=run&id=HJIOGDNOPHFDTHMJ

And everything works as it should.
 
Is there any way to run a makelibrary command with the file path in an event?

This is the command I use... How would that translate into an API command?

makelibrary <normalize:-1.0;skip> "2010s"|"D:\2010s"
 
Is there any way to run a makelibrary command with the file path in an event?
You can create an event with the necessary command and then use the API to start this event.
Or you can call the command directly:
Code:
http://IP:Port/?pass=PASSWORD&cmd=makelibrary ...
Please note that you have to urlencode() the command parameter.
 
Back
Top