Skip to main content

licenses

Overview

Namelicenses
TypeResource
Idgithub.licenses.licenses

Fields

NameDatatypeDescription
namestring
_linksobject
contentstring
download_urlstring
encodingstring
git_urlstring
html_urlstring
licenseobjectLicense Simple
pathstring
shastring
sizeinteger
typestring
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.