Read Comments
This example request illustrates how to read the comments of a discussion.
JSON
Request
GET /platform/discussions/discussions/dis-MMMM-MMM/comments
Accept: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-fs-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/discussions/discussions/dis-MMMM-MMM/comments
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked
{
"discussions" : [ {
"id" : "dis-MMMM-MMM",
"links" : {
"discussion" : {
"href" : "https://api.familysearch.org/platform/discussions/discussions/dis-MMMM-MMM?flag=fsh"
}
},
"comments" : [ {
"text" : "Just a comment.",
"contributor" : {
"resource" : "https://familysearch.org/platform/users/agents/JNYR-KJP",
"resourceId" : "JNYR-KJP"
},
"created" : 1543677067759
} ]
} ]
}
XML
Request
GET /platform/discussions/discussions/dis-MMMM-MMM/comments
Accept: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/discussions/discussions/dis-MMMM-MMM/comments
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fs:familysearch xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<fs:discussion id="dis-MMMM-MMM">
<link rel="discussion" href="https://api.familysearch.org/platform/discussions/discussions/dis-MMMM-MMM?flag=fsh"/>
<fs:comment>
<fs:text>Just a comment.</fs:text>
<fs:created>2018-12-01T08:11:07.759-07:00</fs:created>
<fs:contributor resource="https://familysearch.org/platform/users/agents/JNYR-KJP" resourceId="JNYR-KJP"/>
</fs:comment>
</fs:discussion>
</fs:familysearch>
Read Comments
This example request illustrates how to read the comments of a discussion.
JSON
Request
GET /platform/discussions/discussions/dis-MMMM-MMM/comments Accept: application/x-fs-v1+json Authorization: Bearer YOUR_ACCESS_TOKEN_HEREResponse
HTTP/1.1 200 OK Content-type: application/x-fs-v1+json X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/discussions/discussions/dis-MMMM-MMM/comments Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0 Transfer-encoding: chunked{ "discussions" : [ { "id" : "dis-MMMM-MMM", "links" : { "discussion" : { "href" : "https://api.familysearch.org/platform/discussions/discussions/dis-MMMM-MMM?flag=fsh" } }, "comments" : [ { "text" : "Just a comment.", "contributor" : { "resource" : "https://familysearch.org/platform/users/agents/JNYR-KJP", "resourceId" : "JNYR-KJP" }, "created" : 1543677067759 } ] } ] }XML
Request
GET /platform/discussions/discussions/dis-MMMM-MMM/comments Accept: application/x-fs-v1+xml Authorization: Bearer YOUR_ACCESS_TOKEN_HEREResponse
HTTP/1.1 200 OK Content-type: application/x-fs-v1+xml X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/discussions/discussions/dis-MMMM-MMM/comments Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0 Transfer-encoding: chunked<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fs:familysearch xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom"> <fs:discussion id="dis-MMMM-MMM"> <link rel="discussion" href="https://api.familysearch.org/platform/discussions/discussions/dis-MMMM-MMM?flag=fsh"/> <fs:comment> <fs:text>Just a comment.</fs:text> <fs:created>2018-12-01T08:11:07.759-07:00</fs:created> <fs:contributor resource="https://familysearch.org/platform/users/agents/JNYR-KJP" resourceId="JNYR-KJP"/> </fs:comment> </fs:discussion> </fs:familysearch>Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.