API to create moderator

You can use the following API to create a moderator for your chat room

URL: 

https://deadsimplechat.com/consumer/api/v1/chatroom/moderator?auth=<auth_token>

METHOD: POST

BODY:

{
	username: string,
	password: string,
	roomId: string
}

Javascript Code Sample:

$.ajax({
  method: "POST",
  url: "https://deadsimplechat.com/consumer/api/v1/chatroom/moderator?auth=replace_with_authtoken",
  data: {
    username: "James",
    password: "007",
    roomId: "samwqehjn"
  }
}).then(function(success) {
  console.log(success)
}).catch(function(ex) {
  console.log("Error", ex.responseJSON)
})
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us