アプリケーションイベント作成時にConyac 本サイトへのOAuth 2.0クライアントアプリケーション登録
時に指定したコールバック通知URLに以下のようなようなJSON文字列がPOSTされます。
クライアントアプリケーションが応答しないもしくは、200以外のHTTP Statusを返す場合には、5分後、30分後、60分後、2時間後、5時間後、12時間後、24時間後、48時間後と送信を試みますが、それ以後の再送は行いません。
再送後に、callbackの順番が逆転する可能性があります。また、event発生後、再送等でcallbackまでに時差が発生し、callback発行までにデータの変更が発生してもcallbackデータは変更されません。
という流れの場合、4のデータは、2時点でのデータとなり3の内容はコールバックにはふくまれません。
このような場合に備え、アプリケーションイベント一覧の中からsinceパラメータを指定することにより、ある時点以降のアプリケーションイベント一覧を定期的に取得しておくことを推奨します。
{
"id": 13,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "project.created",
"created_at": "2014-06-10T10:33:42.000+09:00",
"retry_count": 1,
"project": {
"id": 6,
"organization_id": 4,
"user_id": 107,
"point": 36,
"created_at": "2014-06-10T10:33:42.935+09:00",
"updated_at": "2014-06-10T10:33:42.935+09:00",
"language_id": "ja",
"translated_language_id": "en",
"individual": false,
"url": "https://biz.conyac.cc/api/v1/projects/6",
"html_url": "https://conyac.cc/b/projects/6",
"question_count": 1,
"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
},
"questions": [
{
"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": 0,
"status_text": "pending",
"total_point": 36,
"created_at": "2014-06-10T10:33:42.936+09:00",
"updated_at": "2014-06-10T10:33:42.936+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/9",
"html_url": "https://conyac.cc/b/projects/6/questions/9",
"cancelable": true,
"organization_id": 4,
"file_type": "string"
}
],
"language": {
"id": "ja",
"localized_name": "Japanese"
},
"translated_language": {
"id": "en",
"localized_name": "English"
}
}
}
{
"id": 14,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.canceled",
"created_at": "2014-06-10T10:33:43.000+09:00",
"retry_count": 1,
"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:42.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/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"
}
}
}
{
"id": 11,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.relisted",
"created_at": "2014-06-10T10:33:33.000+09:00",
"retry_count": 1,
"question": {
"id": 8,
"project_id": 5,
"question_source_id": 9,
"user_id": 107,
"title": "hogehoge2",
"letter_count": 9,
"language_id": "ja",
"translated_language_id": "en",
"status": 1,
"status_text": "listing",
"total_point": 36,
"created_at": "2014-06-10T10:33:23.000+09:00",
"updated_at": "2014-06-10T10:33:33.906+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/8",
"html_url": "https://conyac.cc/b/projects/5/questions/8",
"cancelable": true,
"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:18.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"
}
}
}
{
"id": 6,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.translated",
"created_at": "2014-06-10T10:33:13.000+09:00",
"retry_count": 1,
"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": 6,
"status_text": "translated",
"total_point": 32,
"created_at": "2014-06-10T10:32:50.000+09:00",
"updated_at": "2014-06-10T10:33:13.904+09:00",
"custom_field": null,
"description": "",
"ended_at": null,
"grab_expires_at": "2014-06-10T13:33:03.000+09:00",
"translated_at": "2014-06-10T10:33:13.903+09:00",
"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": false,
"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"
}
}
}
最初の翻訳投稿から翻訳投稿後24時間後に送信されます。
{
"id": 7,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.completed",
"created_at": "2014-06-10T10:33:14.000+09:00",
"retry_count": 2,
"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": 4,
"status_text": "completed",
"total_point": 32,
"created_at": "2014-06-10T10:32:50.000+09:00",
"updated_at": "2014-06-10T10:33:13.000+09:00",
"custom_field": null,
"description": "",
"ended_at": null,
"grab_expires_at": "2014-06-10T13:33:03.000+09:00",
"translated_at": "2014-06-10T10:33:13.000+09:00",
"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": false,
"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"
}
}
}
{
"id": 12,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.expired",
"created_at": "2014-06-10T10:33:39.000+09:00",
"retry_count": 1,
"question": {
"id": 8,
"project_id": 5,
"question_source_id": 9,
"user_id": 107,
"title": "hogehoge2",
"letter_count": 9,
"language_id": "ja",
"translated_language_id": "en",
"status": 5,
"status_text": "expired",
"total_point": 36,
"created_at": "2014-06-10T10:33:23.000+09:00",
"updated_at": "2014-06-10T10:33:38.000+09:00",
"custom_field": null,
"description": "",
"ended_at": "2014-06-10T10:33:39.188+09:00",
"grab_expires_at": "2014-06-10T10:33:39.000+09:00",
"translated_at": null,
"individual": false,
"double_check": false,
"escape_text": false,
"url": "https://biz.conyac.cc/api/v1/questions/8",
"html_url": "https://conyac.cc/b/projects/5/questions/8",
"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:18.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"
}
}
}
翻訳者が、翻訳が投稿される毎に呼ばれます。
{
"id": 5,
"action_user_id": 107,
"application_id": 1,
"organization_id": 4,
"action_organization_id": 4,
"type": "question.submitted_translation",
"created_at": "2014-06-10T10:33:13.000+09:00",
"retry_count": 1,
"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": 2,
"status_text": "translating",
"total_point": 32,
"created_at": "2014-06-10T10:32:50.000+09:00",
"updated_at": "2014-06-10T10:33:07.000+09:00",
"custom_field": null,
"description": "",
"ended_at": null,
"grab_expires_at": "2014-06-10T13:33:03.000+09:00",
"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": false,
"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"
}
}
}
{
"id": 768,
"action_user_id": 7927,
"application_id": 69,
"organization_id": 785,
"action_organization_id": 785,
"type": "simple_question.feedback",
"created_at": "2015-05-15 17:37:50 +0900",
"retry_count": 1,
"question": {
"id": 545,
"description": null,
"user_id": 7927,
"parent_id": null,
"type_id": 1,
"published_scope": 2,
"expires_at": "2015-05-16T17:37:10.000+09:00",
"views_count": 4,
"letter_count": 12,
"language_id": "ja",
"translated_language_id": "en",
"status": 10,
"status_text": "Feedback",
"published_at": "2015-05-15T17:36:18.000+09:00",
"translated_at": "2015-05-15T17:37:40.000+09:00",
"created_at": "2015-05-15T17:36:10.000+09:00",
"updated_at": "2015-05-15T17:37:50.800+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": 785,
"escape_text": true,
"text_format": 1,
"custom_field": "test1",
"cancelable": false,
"listing?": false,
"total_point": 1200,
"question_bodies": [
{
"id": 1029342355,
"question_id": 545,
"display_order": 1,
"body": "hoge",
"translated_at": "2015-05-15T17:37:27.000+09:00",
"letter_count": 4,
"translations_count": 2,
"created_at": "2015-05-15T17:36:14.000+09:00",
"updated_at": "2015-05-15T17:37:50.000+09:00",
"translations": [
{
"id": 1824433224,
"question_id": 545,
"question_body_id": 1029342355,
"body": "hoge hoge hoge hoge hoge hoge hoge hoge hoge hoge ",
"created_at": "2015-05-15T17:36:32.000+09:00",
"updated_at": "2015-05-15T17:36:36.000+09:00",
"user_id": 7854,
"trainee": false,
"posted_at": "2015-05-15T17:36:35.000+09:00",
"comments_count": 0,
"user": {
"id": 7854,
"login": "testf1431678904308877",
"created_at": "2015-05-15T17:35:04.000+09:00",
"updated_at": "2015-05-15T17:36:26.000+09:00",
"locale": "en",
"picture_url": "https://secure.gravatar.com/avatar/dd552090d941f9e2e31d65e669e1e2a0.png?d=identicon&r=PG&s=48",
"translator": true,
"native_language": null,
"last_accessed_at": "2015-05-15T17:36:57.000+09:00",
"online_status": 1,
"online_status_text": "Online",
"grade_text": "Senior",
"rate": 100
}
},
{
"id": 1824433226,
"question_id": 545,
"question_body_id": 1029342355,
"body": "hoge hoge hoge hoge hoge hoge hoge hoge hoge hoge ",
"created_at": "2015-05-15T17:37:22.000+09:00",
"updated_at": "2015-05-15T17:37:27.000+09:00",
"user_id": 7868,
"trainee": false,
"posted_at": "2015-05-15T17:37:27.000+09:00",
"comments_count": 0,
"user": {
"id": 7868,
"login": "testf14316789094004521",
"created_at": "2015-05-15T17:35:09.000+09:00",
"updated_at": "2015-05-15T17:37:17.000+09:00",
"locale": "en",
"picture_url": "https://secure.gravatar.com/avatar/f0b2815d872339f4de320c7988b52753.png?d=identicon&r=PG&s=48",
"translator": true,
"native_language": null,
"last_accessed_at": "2015-05-15T17:37:40.000+09:00",
"online_status": 1,
"online_status_text": "Online",
"grade_text": "Senior",
"rate": 100
}
}
]
},
{
"id": 1029342356,
"question_id": 545,
"display_order": 2,
"body": "hoge<a href='/'>{{{{hoge}}}</a>",
"translated_at": "2015-05-15T17:37:40.000+09:00",
"letter_count": 8,
"translations_count": 2,
"created_at": "2015-05-15T17:36:14.000+09:00",
"updated_at": "2015-05-15T17:37:50.000+09:00",
"translations": [
{
"id": 1824433225,
"question_id": 545,
"question_body_id": 1029342356,
"body": "hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>",
"created_at": "2015-05-15T17:36:43.000+09:00",
"updated_at": "2015-05-15T17:36:48.000+09:00",
"user_id": 7854,
"trainee": false,
"posted_at": "2015-05-15T17:36:48.000+09:00",
"comments_count": 0,
"user": {
"id": 7854,
"login": "testf1431678904308877",
"created_at": "2015-05-15T17:35:04.000+09:00",
"updated_at": "2015-05-15T17:36:26.000+09:00",
"locale": "en",
"picture_url": "https://secure.gravatar.com/avatar/dd552090d941f9e2e31d65e669e1e2a0.png?d=identicon&r=PG&s=48",
"translator": true,
"native_language": null,
"last_accessed_at": "2015-05-15T17:36:57.000+09:00",
"online_status": 1,
"online_status_text": "Online",
"grade_text": "Senior",
"rate": 100
}
},
{
"id": 1824433227,
"question_id": 545,
"question_body_id": 1029342356,
"body": "hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>hoge <a href='/'> { {{{hoge}}} </a>",
"created_at": "2015-05-15T17:37:34.000+09:00",
"updated_at": "2015-05-15T17:37:40.000+09:00",
"user_id": 7868,
"trainee": false,
"posted_at": "2015-05-15T17:37:40.000+09:00",
"comments_count": 0,
"user": {
"id": 7868,
"login": "testf14316789094004521",
"created_at": "2015-05-15T17:35:09.000+09:00",
"updated_at": "2015-05-15T17:37:17.000+09:00",
"locale": "en",
"picture_url": "https://secure.gravatar.com/avatar/f0b2815d872339f4de320c7988b52753.png?d=identicon&r=PG&s=48",
"translator": true,
"native_language": null,
"last_accessed_at": "2015-05-15T17:37:40.000+09:00",
"online_status": 1,
"online_status_text": "Online",
"grade_text": "Senior",
"rate": 100
}
}
]
}
],
"url": "https://biz.conyac.cc/api/v1/simple/questions/545",
"html_url": "https://conyac.cc/questions/545",
"user": {
"id": 7927,
"login": "test10",
"created_at": "2015-05-15T17:35:39.000+09:00",
"updated_at": "2015-05-15T17:35:39.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"
}
}
}