Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.08 KB

File metadata and controls

44 lines (26 loc) · 1.08 KB
.. module:: github2.organizations

Organizations

Note

See the official GitHub API v2 documentation for organizations and teams.

.. autoclass:: Organization(type)

.. autoclass:: Organizations(type)

Examples

Fetch Organizations Info

>>> org = github.organizations.show("JNRowe-test-only")
>>> org.created_at
datetime.datetime(2011, 5, 10, 11, 37, 27)
>>> repos = github.organizations.public_repositories(org.login)
>>> users = github.organizations.public_members(org.login)
>>> teams = github2.organizations.teams(org.login)

Fetch Authenticated User's Organizations Data

>>> orgs = github.organizations.list()
>>> repos = github.organizations.repositories()