Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitc533d3a

Browse files
committed
Document upcoming changes inline in the API method docs
1 parent9ac3098 commitc533d3a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

‎content/v3/orgs.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,22 @@ List organizations for the authenticated user.
1313

1414
###OAuth scope requirements
1515

16-
When using[OAuth](/v3/oauth/#scopes), authorizations must include`user` scope or`read:org` scope.
16+
Currently, OAuth requests always receive the user's[public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership), regardless of the OAuth scopes associated with the request. If the OAuth authorization has`user` or`read:org` scope, the response also includes private organization memberships.
17+
18+
With the new Organization Permissions API (described below), this method will only return organizations that your authorization allows you to operate on in some way (e.g., you can list teams with`read:org` scope, you can publicize your organization membership with`user` scope, etc.). Therefore, this API will require at least`user` or`read:org` scope. OAuth requests with insufficient scope will receive a`403 Forbidden` response.
19+
20+
<divclass="alert">
21+
<p>
22+
The Organization Permissions API is currently available for developers to preview.
23+
During the preview period, the API may change without notice.
24+
Please see the <a href="/changes/2014-12-08-organization-permissions-api-preview/">blog post</a> for full details.
25+
</p>
26+
27+
<p>
28+
To access the API during the preview period, you must provide a custom <a href="/v3/media">media type</a> in the <code>Accept</code> header:
29+
<pre>application/vnd.github.moondragon-preview+json</pre>
30+
</p>
31+
</div>
1732

1833
GET /user/orgs
1934

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp