This file contains example calls that have already been successfully tested with the tool.
All examples here are written against the instance name "OBS Main", adapt accordingly to the name of your instance.

Note: most software you will use those URLs from should automatically encode things like special characters or spaces.
If your software doesn't do this you need to manually do it in your call for everything that follows an equal sign (=) for a parameter,
e.g. use %22Game%20Scene%22 instead of "Game Scene". You can use an URL encoder like the one from https://www.urlencoder.org/ for this.

------------------------------------------------------------------------------------------

Change the current scene to a scene called "Game Scene":
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetCurrentScene?scene-name="Game Scene"

In the scene "Game Scene" make the source "Follower Alert" visible:
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetSourceRender?scene-name="Game Scene"&source="Follower Alert"&render=true

Set the volume of the audio source "Desktop Audio" to -6.0 decibels:
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetVolume?source="Desktop Audio"&volume=-6.0&useDecibel=true

Mute the audio source "Desktop Audio":
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetMute?source="Desktop Audio"&mute=true

Toggle the mute status for the audio source "Mic/Aux":
http://localhost:57297/xObsSimpleHttpControl/OBS Main/ToggleMute?source="Mic/Aux"

Change the name of the source "Follower Alert" to the name "New Follower Alert":
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetSourceName?sourceName="Follower Alert"&newName="New Follower Alert"

Set the audio synchronization offset of the audio source "Mic/Aux" to 200 ms:
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetSyncOffset?source="Mic%2FAux"&offset=200000000
Note that as of obs-websocket 4.9.1 this is currently bugged, read here about the status: https://github.com/Palakis/obs-websocket/issues/799

On the source "Funny Cam" enable the filter "Upside Down":
http://localhost:57297/xObsSimpleHttpControl/OBS Main/SetSourceFilterVisibility?sourceName="Funny Cam"&filterName="Upside Down"&filterEnabled=true
