LoudVoice API \ Discussions \ Get discussion details

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?
discussion_reference=<discussion_reference>
Read a discussion Update a discussion Delete a discussion
Discussion messages /loudvoice/comments/<discussion_token>/comments.json /loudvoice/discussions/discussion/comments.json?
discussion_reference=<discussion_reference>
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?
author_reference=<author_reference>
Read an author Update an author Delete an author
Resource/URI - Author Sessions GET POST PUT DELETE
Author Sessions /loudvoice/authors/sessions.json Create/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 comment
Comment /loudvoice/comments/<comment_token>.json Read a comment Update comment Delete a comment

Workflow

Request: the code to send to the API

Send a GET request to the resource /loudvoice/discussion/<discussion_token>.json to retrieve details of a discussion. The <discussion_token> has to be replaced by the unique token of an existing discussion.

You can also access the discussion through it's reference using the following endpoint: /loudvoice/discussions/discussion.json?discussion_reference=<discussion_reference>.

Result: the code returned by the API

The API will either return a HTTP status code 200 on success or an appropriate message body with further details on the error that occured.

Example Resultset

	{
        "response": {
            "request": {
                "date": "Mon, 19 Mar 2018 14:55:55  0100",
                "resource": "/loudvoice/discussions/74306343-9b4c-42cd-978c-f0181b6e9589.json",
                "status": {
                    "flag": "success",
                    "code": 200,
                    "info": "Your request has been processed successfully"
                }
            },
            "result": {
                "data": {
                    "discussion": {
                        "discussion_token": "74306343-9b4c-42cd-978c-f0181b6e9589",
                        "discussion_reference": "PAGE-762",
                        "title": "LoudVoice Documentation",
                        "url": "https://docs.oneall.loc/api/resources/loudvoice/",
                        "is_closed": false,
                        "is_trashed": false,
                        "num_comments": 2,
                        "date_last_comment": "Wed, 14 Mar 2018 14:19:31  0100",
                        "date_creation": "Wed, 14 Mar 2018 14:18:30  0100",
                        "date_last_update": null
                    }
                }
            }
        }
    }

User Contributed Notes