Use curl to run a command via the API.


  • administrators

    curl -X POST
    https://www.triggercmd.com/api/run/triggerSave
    -H 'authorization: Bearer (insert token here)'
    -H 'content-type: application/json'
    -d '{"computername":"(insert computer name here)","triggername":"(insert trigger name here)"}'

    Reminder - your computer name is different from your voice trigger for your computer.

    Also, if you run this on Windows, you'll need to download the Windows version of curl, and use double quotes (") instead of single quotes ('). See this article for more about how to do this on Windows.

    I find the above curl method to work faster than these built-in commands.


Log in to reply
 

Looks like your connection to TRIGGERcmd Forum was lost, please wait while we try to reconnect.