Skip to content

Instantly share code, notes, and snippets.

View ktr-skmt's full-sized avatar

Kotaro Sakamoto ktr-skmt

  • Besna Institute
  • Chigasaki
View GitHub Profile
[
{
"label": <>page_id</>,
"description": <>ページID</>,
"note": <></>
},
{
"label": <>title</>,
"description": <>ページタイトル</>,
"note": <></>
{
"type": "createHumanPlayer",
"name": "HiroNakamura",
"image": "https://werewolf.world/image/0.3/character_icons/50x50/c_50x50.png",
"lang": "en"
}
{
"type": "authorizationRequestAccepted",
"accessToken": "3F2504E0-4F89-11D3-9A0C-0305E82C3301"
}
{
"type": "authorizationRequest",
"accessToken": "3F2504E0-4F89-11D3-9A0C-0305E82C3301"
}
@ktr-skmt
ktr-skmt / responses:
Last active November 18, 2019 01:06
responses:
"authorized",//server2browser, server2robot
"authenticated",//server2robot
"error:alreadyRegistered",//server2robot
"error:blocked",//server2robot
"error:invalidFormat",//server2browser, server2robot
"error:needUserEmail",//server2robot
"error:needUserPassword",//server2robot
"error:needAccessToken",//server2browser, server2robot
"error:needRobotVersion",//server2robot
"error:needSourceCodeTimestamp",//server2robot
{
"type": "authenticationAndAuthorizationRequest",
"accessToken": "3F2504E0-4F89-11D3-9A0C-0305E82C3301",
"response": "authorized"
}
{
"type": "authenticationAndAuthorizationRequest",
"userEmail": "",
"userPassword": "",
"robotVersion": "0.1.0",
"accessToken": "3F2504E0-4F89-11D3-9A0C-0305E82C3301",
"sourceCode": {
"timestamp": "2006-10-07T12:06:56.568+09:00",
"programmingLauguage": [
{
{
"@context": [
"https://werewolf.world/context/0.2/base.jsonld",
"https://werewolf.world/context/0.2/board.jsonld"
],
"@id": "https://licos.online/state/0.2/village#3/starMessage",
"village": {
"@context": "https://werewolf.world/context/0.2/village.jsonld",
"@id": "https://licos.online/state/0.2/village",
@ktr-skmt
ktr-skmt / README.md
Last active August 30, 2018 07:44
NTCIR-14 QALab PoliInfo JSON Schemata

JSON Schema Validatorを開いて,

  1. 左側のSelect schemaの下のテキストエリアに,該当のスキーマをコピーアンドペーストします
  2. 右側のテキストエリアに,作成したJSONをコピーアンドペーストします
  3. 下部に緑色で"No errors found. JSON validates against the schema"と表示されればスキーマで示された通りのJSONファイルです
{
"@context": [
"https://werewolf.world/context/0.1/base.jsonld",
"https://werewolf.world/context/0.1/display.jsonld"
],
"@id": "https://werewolf.world/resource/0.1/playerMessage",
"villageId": 3,
"villageName": "横国の森の奥にある時代に取り残された小さな村",