Skip to main content

licenses

Overview

Namelicenses
TypeResource
Idgithub.licenses.licenses

Fields

NameDatatypeDescription
namestring
shastring
typestring
licenseobjectLicense Simple
contentstring
encodingstring
git_urlstring
_linksobject
html_urlstring
sizeinteger
pathstring
download_urlstring
urlstring

Methods

NameAccessible byRequired ParamsDescription
getSELECTlicenseGets information about a specific license. For more information, see "Licensing a repository ."
get_all_commonly_usedSELECTLists the most commonly used licenses on GitHub. For more information, see "Licensing a repository ."
get_for_repoSELECTowner, repoThis method returns the contents of the repository's license file, if one is detected.

Similar to Get repository content, this method also supports custom media types for retrieving the raw license content or rendered license HTML.