API Developers Guide

Project > Comments > Get comments

Fetch project comments.

GET: /projects/<project_id>/comments
Request Params
ParametersDescription

project_id

Project ID.
Response Params
ParametersDescription

Array of comments

Parameter Description
id Unique id of the comment.
date Comment submission date.
commenter_name Short representation of the user’s name.
commenter_role admin | customer | provider | potential-provider
  • admin - OHT support team.
  • provider - The translator / proofreader / transcriber that is assigned to the project.
  • potential-provider - A translator / proofreader / transcriber that was allowed to view the project before it was assigned.
content Comment content.

Request Example

curl --request GET "https://www.onehourtranslation.com/api/2/projects/1847/comments?secret_key=<SECRET_KEY>&public_key=<SECRET_KEY>"

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
   [
    {
     "id":"229",
     "date":"2013-10-31 14:45:04",
     "commenter_name":"admin",
     "commenter_role":"admin",
     "comment_content":"admin's comment"
    },
    {
     "id":"228",
     "date":"2013-10-31 14:44:10",
     "commenter_name":"Trans_test",
     "commenter_role":"provider",
     "comment_content":"translator's comment"
    }
   ],
 "errors":[]
}