Skip to content

Commit 6cb4757

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent dc062b8 commit 6cb4757

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
kind: change
3+
title: List all organizations
4+
created_at: 2015-06-17
5+
author_name: keavy
6+
---
7+
8+
We've added a [new API method](/v3/orgs#list-all-organizations) to list all organizations:
9+
10+
<pre class="terminal">
11+
$ curl https://api.github.com/organizations
12+
13+
[
14+
{
15+
"login": "github",
16+
"id": 9919,
17+
"url": "https://api.github.com/orgs/github",
18+
"repos_url": "https://api.github.com/orgs/github/repos",
19+
"events_url": "https://api.github.com/orgs/github/events",
20+
"members_url": "https://api.github.com/orgs/github/members{/member}",
21+
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
22+
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=3",
23+
"description": "GitHub, the company."
24+
},
25+
...
26+
]
27+
</pre>
28+
29+
As always, if you have any questions or feedback, please [drop us a line][contact].
30+
31+
[contact]: https://github.com/contact?form[subject]=API+-+Listing+Organizations

content/v3/orgs.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ With the new Organization Permissions API (described below), this method will on
3535
<%= headers 200, :pagination => default_pagination_rels %>
3636
<%= json(:org) { |h| [h] } %>
3737

38+
## List all organizations
39+
40+
Lists all organizations, in the order that they were created on GitHub.
41+
42+
Note: Pagination is powered exclusively by the `since` parameter.
43+
Use the [Link header](/v3/#link-header) to get the URL for the next page of
44+
organizations.
45+
46+
GET /organizations
47+
48+
### Parameters
49+
50+
Name | Type | Description
51+
-----|------|--------------
52+
`since`|`string`| The integer ID of the last Organization that you've seen.
53+
54+
### Response
55+
56+
<%= headers 200, :pagination => { :next => 'https://api.github.com/organizations?since=135' } %>
57+
<%= json(:org) {|h| [h] } %>
58+
3859
## List user organizations
3960

4061
List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.

content/v3/users.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ Name | Type | Description
6969

7070
## Get all users
7171

72-
This provides a dump of every user, in the order that they signed up for
73-
GitHub.
72+
Lists all users, in the order that they signed up on GitHub.
7473

7574
Note: Pagination is powered exclusively by the `since` parameter.
7675
Use the [Link header](/v3/#link-header) to get the URL for the next page of

0 commit comments

Comments
 (0)