github-tools / github-tools/github

How do I access the License API thru here?

Offen
#476 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
3.8k
Forks
809
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.