Also potentially tricky, knowing how to make those buttons appear! Hamburger menu (three horizontal lines in the top right of Ben’s screenshot) and then “Show Remote Control Links”:
The "Download Remote Control Links may also be of interest to you, if you wanted a big file with all the play URLs you have access to.
As for how to trigger a fetch without opening the browser, a bit of untested Googling suggests if you were brave enough, you could get your hands dirty with some VBA:
- Open your presentation in PowerPoint.
- Press
Alt + F11 to open the VBA editor.
- Click Insert > Module.
- Paste the following code into the module window:
Const BASE_URL As String = "https://syrinscape.com/online/frontend-api/"
Const AUTH_TOKEN As String = "<your_auth_token_here>"
Sub StartElement(elementId As Long)
Call SendSyrinscapeCommand("elements", elementId, "play")
End Sub
Sub StopElement(elementId As Long)
Call SendSyrinscapeCommand("elements", elementId, "stop")
End Sub
Sub StartMood(moodId As Long)
Call SendSyrinscapeCommand("moods", moodId, "play")
End Sub
Sub StopMood(moodId As Long)
Call SendSyrinscapeCommand("moods", moodId, "stop")
End Sub
Private Sub SendSyrinscapeCommand(apiType As String, id As Long, action As String)
Dim url As String
Dim xmlHttp As Object
url = BASE_URL & apiType & "/" & CStr(id) & "/" & action & "/?auth_token=" & AUTH_TOKEN
Set xmlHttp = CreateObject("MSXML2.XMLHTTP")
xmlHttp.Open "POST", url, True
xmlHttp.send
End Sub
- Make sure you swap in your Auth Token you can find in one of the copied links from the MI, or by visiting your Control Panel (https://syrinscape.com/online/cp/).
- Connect the appropriate subroutine to something in the slideshow to automate the request.
You might also find other useful things you can do with our HTTP API here: https://docs.syrinscape.com/http-reference/.
If you are using the web based version of PowerPoint, then something similar with a JavaScript fetch should do the trick.
Let me know how you get on!