Author Topic: http api event command  (Read 821 times)

0 Members and 1 Guest are viewing this topic.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
http api event command
« on: April 09, 2014, 05:09:08 PM »
hi

is this a illegal vc http command http://127.0.0.1:8081/api/event&&jarvis
I get an error: Unknown Action
Neural Net Based Artificial Intelligence.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: http api event command
« Reply #1 on: April 09, 2014, 06:23:55 PM »
Yes.  This is an old way of doing it and not supported by plugins (only by the udp listener).  It is best to always use a valid action.  So in this case you should use.

http://127.0.0.1:8081/api/VC.TriggerEvent&&Jarvis

I realize this is inconsistent, and I apologize for that, but the other method is a vestigial one, and I did not want to remove it for fear of breaking things that people already had set up.  Please consider it deprecated though.


jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: http api event command
« Reply #2 on: April 09, 2014, 06:25:08 PM »
hi

is this a illegal vc http command http://127.0.0.1:8081/api/event&&jarvis
I get an error: Unknown Action

Also, if I suggested this method somewhere in the documentation (wiki), please let me know where you found it so I can correct it.