We've recently moved some of the REST API documentation. If you can't find what you're looking for, you might try the Actions REST API page.
许可
许可 API 提供有关企业许可的信息。
它只适用于经过身份验证的站点管理员。普通用户尝试访问它时会收到 404
响应。
Get license information
HTTP 响应状态代码
状态代码 | 描述 |
---|---|
200 | OK |
代码示例
get /enterprise /settings /license
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token <TOKEN>" \
https://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"
}