How to search using GitHub API in private organizations - Stack Overflow
Currently, the Search API is still in preview on GitHub Enterprise. As a result, you need to specify a special media type in the Accept header to get things working.
Give this a try:
curl -i -H "Accept: application/vnd.github.preview+json" -H "Authorization: token <token>" https://github.mycompany.com/api/v3/search/code?q=class
Read full article from How to search using GitHub API in private organizations - Stack Overflow
No comments:
Post a Comment