LoudVoice API \ Author Sessions

Resource/URI - Discussions GET POST PUT DELETE
Discussions /loudvoice/discussions.json List all discussions Create a discussion
Discussion /loudvoice/discussions/<discussion_token>.json /loudvoice/discussions/discussion.json?
Read a discussion Update a discussion Delete a discussion
Discussion messages /loudvoice/comments/<discussion_token>/comments.json /loudvoice/discussions/discussion/comments.json?
Read discussion comments
Resource/URI - Authors GET POST PUT DELETE
Authors /loudvoice/authors.json List all authors Create an author
Author /loudvoice/authors/<author_token>.json /loudvoice/authors/author.json?
Read an author Update an author Delete an author
Resource/URI - Author Sessions GET POST PUT DELETE
Author Sessions /loudvoice/authors/sessions.json List all sessions Create or update a session
Author Session /loudvoice/authors/sessions/<session_token>.json Delete a session
Resource/URI - Comments GET POST PUT DELETE
Comments /loudvoice/comments.json List all comments Create a comment
Comment /loudvoice/comments/<comment_token>.json Read a comment Update a comment Delete a comment

Per default the LoudVoice widget uses it's own authentication system. Users can simply login with their social network account, or enter their name and email address in order to post a new comment.

To seamlessly integrate LoudVoice into your website, you however probably do not want users to have to re-login into LoudVoice once they have logged in into your own website. This is where sessions come into play.

First create a new session with the desired user information and then communicate the corresponding author_session_token to the LoudVoice widget.


Author session nodes have the format below. Absent values are returned as null.

    "author_session": {
        "author_session_token": "#author_session_token#",
        "date_creation": "#date_creation#",
        "date_last_update": "#date_last_update#",
        "date_expiration": "#date_expiration#",
        "expires_in": #expires_in#,
        "author": {
Node Description
string, automatically generated, readonly, uuid-v4
Unique identifier of this author session
Example: e570f17a-f018-49f2-be95-35dd31105c93
Session Metadata
string, RFC 2822
On this date the session was created.
Example: Tue, 13 Mar 2018 14:19:49 +0100
string, RFC 2822
On this date the the session was updated last.
Example: Wed, 14 Mar 2018 18:19:49 +0100
string, RFC 2822
On this date the session will be invalidated and removed.
Example: Wed, 14 Mar 2018 23:19:49 +0100
On each update the expiration date is incremented by this value.
Example: 1209600
Author Metadata
Collection of data representing the author the session is for.

User Contributed Notes