Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档

我们最近移动了一些 REST API 文档。 如果找不到要查找的内容,可以尝试 操作 REST API 页面。

许可证

使用 REST API 检索有关企业许可证的信息。

这些终结点仅适用于经过身份验证的网站管理员。 普通用户将收到 404 响应。

Get license information

“Get license information”的示例代码

get/enterprise/settings/license
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ http(s)://HOSTNAME/api/v3/enterprise/settings/license

Response

Status: 200
{ "seats": 1400, "seats_used": 1316, "seats_available": 84, "kind": "standard", "days_until_expiration": 365, "expire_at": "2016/02/06 12:41:52 -0600" }