Translation Results

To fetch the simple translation results

GET /api/v1/simple/translations/:translation_id

Response

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X GET https://biz.conyac.cc/api/v1/simple/translations/1824432906?access_token=48c8a5caa45b12f706f297626a589096b3f01287e73b17d1a6201063552b30c6 
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "success": true,
  "message": "The translation is found.",
  "translation": {
    "id": 1824432906,
    "question_id": 107,
    "question_body_id": 1029341678,
    "body": "hoge hoge hoge hoge hoge hoge hoge hoge hoge hoge ",
    "created_at": "2014-06-10T10:32:01.000+09:00",
    "updated_at": "2014-06-10T10:32:24.000+09:00",
    "user_id": 103,
    "trainee": false,
    "posted_at": "2014-06-10T10:32:03.000+09:00",
    "comments_count": 0,
    "user": {
      "id": 103,
      "login": "testf14023639060396569",
      "created_at": "2014-06-10T10:31:46.000+09:00",
      "updated_at": "2014-06-10T10:31:59.000+09:00",
      "locale": "en",
      "picture_url": "https://secure.gravatar.com/avatar/fcc52ba025f2f213479020731e4622b7.png?d=identicon&r=PG&s=48",
      "translator": true,
      "native_language": null,
      "last_accessed_at": "2014-06-10T10:32:10.000+09:00",
      "online_status": 1,
      "online_status_text": "Online",
      "grade_text": "Standard",
      "rate": 100
    }
  },
  "question": {
    "id": 107,
    "description": null,
    "user_id": 107,
    "parent_id": null,
    "type_id": 1,
    "published_scope": 2,
    "expires_at": "2014-06-11T10:32:55.000+09:00",
    "views_count": 4,
    "letter_count": 12,
    "language_id": "ja",
    "translated_language_id": "en",
    "status": 4,
    "status_text": "Completed",
    "published_at": "2014-06-10T10:32:55.000+09:00",
    "translated_at": "2014-06-10T10:32:23.000+09:00",
    "created_at": "2014-06-10T10:31:55.000+09:00",
    "updated_at": "2014-06-10T10:32:23.000+09:00",
    "tag_text": null,
    "draft_question_id": null,
    "first_body": "hoge",
    "native": false,
    "translations_count": 4,
    "working_translations_count": 0,
    "individual": false,
    "progress_rate": 100,
    "organization_id": 4,
    "escape_text": true,
    "text_format": 1,
    "custom_field": "test1",
    "cancelable": false,
    "listing?": false,
    "total_point": 800,
    "url": "https://biz.conyac.cc/api/v1/simple/questions/107",
    "html_url": "https://conyac.cc/questions/107",
    "user": {
      "id": 107,
      "login": "test10",
      "created_at": "2014-06-10T10:31:49.000+09:00",
      "updated_at": "2014-06-10T10:31:49.000+09:00",
      "locale": "en",
      "picture_url": "https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0.png?d=identicon&r=PG&s=48",
      "translator": false
    },
    "language": {
      "id": "ja",
      "localized_name": "Japanese"
    },
    "translated_language": {
      "id": "en",
      "localized_name": "English"
    }
  },
  "question_body": {
    "id": 1029341678,
    "question_id": 107,
    "display_order": 1,
    "body": "hoge",
    "translated_at": "2014-06-10T10:32:17.000+09:00",
    "letter_count": 4,
    "translations_count": 2,
    "created_at": "2014-06-10T10:31:55.000+09:00",
    "updated_at": "2014-06-10T10:32:24.000+09:00"
  },
  "organization": {
    "id": 4,
    "name": "test10",
    "plan_id": 1,
    "user_id": 107,
    "default": 1,
    "description": null,
    "created_at": "2014-06-10T10:31:49.000+09:00",
    "updated_at": "2014-06-10T10:31:55.000+09:00",
    "url": "https://biz.conyac.cc/api/v1/organizations/4",
    "html_url": "https://conyac.cc/b/organizations/4",
    "point": 119450,
    "available_point": 119450
  }
}

To reject the simple translation result

PUT /api/v1/simple/translations/:translation_id/reject

