指定した依頼内容を取得することが出来ます。
Questionオブジェクトは翻訳依頼の情報を格納するオブジェクトのことを指します。
詳しくはこちらから確認することが出来ます。
GET /api/v1/questions/:question_id
$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X GET https://biz.conyac.cc/api/v1/questions/6?access_token=8c1525a501a5b10671b148003c65b1ed5c0598da5907f0a7855dc248faac8b76 HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
{
"success": true,
"message": "the question is found.",
"question": {
"id": 6,
"project_id": 3,
"question_source_id": 7,
"user_id": 107,
"title": "body2<hoge>ddd</hoge>",
"letter_count": 8,
"language_id": "ja",
"translated_language_id": "en",
"status": 0,
"status_text": "pending",
"total_point": 32,
"created_at": "2014-06-10T10:32:50.000+09:00",
"updated_at": "2014-06-10T10:32:50.000+09:00",
"custom_field": null,
"description": "",
"ended_at": null,
"grab_expires_at": null,
"translated_at": null,
"individual": false,
"double_check": false,
"escape_text": false,
"url": "https://biz.conyac.cc/api/v1/questions/6",
"html_url": "https://conyac.cc/b/projects/3/questions/6",
"cancelable": true,
"organization_id": 4,
"file_type": "html_text",
"user": {
"id": 107,
"login": "test10",
"created_at": "2014-06-10T10:32:38.000+09:00",
"updated_at": "2014-06-10T10:32:38.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"
},
"translation": {
"revision_number": 0,
"submitted": false,
"download_url": null,
"downloadable": false,
"submitted_at": null,
"user_id": null,
"url": null,
"html_url": null
}
}
}
指定した依頼に対してキャンセルを行うことが出来ます。
PUT /api/v1/questions/:question_id/cancel
$ curl -i -H "Accept: application/json" -H "Content-type: application/json" -X PUT https://biz.conyac.cc/api/v1/questions/9/cancel HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
{
"success": true,
"message": "the question is found.",
"question": {
"id": 9,
"project_id": 6,
"question_source_id": 10,
"user_id": 107,
"title": "hogehoge2",
"letter_count": 9,
"language_id": "ja",
"translated_language_id": "en",
"status": 3,
"status_text": "cancelled",
"total_point": 36,
"created_at": "2014-06-10T10:33:42.000+09:00",
"updated_at": "2014-06-10T10:33:43.039+09:00",
"custom_field": null,
"description": "",
"ended_at": "2014-06-10T10:33:43.030+09:00",
"grab_expires_at": null,
"translated_at": null,
"individual": false,
"double_check": false,
"escape_text": false,
"url": "https://biz.conyac.cc/api/v1/questions/9",
"html_url": "https://conyac.cc/b/projects/6/questions/9",
"cancelable": false,
"organization_id": 4,
"file_type": "string",
"user": {
"id": 107,
"login": "test10",
"created_at": "2014-06-10T10:32:38.000+09:00",
"updated_at": "2014-06-10T10:33:41.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"
},
"translation": {
"revision_number": 0,
"submitted": false,
"download_url": null,
"downloadable": false,
"submitted_at": null,
"user_id": null,
"url": null,
"html_url": null
}
}
}