You don't normaly create instances of any class but Github
.
You obtain instances through calls to get_
and create_
methods.
In this documentation:
login
is a string containing a user's or organization's loginuser
is an instance ofAuthenticatedUser
orNamedUser
name
is a string containing the name of a repositoryrepo
is an instance ofRepository
- Constructed from user's login and password
get_user()
:AuthenticatedUser
get_user( login )
:NamedUser
get_organization( login )
:Organization
get_repos()
: list ofRepository
: see API fortype
parameterget_repo( name )
:Repository
create_repo( ... )
:Repository
: see API for parameterscreate_fork( repo )
:Repository
get_watched()
: list ofRepository
has_in_watched( repo )
:bool
add_to_watched( repo )
remove_from_watched( repo )
get_orgs()
: list ofOrganization
get_followers()
: list ofNamedUser
get_following()
: list ofNamedUser
has_in_following( user )
:bool
add_to_following( user )
remove_from_following( user )
- Attributes: see API
get_repos()
: list ofRepository
: see API fortype
parameterget_repo( name )
:Repository
get_watched()
: list ofRepository
get_orgs()
: list ofOrganization
get_followers()
: list ofNamedUser
get_following()
: list ofNamedUser
get_repos()
: list ofRepository
: see API fortype
parameterget_repo( name )
:Repository
create_repo( ... )
:Repository
: see API for parameterscreate_fork( repo )
:Repository
get_members()
: list ofNamedUser
has_in_members( user )
:bool
remove_from_members( user )
get_public_members()
: list ofNamedUser
has_in_public_members( user )
:bool
add_to_public_members( user )
remove_from_public_members( user )
get_collaborators()
: list ofNamedUser
has_in_collaborators( user )
:bool
add_to_collaborators( user )
remove_from_collaborators( user )
get_contributors()
: list ofNamedUser
get_watchers()
: list ofNamedUser
get_forks()
: list ofRepository
get_git_refs()
: list ofGitRef
get_git_ref( ref )
:GitRef
create_git_ref( ... )
:GitRef
: see API for parametersget_git_blob( sha )
:GitBlob
create_git_blob( ... )
:GitBlob
: see API for parameters (TODO SOON)get_git_commit( sha )
:GitCommit
create_git_commit( ... )
:GitCommit
: see API for parameters (TODO SOON)get_git_tree( sha )
:GitTree
create_git_tree( ... )
:GitTree
: see API for parameters (TODO SOON)get_git_tag( sha )
:GitTag
create_git_tag( ... )
:GitTag
: see API for parameters (TODO SOON)
- Attributes: see API
edit( ... )
: see API for parameters (TODO SOON: editGitRef
s returned butget_git_refs
orcreate_git_ref
)
- Attributes: see API (TODO SOON)
- Attributes: see API (TODO SOON)
- Attributes: see API (TODO SOON)
- Attributes: see API (TODO SOON)