Display Discussion Comments

ScribbleLive has a level of nested comments that we call discussions.

Make this call to get the discussion comments associated with a post:

/post/discussion/?PostIds={Post Ids}&Token={API Token}

To keep those discussion comments up to date keep hitting the above API endpoint and checking for differences in he posts that are returned. If you find a post not already on the page, add it.

Allowing your users to submit discussion comments is a two step process. You’ll need to authenticate them as anonymous users with this API call:

/user/create/?Token={API Token}&Name={New name}&IP={IP Address}

That will return an auth token that you can use to submit the comment using this API call:

/post/{Post Id}/discussion?Content={New discussion content}&Auth={Auth Token}&Token={API Token}
Advertisements