Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getListContributors ($owner, $repo) | |
getActivityData ($owner, $repo) | |
getCodeFrequency ($owner, $repo) | |
getParticipation ($owner, $repo) | |
getPunchCard ($owner, $repo) | |
Fonctions membres publiques hérités de JGithubPackage | |
__get ($name) | |
Fonctions membres publiques hérités de JGithubObject | |
__construct (Registry $options=null, JGithubHttp $client=null) | |
Fonctions membres protégées | |
processResponse (JHttpResponse $response, $expectedCode=200, $decode=true) | |
Fonctions membres protégées hérités de JGithubObject | |
fetchUrl ($path, $page=0, $limit=0) | |
processResponse (JHttpResponse $response, $expectedCode=200, $decode=true) | |
Membres hérités additionnels | |
Attributs protégés hérités de JGithubPackage | |
$name = '' | |
$packages = array() | |
Attributs protégés hérités de JGithubObject | |
$options | |
$client | |
GitHub API class for the Joomla Platform.
The Repository Statistics API allows you to fetch the data that GitHub uses for visualizing different types of repository activity.
https://developer.github.com/v3/repos/statistics
getActivityData | ( | $owner, | |
$repo | |||
) |
Get the last year of commit activity data.
Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.
string | $owner | The owner of the repository. |
string | $repo | The repository name. |
Références $path.
getCodeFrequency | ( | $owner, | |
$repo | |||
) |
Get the number of additions and deletions per week.
Response returns a weekly aggregate of the number of additions and deletions pushed to a repository.
string | $owner | The owner of the repository. |
string | $repo | The repository name. |
Références $path.
getListContributors | ( | $owner, | |
$repo | |||
) |
Get contributors list with additions, deletions, and commit counts.
Response include: total - The Total number of commits authored by the contributor.
Weekly Hash
w - Start of the week a - Number of additions d - Number of deletions c - Number of commits
string | $owner | The owner of the repository. |
string | $repo | The repository name. |
Références $path.
getParticipation | ( | $owner, | |
$repo | |||
) |
Get the weekly commit count for the repo owner and everyone else.
Returns the total commit counts for the "owner" and total commit counts in "all". "all" is everyone combined, including the owner in the last 52 weeks. If you’d like to get the commit counts for non-owners, you can subtract all from owner.
The array order is oldest week (index 0) to most recent week.
string | $owner | The owner of the repository. |
string | $repo | The repository name. |
Références $path.
getPunchCard | ( | $owner, | |
$repo | |||
) |
Get the number of commits per hour in each day.
Response Each array contains the day number, hour number, and number of commits:
0-6: Sunday - Saturday 0-23: Hour of day Number of commits
For example, [2, 14, 25] indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.
string | $owner | The owner of the repository. |
string | $repo | The repository name. |
Références $path.
|
protected |
Process the response and decode it.
JHttpResponse | $response | The response. |
integer | $expectedCode | The expected "good" code. |
boolean | $decode | If the should be response be JSON decoded. |