VIDIZMO's 'Leave' API allows joined users to leave a Channel or the main Account. To use this API, the user must be logged in so that a User Context is established. A user leaving the Channel must have rights to perform this action, and if the user doesn’t have appropriate rights, an error will be returned.
This API only expects ‘tenant_id’ parameter to execute.
Sample Code
<script type="text/javascript" src="http://video.lexcorpinc.com/JavaScript/bundles/widgets.js"></script>
<script type="text/javascript">
function Leave() {
var options = {
"access_token":'oo45%252f%252fpgC2skXAD8koQ%253d%253d'
"tenant_id": 5442,
}
vidizmo.api.channels.leave(options,
function (response) {
// on completion
});
}
</script>
Properties
Property |
Comments |
tenant_id |
Tenant Id of a Channel / Account user wants to leave. |
Response
{status: 1, status_code: 200, message: "You have left [Channel Name] Channel."}
To learn more how these Widgets work, click here on VIDIZMO JS API Implementation.
For a complete list of VIDIZMO APIs, click here on VIDIZMO Developer APIs.