Events

These API calls deal with events.

Accepted and stripped HTML tags posted via the API

You can:

GET /event/{Event Id}, POST /event/{Event Id}

If you send a “Content” parameter, it will be added to the event as a new post.
Display details about any event.
Default page size is 45.
Use POST request to upload an image by entering image binary data into the content parameter.

Options
Parameter Type Description Required
Event Id Integer The ID of the event whose information is being retrieved or modified. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Content String The content to create a new post. No
Lat Integer The latitude of where the post originated. No
Long Integer The longitude of where the post originated. No
PageSize Integer The number of items (posts,comments,etc) that should be displayed per page. This value automatically determines the number of total pages that is required to access all the posts, comments, etc. No
UserName String Name of the anonymous user. If specified, an anonymous user will be automatically created in this call and an Authentication key will be returned. A 202 response will be returned if the request is being processed asynchronously, in this case the Auth key won’t be returned. However you may continue to pass the same UserName and IP to ensure that subsequent posts are associated to the same user. The existing user instance will be used for up to 2 hours before. No
IP String Ip Address of the anonymous user. No
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Auth is required if content is being submitted. No
Format String Format of the data returned by the API call. Can be either “xml”, “csv” or “json” No
Example HTTP and HTTPS Requests
http://apiv1.scribblelive.com/event/80644/?Token=xxxxxxxx&Format=json

https://apiv1secure.scribblelive.com/event/80644/?Token=xxxxxxxx&Format=json
Example JSON Response
{
"Id":80644,"Title":"Whitelabel test event title",
"Description":"Whitelabel test event desc",
"IsLive":1,
"IsDeleted":0,
"IsCommenting":1,
"IsModerated":0,
"Start":"\/Date(1368213794000+0000)\/",
"End":"\/Date(1368224594923+0000)\/",
"Pages":6,"NumPosts":262,
"NumComments":9,
"Language":"en",
"Location":
     {"Lat":43.666699999999999,
      "Long":-79.416700000000006},
"Websites":[
   {"Id":542,
    "Name":"CIX 2012",
    "Url":"http://cix.scribblelive.com/Event/Whitelabel_test_event_title"}
],
"Created":"\/Date(1359475592000+0000)\/",
"LastModified":"\/Date(1368213794923+0000)\/",
"Meta":{},
"IsSyndicated":0,
"IsSyndicatable":0
}
Example code (HTML POST image)
<html>
<body>
<form action="http://apiv1.scribblelive.com/event/80644/?Token=xxxxxxxx&Format=json&Auth=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
</body>

GET /event/{Event Id}/page/last

If you send a “Content” parameter, it will be added to the event as a new post.
Returns the last page of posts.

Options
Parameter Type Description Required
Event Id Integer The ID of the event whose information is being retrieved or modified. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Content String The content to create a new post. No
Lat Integer The latitude of where the post originated. No
Long Integer The longitude of where the post originated. No
PageSize Integer The number of items (posts,comments,etc) that should be displayed per page. This value automatically determines the number of total pages that is required to access all the posts, comments, etc. No
UserName String Name of the anonymous user. If specified, an anonymous user will be automatically created in this call and an Authentication key will be returned. A 202 response will be returned if the request is being processed asynchronously, in this case the Auth key won’t be returned. However you may continue to pass the same UserName and IP to ensure that subsequent posts are associated to the same user. The existing user instance will be used for up to 2 hours before. No
IP String Ip Address of the anonymous user. No
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Auth is required if content is being submitted. No
Format String Format of the data returned by the API call. Can be either “xml”, “csv” or “json” No
Example HTTP and HTTPS Requests
http://apiv1.scribblelive.com/event/80644/page/last/?Token=xxxxxxxx&format=json

https://apiv1secure.scribblelive.com/event/80644/page/last/?Token=xxxxxxx&format=json

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

GET /user

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s