I need to push new channels to an Iguana instance, then lock them so local users can’t change them.
I can currently programatically deploy new channels. I am unable to find an API to allow me to group the channels and set roles so the local users are unable to make changes.
Can this be done?
I have a fallback plan of simulating the conversation the web UI had with the server by doing the following (although it’s not yet tested):
HTTP POST to http://localhost:6543/channel_groupings_control.html
With form data
Then POST http://localhost:6543/role_control.html
Is there a better way?
No there isn’t a better way. I would recommend that you:
Hope that helps! Did you just use the Chrome or equivalent tools to reverse engineer the form of the web calls to do this?
(may be incorrectly presuming you are using lua code for the interaction)
Yep I just monitored the web calls using Chrome devtools. Obviously being an undocumented API anything I implemented could break whenever we upgrade Iguana.
I will probably implement this as C# code. Obviously I will need to also handle starting a session (authenticating) first. Again I’ll reverse engineer it unless there is a nicer way.
You must be logged in to reply to this topic.