Movatterモバイル変換


[0]ホーム

URL:


GitHub

GitHub

GitHub encapsulates the functionality to create various API wrapper objects.

Constructor

new GitHub(authopt, apiBaseopt)

Create a new GitHub.

Parameters:
NameTypeAttributesDefaultDescription
authRequestable.auth <optional>

the credentials to authenticate to Github. If auth is not provided requests will be made unauthenticated

apiBasestring <optional>
https://api.github.com

the base Github API URL

Source:

Methods

_getFullName(user, repo) → {string}

Computes the full repository name

Parameters:
NameTypeDescription
userstring

the username (or the full name)

repostring

the repository name, must not be passed ifuser is the full name

Source:
Returns:

the repository's full name

Type
string

getGist(idopt) → {Gist}

Create a new Gist wrapper

Parameters:
NameTypeAttributesDescription
idnumber <optional>

the id for the gist, leave undefined when creating a new gist

Source:
Returns:
Type
Gist

getIssues(user, repo) → {Issue}

Create a new Issue wrapper

Parameters:
NameTypeDescription
userstring

the user who owns the respository

repostring

the name of the repository

Source:
Returns:
Type
Issue

getMarkdown() → {Markdown}

Create a new Markdown wrapper

Source:
Returns:
Type
Markdown

getOrganization(organization) → {Organization}

Create a new Organization wrapper

Parameters:
NameTypeDescription
organizationstring

the name of the organization

Source:
Returns:
Type
Organization

getProject(id) → {Markdown}

Create a new Project wrapper

Parameters:
NameTypeDescription
idstring

the id of the project

Source:
Returns:
Type
Markdown

getRateLimit() → {RateLimit}

Create a new RateLimit wrapper

Source:
Returns:
Type
RateLimit

getRepo(user, repo) → {Repository}

Create a new Repository wrapper

Parameters:
NameTypeDescription
userstring

the user who owns the respository

repostring

the name of the repository

Source:
Returns:
Type
Repository

getTeam(teamId) → {team}

create a new Team wrapper

Parameters:
NameTypeDescription
teamIdstring

the name of the team

Source:
Returns:
Type
team

getUser(useropt) → {User}

Create a new User wrapper

Parameters:
NameTypeAttributesDescription
userstring <optional>

the name of the user to get information about leave undefined for the authenticated user

Source:
Returns:
Type
User

search(query) → {Search}

Create a new Search wrapper

Parameters:
NameTypeDescription
querystring

the query to search for

Source:
Returns:
Type
Search


[8]ページ先頭

©2009-2025 Movatter.jp