admin:org
scope. When the value of two_factor_requirement_enabled
is true
, the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication.Organization plan
permission can use this endpoint to retrieve information about an organization's GitHub Enterprise Server plan. See "Authenticating with GitHub Apps" for details. For an example response, see 'Response with GitHub Enterprise Server plan information' below."curl --location --request GET 'https://api.github.com/orgs/'
{
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"billing_email": "org@example.com",
"blog": "https://github.com/blog",
"collaborators": 8,
"company": "GitHub",
"created_at": "2008-01-14T04:33:35Z",
"default_repository_permission": "string",
"description": "A great organization",
"disk_usage": 10000,
"email": "octocat@github.com",
"events_url": "https://api.github.com/orgs/github/events",
"followers": 20,
"following": 0,
"has_organization_projects": true,
"has_repository_projects": true,
"hooks_url": "https://api.github.com/orgs/github/hooks",
"html_url": "https://github.com/octocat",
"id": 1,
"is_verified": true,
"issues_url": "https://api.github.com/orgs/github/issues",
"location": "San Francisco",
"login": "github",
"members_allowed_repository_creation_type": "all",
"members_can_create_internal_repositories": true,
"members_can_create_pages": true,
"members_can_create_private_pages": true,
"members_can_create_private_repositories": true,
"members_can_create_public_pages": true,
"members_can_create_public_repositories": true,
"members_can_create_repositories": true,
"members_url": "https://api.github.com/orgs/github/members{/member}",
"name": "github",
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
"owned_private_repos": 100,
"plan": {
"filled_seats": 0,
"name": "string",
"private_repos": 0,
"seats": 0,
"space": 0
},
"private_gists": 81,
"public_gists": 1,
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"public_repos": 2,
"repos_url": "https://api.github.com/orgs/github/repos",
"total_private_repos": 100,
"twitter_username": "github",
"two_factor_requirement_enabled": true,
"type": "Organization",
"updated_at": "2019-08-24T14:15:22Z",
"url": "https://api.github.com/orgs/github"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通