curl --request GET \
--url https://api.oquiz.net/games/{id} \
--header 'Authorization: <api-key>'{
"name": "<string>",
"id": "<string>",
"users": "<unknown>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"settings": {
"gameId": "<string>",
"slots": 123,
"prePlay": true,
"teamMode": true
},
"packageId": "<unknown>",
"visibility": "<unknown>",
"communicationInviteUrl": "<unknown>",
"versionId": "<unknown>",
"expiredAt": "<unknown>",
"history": [
{
"duration": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"packageId": "<unknown>",
"gameId": "<string>",
"dump": "<unknown>",
"dumpArchiveFileKey": "<unknown>"
}
],
"pkg": {
"name": "<string>",
"id": "<string>",
"image": "<unknown>",
"verified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"description": "<unknown>",
"type": "<unknown>",
"i18n": "<unknown>",
"settings": "<unknown>",
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"deletedAt": "<unknown>",
"versions": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "<unknown>",
"packageId": "<string>",
"published": true,
"changes": "<unknown>",
"validation": "<unknown>",
"themes": [
{
"name": "<string>",
"id": "<string>"
}
],
"questions": [
{
"id": "<string>",
"price": 123,
"themeId": "<string>"
}
],
"rounds": [
{
"name": "<string>",
"id": "<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>",
"users": "<unknown>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"settings": {
"gameId": "<string>",
"slots": 123,
"prePlay": true,
"teamMode": true
},
"packageId": "<unknown>",
"visibility": "<unknown>",
"communicationInviteUrl": "<unknown>",
"versionId": "<unknown>",
"expiredAt": "<unknown>",
"history": [
{
"duration": 123,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"packageId": "<unknown>",
"gameId": "<string>",
"dump": "<unknown>",
"dumpArchiveFileKey": "<unknown>"
}
],
"pkg": {
"name": "<string>",
"id": "<string>",
"image": "<unknown>",
"verified": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"description": "<unknown>",
"type": "<unknown>",
"i18n": "<unknown>",
"settings": "<unknown>",
"difficulty": "<unknown>",
"rating": 123,
"explicit": true,
"deletedAt": "<unknown>",
"versions": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "<unknown>",
"packageId": "<string>",
"published": true,
"changes": "<unknown>",
"validation": "<unknown>",
"themes": [
{
"name": "<string>",
"id": "<string>"
}
],
"questions": [
{
"id": "<string>",
"price": 123,
"themeId": "<string>"
}
],
"rounds": [
{
"name": "<string>",
"id": "<string>"
}
]
}
]
}
}Показать дочерние атрибуты
Показать дочерние атрибуты
Показать дочерние атрибуты
Была ли эта страница полезной?