You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Blank fields are included as`null` instead of being omitted.
@@ -120,8 +123,19 @@ already\_exists
120
123
can happen in resources that must have some unique key (such as Label
121
124
names).
122
125
123
-
If resources have custom validation errors, they will be documented with
124
-
the resource.
126
+
If resources have custom validation errors, they will be documented with the resource.
127
+
128
+
##HTTP Redirects
129
+
130
+
API v3 uses HTTP redirection where appropriate. Clients should assume that any request may result in a redirection. Receiving an HTTP redirection is*not* an error and clients should follow that redirect. Redirect responses will have a`Location` header field which contains the URI of the resource to which the client should repeat the requests.
131
+
132
+
301
133
+
: Permanent redirection. The URI you used to make the request has be superseded by the one specified in the`Location` header field. This and all future requests to this resource should be directed the new URI.
134
+
135
+
302, 307
136
+
: Temporary redirection. The request should be repeated verbatim to the URI specified in the`Location` header field but clients should continue to use the original URI for future requests.
137
+
138
+
Other redirection status codes may be used in accordance with the HTTP 1.1 spec.
125
139
126
140
##HTTP Verbs
127
141
@@ -185,7 +199,7 @@ users.
185
199
##Pagination
186
200
187
201
Requests that return multiple items will be paginated to 30 items by
188
-
default. You can specify further pages with the`?page` parameter.For some
202
+
default. You can specify further pages with the`?page` parameter. For some
189
203
resources, you can also set a custom page size up to 100 with the`?per_page` parameter.
190
204
Note that for technical reasons not all endpoints respect the`?per_page` parameter,
191
205
see[events](http://developer.github.com/v3/events/) for example.
@@ -222,9 +236,10 @@ The possible `rel` values are:
222
236
223
237
##Rate Limiting
224
238
225
-
We limit requests to API v3 to 5000 per hour. This is keyed off either your
226
-
login, your OAuth token, or request IP. You can check the returned HTTP
227
-
headers of any API request to see your current status:
239
+
We limit requests to 60 per hour for unauthenticated requests. For requests
240
+
using Basic Authentication or OAuth, we limit requests to 5,000
241
+
per hour. You can check the returned HTTP headers of any API request to see
Copy file name to clipboardExpand all lines: content/v3/orgs/members.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,10 @@ title: Organization Members | GitHub API
7
7
* TOC
8
8
{:toc}
9
9
10
-
##List members
10
+
##Members list
11
11
12
12
List all users who are members of an organization. A member is a user
13
-
that belongs to at least 1 team in the organization. If the authenticated user is
14
-
also a member of this organization then both concealed and public
15
-
members will be returned. Otherwise only public members are returned.
13
+
that belongs to at least 1 team in the organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. If the reqeuster is not a member of the organization the query will be redirected to the[public members list](#public-members-list).
16
14
17
15
GET /orgs/:org/members
18
16
@@ -21,18 +19,32 @@ members will be returned. Otherwise only public members are returned.
21
19
<%= headers 200 %>
22
20
<%= json(:user) { |h|[h] } %>
23
21
24
-
##Get member
22
+
###Response if requester is not an organization member