Parameters

  • reason
    Please enter your reason for rejecting the translation. It must be at least 16 characters.

Response

$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X PUT https://biz.conyac.cc/api/v1/simple/translations/1824433058/reject -d '{"access_token":"d3713dad00cc588acbda6705f0ec65d6c8576b5284daf0c5a7cb2eed6099fb46","reason":"not a very good translation"}'
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "success": true,
  "message": "The translation was rejected.",
  "reason": "not a very good translation",
  "translation": {
    "id": 1824433058,
    "question_id": 240,
    "question_body_id": 1029341944,
    "body": "hoge hoge hoge hoge hoge hoge hoge hoge hoge hoge ",
    "created_at": "2015-03-31T13:54:54.000+09:00",
    "updated_at": "2015-03-31T13:54:56.000+09:00",
    "user_id": 746,
    "trainee": false,
    "posted_at": "2015-03-31T13:54:56.000+09:00",
    "comments_count": 1,
    "user": {
      "id": 746,
      "login": "testf1427777575208124",
      "created_at": "2015-03-31T13:52:55.000+09:00",
      "updated_at": "2015-03-31T13:54:50.000+09:00",
      "locale": "en",
      "picture_url": "https://secure.gravatar.com/avatar/40d021be218288ad7ee0ea39c56026b6.png?d=identicon&r=PG&s=48",
      "translator": true,
      "native_language": null,
      "last_accessed_at": "2015-03-31T13:54:58.000+09:00",
      "online_status": 1,
      "online_status_text": "Online",
      "grade_text": "Senior",
      "rate": 100
    }
  },
  "question": {
    "id": 240,
    "description": null,
    "user_id": 750,
    "parent_id": null,
    "type_id": 1,
    "published_scope": 2,
    "expires_at": "2015-04-01T13:55:44.000+09:00",
    "views_count": 1,
    "letter_count": 12,
    "language_id": "ja",
    "translated_language_id": "en",
    "status": 1,
    "status_text": "In Progress",
    "published_at": "2015-03-31T13:54:44.000+09:00",
    "translated_at": null,
    "created_at": "2015-03-31T13:54:44.000+09:00",
    "updated_at": "2015-03-31T13:54:44.000+09:00",
    "tag_text": null,
    "draft_question_id": null,
    "first_body": "hoge",
    "native": false,
    "translations_count": 1,
    "working_translations_count": 0,
    "individual": false,
    "progress_rate": 50,
    "organization_id": 374,
    "escape_text": true,
    "text_format": 1,
    "custom_field": "test1",
    "cancelable": false,
    "listing?": true,
    "total_point": 1200,
    "url": "https://biz.conyac.cc/api/v1/simple/questions/240",
    "html_url": "https://conyac.cc/questions/240",
    "user": {
      "id": 750,
      "login": "test10",
      "created_at": "2015-03-31T13:53:04.000+09:00",
      "updated_at": "2015-03-31T13:54:36.000+09:00",
      "locale": "en",
      "picture_url": "https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0.png?d=identicon&r=PG&s=48",
      "translator": false
    },
    "language": {
      "id": "ja",
      "localized_name": "Japanese"
    },
    "translated_language": {
      "id": "en",
      "localized_name": "English"
    }
  },
  "question_body": {
    "id": 1029341944,
    "question_id": 240,
    "display_order": 1,
    "body": "hoge",
    "translated_at": null,
    "letter_count": 4,
    "translations_count": 1,
    "created_at": "2015-03-31T13:54:44.000+09:00",
    "updated_at": "2015-03-31T13:54:44.000+09:00"
  },
  "organization": {
    "id": 374,
    "name": "test10",
    "plan_id": 1,
    "user_id": 750,
    "default": 1,
    "description": null,
    "created_at": "2015-03-31T13:53:04.000+09:00",
    "updated_at": "2015-03-31T13:53:04.000+09:00",
    "url": "https://biz.conyac.cc/api/v1/organizations/374",
    "html_url": "https://conyac.cc/b/organizations/374",
    "point": 0,
    "available_point": 117400
  }
}