February 2019
Intermediate to advanced
626 pages
15h 51m
English
The search code method of the GitHub REST API is used to demonstrate how arguments can be passed to a REST method.
The documentation for the method is found in the following API reference: https://developer.github.com/v3/search/#search-code.
The following example uses the search code method by building a query string and appending that to the end of the URL. The search looks for occurrences of the Get-Content term in PowerShell language files in the PowerShell repository. The search term is therefore the following:
Get-Content language:powershell repo:powershell/powershell
Read now
Unlock full access