Submit Comments to an Event

Here’s the call that will allow your readers to submit comments to your event.

/event/{Event Id}/?Token={API Token}&UserName=Username&Content=This%20is%20the%20content%20of%20the%20post.
When the UserName parameter is sent with no auth token, the Content is submitted as a comment and an auth token is returned to be used in future calls.

Below is a simple example of submitting comments via our API. You need to replace xxxx with your event Id and yyyy with your API token.

<!DOCTYPE html>

var event_id = xxxx;
var token = "yyyy";

function myFunction(){
        var comment = document.getElementById('myTextarea').value;
	var username = document.getElementById('username').value;           
	var xmlHttp = null;     
	var theUrl = "" + event_id + "/?Token=" + token + "&Content=" + comment + "&UserName=" + username;     
	xmlHttp = new XMLHttpRequest(); "GET", theUrl, false );       
	xmlHttp.send( null ); 

Username:<input id="username" type="text" /><br/>Comment:<textarea id="myTextarea"><textarea/><br/>
<button onclick="myFunction()">Submit Comment</button>

Note: This API call is related to comments submitted via the ScribbleLive login option only.