github-tools / github-tools/github

How do I access the License API thru here?

未关闭
#476 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.8k
派生
809
PR 合并指标
30 天内没有已合并 PR

描述

Hello, according to Github API docs, you need to attach `application/vnd.github.drax-preview+json` in the `Accept` header. Once that is supplied, one should get the license info along with the repo object. However, I tried the following:

```
const gh = new Github({
username: 'xxxx',
password: 'xxxxxx'
}, '', 'application/vnd.github.drax-preview+json').search()
```

but to no avail. How can I access the License API using this package? Thanks in advance

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reviewing the Github constructor and search() call shown in the issue, then compare the package's request and header handling with the GitHub License API documentation. The work is done when this package can access license information through the documented API flow, with the supported usage made clear.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
api
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。