投票

LLM
下载
v1.0.0
OpenAPI 3.1.1

投票

服务器:https://api.gamemonitoring.cn
未选择身份验证

投票

​

按 ID 返回投票信息。

URL 参数

查询参数

  • API 版本。不传 v 时使用最低受支持版本。传入 v=1.0.0 可固定文档中的接口契约。无效、重复或不受支持的值返回 HTTP 400。

响应

  • Vote details response

      • Processing acknowledgement time in Unix seconds; null means unclaimed.

      • ID of the entity that received the vote.

      • Type of the entity that received the vote.

      • Present for project votes.

      • Present for server votes.

      • Present only when the requester can view webhook delivery details.

        • 值
          deliveredfailedno_resultpendingnull
    application/json
  • 参数或 JSON 无效。请检查类型、必填字段及允许范围。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 访问被拒绝:地址被封禁,或项目未公开。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 请求的资源不存在。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 服务暂时不可用,请稍后重试。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 查询超时。请稍后重试或缩小请求范围。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 意外的服务器错误。error 对象包含实际状态码。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
代码示例
{
  "response": {
    "created_at": 1783200000,
    "expires_at": 1783243200,
    "id": "6f59a4a8-2f0f-4d96-a50a-9d7a21f4b812",
    "entity_id": 100001,
    "entity_type": "server",
    "nickname": "NovaPlayer",
    "server": {
      "app": {
        "id": 2400,
        "name": "Example Shooter",
        "steam_id": 111111,
        "url": "example-shooter"
      },
      "game": 111111,
      "icon": null,
      "id": 100001,
      "name": "Example Arena"
    },
    "user": {
      "avatar": "8f14e45f-e9a1-4f4d-a9f3-6d7b0d4a2c18.webp",
      "id": 204801,
      "username": "demo_user",
      "uuid": "d4f9c57e-7c8b-49c7-8d7e-b2f1a39f4a25",
      "connections": [
        {
          "id": "100000000000000001",
          "name": "demo_user",
          "type": "discord",
          "url": "https://discord.com/users/100000000000000001"
        },
        {
          "id": "76561198000000001",
          "name": "NovaPlayer",
          "type": "steam",
          "url": "https://steamcommunity.com/profiles/76561198000000001"
        }
      ]
    },
    "claimed_at": null
  }
}