FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Helper class to get the latest release and commits from GitHub API. More...
Public Member Functions | |
__construct ($curlRequestService) | |
getLatestRelease () | |
Get the latest release info from GitHub. More... | |
getCommitsOfLastDays ($days=30) | |
Get the commits from past n days. More... | |
Private Member Functions | |
curlGet ($apiRequest) | |
Send a curl request to apiRequest for resource. More... | |
Private Attributes | |
$curlRequestService = null | |
Helper class to get the latest release and commits from GitHub API.
Definition at line 17 of file RepositoryApi.php.
Fossology\Lib\Application\RepositoryApi::__construct | ( | $curlRequestService | ) |
Constructor
Fossology::Lib::Application::CurlRequestService | $curlRequestService |
Definition at line 29 of file RepositoryApi.php.
|
private |
Send a curl request to apiRequest for resource.
string | $apiRequest | Required resource |
Definition at line 39 of file RepositoryApi.php.
Fossology\Lib\Application\RepositoryApi::getCommitsOfLastDays | ( | $days = 30 | ) |
Get the commits from past n days.
int | $days | Number of days commits are required. |
Definition at line 77 of file RepositoryApi.php.
Fossology\Lib\Application\RepositoryApi::getLatestRelease | ( | ) |
Get the latest release info from GitHub.
Definition at line 67 of file RepositoryApi.php.
|
private |
Curl request service object for interation with GitHub API
Definition at line 23 of file RepositoryApi.php.