curl --request GET \
--url https://api.oquiz.net/games/{id} \
--header 'Authorization: <api-key>'{
"name": "<string>",
"id": "<string>",
"settings": {
"slots": 123,
"prePlay": true,
"teamMode": true
},
"createdAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"visibility": "<unknown>",
"communicationInviteUrl": "<string>",
"packageId": "<string>",
"versionId": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z",
"history": [
{
"duration": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dumpArchiveFileKey": "<string>",
"gameId": "<string>"
}
],
"pkg": {
"name": "<string>",
"id": "<string>",
"i18n": {
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
}
},
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"verified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"versions": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"packageId": "<string>",
"published": true,
"changes": {
"categories": [
{
"categoryId": "<string>"
}
],
"id": "<string>",
"i18n": {
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
}
},
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"verified": true,
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"validation": {
"results": [
{
"level": "<unknown>",
"entity": "<unknown>",
"id": "<string>",
"message": "<string>"
}
],
"timestamp": 123
},
"rounds": [
{
"name": "<string>",
"id": "<string>"
}
],
"themes": [
{
"name": "<string>",
"id": "<string>"
}
],
"questions": [
{
"id": "<string>",
"price": 123,
"themeId": "<string>"
}
]
}
]
}
}Get game by id, you can only get a game if you are its creator or you in the players list.
curl --request GET \
--url https://api.oquiz.net/games/{id} \
--header 'Authorization: <api-key>'{
"name": "<string>",
"id": "<string>",
"settings": {
"slots": 123,
"prePlay": true,
"teamMode": true
},
"createdAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"visibility": "<unknown>",
"communicationInviteUrl": "<string>",
"packageId": "<string>",
"versionId": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z",
"history": [
{
"duration": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dumpArchiveFileKey": "<string>",
"gameId": "<string>"
}
],
"pkg": {
"name": "<string>",
"id": "<string>",
"i18n": {
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
}
},
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"verified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"versions": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"packageId": "<string>",
"published": true,
"changes": {
"categories": [
{
"categoryId": "<string>"
}
],
"id": "<string>",
"i18n": {
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
}
},
"name": "<string>",
"description": "<string>",
"image": {
"src": "<string>",
"color": "<string>"
},
"type": "<unknown>",
"settings": {
"multipliers": {},
"timers": {}
},
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"verified": true,
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"validation": {
"results": [
{
"level": "<unknown>",
"entity": "<unknown>",
"id": "<string>",
"message": "<string>"
}
],
"timestamp": 123
},
"rounds": [
{
"name": "<string>",
"id": "<string>"
}
],
"themes": [
{
"name": "<string>",
"id": "<string>"
}
],
"questions": [
{
"id": "<string>",
"price": 123,
"themeId": "<string>"
}
]
}
]
}
}Показать дочерние атрибуты
Показать дочерние атрибуты
Показать дочерние атрибуты
Была ли эта страница полезной?