Documentation: GitHub Profile Plugin API.

call

call handles calls to and from the GitHub API

Table of Contents

$gitHubUsername  : mixed
$personalAccessToken  : mixed
call_github()  : object
This method pulls the user's GitHub Profile data from the GitHub API.
call_github_repos()  : array<string|int, mixed>
This function pulls the user's GitHub repository data.
setPersonalAccessToken()  : void
Sets the Personal Access Token.
setUsername()  : void
Sets the Username.

Properties

$gitHubUsername

private mixed $gitHubUsername = ""

$personalAccessToken

private mixed $personalAccessToken = ""

Methods

call_github()

This method pulls the user's GitHub Profile data from the GitHub API.

public call_github() : object
Return values
object

The data as JSON, stored in a PHP object.

call_github_repos()

This function pulls the user's GitHub repository data.

public call_github_repos() : array<string|int, mixed>
Return values
array<string|int, mixed>

The data as JSON, stored in a PHP array.

setPersonalAccessToken()

Sets the Personal Access Token.

public setPersonalAccessToken(string $personalAccessToken) : void
Parameters
$personalAccessToken : string

The user's GitHub Personal Access Token.

Return values
void

setUsername()

Sets the Username.

public setUsername(string $gitHubUsername) : void
Parameters
$gitHubUsername : string

The user's GitHub Username.

Return values
void

Search results