Can mount users be added/manage remotely with other software
-
- Posts: 78
- Joined: Tue Jan 15, 2002 4:41 am
- Location: Vancouver
- Contact:
Can mount users be added/manage remotely with other software
Would someone be able to access Steamcast back end with other software (custom module) to say add users to the live mount. I was thinking more of Drupal users with the right access being able to log into the Drupal site, pick a date on a calendar and on that date Drupal would add the Streamcast user to the live mount so they could access it. This way verified DJ's could pick their own schedule to play on the stream.
- Jay
- Will work for food (Administrator)
- Posts: 3025
- Joined: Mon Jan 14, 2002 12:48 am
- Location: Next Door
- Contact:
Re: Can mount users be added/manage remotely with other soft
You could write something that could do this by making the right form calls to the backend control panel.
Something like this
Add
Remove
You can also automate this for other rolls.
Administration is group 2, stats is 3, mount manager is 4, mount source (can only authenticate as source and not to the panel) is 5 and listener is 6.
Listener authentication automation in this way is not necessary as you can use "NotifyListenerAdd" and "NotifyListenerRemove" configuration values to have Steamcast ask a defined script if that user should be allowed. Unfortunately doing this for sources was missed but will be in future version of Steamcast.
Keep in mind that you will have to authenticate yourself to the admin panel using authentication-basic from the script.
We are in the process of designing a REST API that will make this a little less cumbersome and more officially documented.
Something like this
Add
Code: Select all
http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=create&username={USER}&password={PASSWORD}&password-confirm={PASSWORD}&group=4
Code: Select all
http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=delete&{USER}=on
Administration is group 2, stats is 3, mount manager is 4, mount source (can only authenticate as source and not to the panel) is 5 and listener is 6.
Listener authentication automation in this way is not necessary as you can use "NotifyListenerAdd" and "NotifyListenerRemove" configuration values to have Steamcast ask a defined script if that user should be allowed. Unfortunately doing this for sources was missed but will be in future version of Steamcast.
Keep in mind that you will have to authenticate yourself to the admin panel using authentication-basic from the script.
We are in the process of designing a REST API that will make this a little less cumbersome and more officially documented.
- Jay
-
- Posts: 78
- Joined: Tue Jan 15, 2002 4:41 am
- Location: Vancouver
- Contact:
Re: Can mount users be added/manage remotely with other soft
Thanks, gonna see if I can get someone to create a module that can do this in Drupal.Jay wrote:You could write something that could do this by making the right form calls to the backend control panel.
Something like this
AddRemoveCode: Select all
http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=create&username={USER}&password={PASSWORD}&password-confirm={PASSWORD}&group=4
You can also automate this for other rolls.Code: Select all
http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=delete&{USER}=on
Administration is group 2, stats is 3, mount manager is 4, mount source (can only authenticate as source and not to the panel) is 5 and listener is 6.
Listener authentication automation in this way is not necessary as you can use "NotifyListenerAdd" and "NotifyListenerRemove" configuration values to have Steamcast ask a defined script if that user should be allowed. Unfortunately doing this for sources was missed but will be in future version of Steamcast.
Keep in mind that you will have to authenticate yourself to the admin panel using authentication-basic from the script.
We are in the process of designing a REST API that will make this a little less cumbersome and more officially documented.
Re: Can mount users be added/manage remotely with other soft
Make sure to validate all input and verify that the username is just alphanumerical.sound selecta wrote: Thanks, gonna see if I can get someone to create a module that can do this in Drupal.