Author Topic: HTTP GET/POST/... call  (Read 1095 times)

durss

  • Newbie
  • *
  • Posts: 2
HTTP GET/POST/... call
« on: March 19, 2021, 10:05:04 AM »
Hello !

Is there any way i can call an HTTP service as an action ?
I have a local server running in the background that manages many things, it exposes an HTTP api that I'd like to call from voiceattack to run custom stuff.

So far i couldn't find any way but writting on a text file, watching that text file from my server and read its content.
But the file watcher sometimes takes 1-2 seconds before detecting the change which i find annoying.
Calling my HTTP service directly from VoiceAttack would make things much smoother.

Did i miss anything to do that in my searches ? (forum search being quite inefficient :s..)

Have a good day :)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4758
  • RTFM
Re: HTTP GET/POST/... call
« Reply #1 on: March 19, 2021, 10:08:16 AM »
The "Value from file/URI" option of the "Set a Text Value" action can perform a GET request for you.

For more advanced control and/or POST requests, you'd need to write a plugin or inline function to handle that.

durss

  • Newbie
  • *
  • Posts: 2
Re: HTTP GET/POST/... call
« Reply #2 on: March 19, 2021, 10:20:57 AM »
Oh thank you !
It will do the trick for my needs :)