Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
e1c1406
Reswizzle, stub Notifications docs
pengwynn Sep 28, 2012
38b598d
some tweaks
technoweenie Oct 2, 2012
9a59a71
tweak the settings endpoints
technoweenie Oct 2, 2012
30fa6db
move settings api to an unlinked/unimplemented file
technoweenie Oct 3, 2012
4e8c35e
Merge branch 'master' into api-notifications
technoweenie Oct 9, 2012
1aa03a7
document notification format
technoweenie Oct 9, 2012
bf630a4
document the new 'since' parameter
technoweenie Oct 9, 2012
7b0761f
typos
technoweenie Oct 9, 2012
fa3f19a
Add example to clarify a valid gitignore_template
haacked Oct 11, 2012
65fe87d
Merge pull request #156 from Haacked/master
pengwynn Oct 11, 2012
b73b251
Merge pull request #157 from github/commit-status-examples
pengwynn Oct 12, 2012
983f527
Document redirection behavior of api
Oct 12, 2012
d0c2074
Provide a better example of a JSON request
haacked Oct 12, 2012
b108c90
Merge pull request #159 from Haacked/initial-example-fix
pengwynn Oct 12, 2012
de55dd9
Updated members page and added a changes entry to reflect github/gith…
Oct 13, 2012
0f7a142
Document new lower rate limits
pengwynn Oct 15, 2012
cc14da9
Fix typo. lolz ruby
pengwynn Oct 15, 2012
5612df8
Add my gravatar id
Oct 15, 2012
f0d9544
Fixed wrong fieldname in JSON example
haacked Oct 15, 2012
d862e44
Merge pull request #161 from Haacked/json-example-fix
pengwynn Oct 15, 2012
144899c
add githubpy
michaelliao Oct 17, 2012
4b80a31
Merge pull request #162 from michaelliao/master
pengwynn Oct 17, 2012
6a733a5
Merge pull request #160 from github/org-members-redirection
pezra Oct 18, 2012
f5b74cd
final tweaks to the changes section.
Oct 18, 2012
fa79819
Update urls to match docs convention
pengwynn Oct 18, 2012
f48a221
Updated README.md
parndt Oct 23, 2012
a4ade3c
Document default_branch parameter for repos
pengwynn Oct 23, 2012
f99760a
Post for default branch
pengwynn Oct 24, 2012
7145ef9
Merge pull request #164 from parndt/patch-1
pengwynn Oct 24, 2012
7e51845
add hypermedia to summaries, show commit vs issue summary
technoweenie Oct 24, 2012
8b0c03b
Merge branch 'master' into api-notifications
technoweenie Oct 24, 2012
23fc996
simplified structure
technoweenie Oct 24, 2012
a038f90
Fix missing helper
pengwynn Oct 24, 2012
e4f5b28
only 1 type of notification, dont need the SUMMARIES array anymore
technoweenie Oct 24, 2012
0e45b1e
add the rest of the summary hypermedia urls
technoweenie Oct 24, 2012
c1fc3e8
Add message for 405 status code
pangratz Oct 25, 2012
341f263
Merge pull request #165 from pangratz/add_405_status_code
pengwynn Oct 25, 2012
40b2793
Event polling instructions
technoweenie Oct 25, 2012
ac3ef2c
describe notifications polling
technoweenie Oct 25, 2012
1395c47
add hypermedia urls to subscriptions
technoweenie Oct 25, 2012
283b062
describe activity sub sections
technoweenie Oct 25, 2012
fac7eb4
Intro for Activity
pengwynn Oct 25, 2012
f223a5b
Document 205
pengwynn Oct 25, 2012
40ae5b8
more tweaks
technoweenie Oct 25, 2012
05aad2d
mention the notifications scope
technoweenie Oct 25, 2012
9647a89
list the notifications scope on the OAuth page.
technoweenie Oct 25, 2012
c0fae72
Merge pull request #153 from github/api-notifications
technoweenie Oct 26, 2012
8fd23eb
remove mention of the specific upcoming api version
technoweenie Oct 26, 2012
8dbc53d
mention uri templates
technoweenie Oct 26, 2012
c5bf5da
notifications api post
technoweenie Oct 26, 2012
4674dbe
add terminal styles to curl examples
technoweenie Oct 26, 2012
b988671
woops, should be a PUT
technoweenie Oct 26, 2012
5966449
Add an apostrophe to the commits information page.
Oct 26, 2012
86228e5
Merge pull request #166 from issyl0/master
technoweenie Oct 26, 2012
75f9338
rfc is not a section
technoweenie Oct 26, 2012
98ed088
Remove wild localhost.
sigmavirus24 Oct 27, 2012
012784c
Fix terminology for setting a thread notification
sigmavirus24 Oct 27, 2012
a849213
Merge pull request #167 from sigmavirus24/master
technoweenie Oct 27, 2012
fcd6553
describe the notifications api scopes
technoweenie Oct 29, 2012
13e5a04
Fix URL parameter name
m4tthumphrey Oct 30, 2012
fb64002
Merge pull request #168 from m4tthumphrey/master
pengwynn Oct 30, 2012
0f80ab6
New favicon
pengwynn Oct 30, 2012
76924ab
update doc for changes to gist comment uris
Oct 31, 2012
66813dc
Update examples to show new style gist comment uris
Oct 31, 2012
0543c92
fixed gist comment uris changes entry date
Oct 31, 2012
9fd50eb
update the gist comment url
technoweenie Oct 31, 2012
7edc23c
Merge branch 'gist-comment-uris'
Oct 31, 2012
6290dee
Add note about new `comments_url` on gists and update examples.
Oct 31, 2012
a757127
remove superflous word from changes post
Oct 31, 2012
fdf6ec0
i rite prety some day...
Oct 31, 2012
c9b955a
More spelling/grammar tweaking...
Oct 31, 2012
9d3e206
More word smithing of gist comment uris changes post
Oct 31, 2012
db2a7ff
removed a couple of stray words from gist comments uris post
Oct 31, 2012
0b037eb
document some weird magic Gist behavior
technoweenie Nov 2, 2012
1caede9
Update content/v3/repos/hooks.md
michaeljoseph Nov 2, 2012
45a6969
Merge pull request #169 from michaeljoseph/patch-1
pengwynn Nov 2, 2012
cf676fa
Fixed header level in Orgs/Members docs
doismellburning Nov 7, 2012
5374e9d
Merge pull request #170 from doismellburning/fix_orgs_members_respons…
pengwynn Nov 7, 2012
436c0be
Stub for Getting Started guide
pengwynn Nov 11, 2012
635da8a
Fix OAuth link
pengwynn Nov 12, 2012
dc5c966
Clarify OAuth scopes
pengwynn Nov 12, 2012
6de8415
Correct output for notifications thread response
pengwynn Nov 12, 2012
343fa22
Fix wording for defining 'users followed by a user'
izuzak Nov 12, 2012
d6b0822
Merge pull request #171 from izuzak/master
pengwynn Nov 12, 2012
ed8ec4b
Document 'distinct' field on PushEvent commits
jspahrsummers Nov 12, 2012
04b8aa1
Merge pull request #172 from github/pushevent-commits-distinct
pengwynn Nov 12, 2012
3e6aef0
Moar getting started
pengwynn Nov 14, 2012
c9a5146
Document since parameter for listing gists
pengwynn Nov 15, 2012
5ba8541
added Javascript github wraper.
coderaiser Nov 19, 2012
81cbbc2
Merge pull request #173 from coderaiser/patch-1
pengwynn Nov 19, 2012
5e0c651
Fix 404 event url
pablof7z Nov 20, 2012
d13bb63
Merge pull request #175 from heelhook/patch-1
pengwynn Nov 20, 2012
1cafdf4
Fix typo in URL
pengwynn Nov 23, 2012
58d82ef
update the org param when creating forks to organization
technoweenie Nov 27, 2012
0ed4d26
make note of the deprecation
technoweenie Nov 27, 2012
60d1ef0
Note the change from 58d82ef in the docs.
sigmavirus24 Nov 27, 2012
cb41fc3
Merge pull request #177 from sigmavirus24/master
pengwynn Nov 27, 2012
5387182
Clarify how to request higher rate limit
pengwynn Nov 27, 2012
beb70b7
Fix typo
pengwynn Nov 27, 2012
d446090
mention the oauth2 key/secret method of 'logging in' with your oauth app
technoweenie Nov 27, 2012
94e5dc1
blog about the fork change
technoweenie Nov 27, 2012
13fd408
Restore missing header
pengwynn Nov 28, 2012
10f8d03
fix typo in content/v3/orgs/members.md
joeyw Nov 29, 2012
996f8fd
user/repo dump apis
technoweenie Nov 29, 2012
414f027
Merge pull request #178 from joeyw/fix-typo-in-org-members
technoweenie Nov 29, 2012
a6692d4
Add docs for Gitignore Templates API
pengwynn Nov 29, 2012
1e8ab12
Move gitignore docs
pengwynn Nov 29, 2012
d668c7d
Gitignore API blog post
pengwynn Nov 29, 2012
27e8e0d
Document new Authorizations API params
pengwynn Dec 1, 2012
0f58ada
user agent is required
technoweenie Dec 3, 2012
30705a0
some wiggle room
technoweenie Dec 3, 2012
96b1be1
Document new batch comments methods
pengwynn Dec 4, 2012
a220973
Batch comments post
pengwynn Dec 4, 2012
fb8ee0f
Headline style tweak
pengwynn Dec 4, 2012
55745a3
Tweak to batch comments post
pengwynn Dec 4, 2012
f4889b9
Document missing search param
pengwynn Dec 4, 2012
8d1db91
Update docs for gist fork, hook test name changes
pengwynn Dec 5, 2012
6ebc18c
Changes post for Authorizations API
pengwynn Dec 6, 2012
563eb5e
MIME as the acronym is all caps
randomecho Dec 8, 2012
31dfbeb
Update MIME references to media
randomecho Dec 8, 2012
9af37a5
Merge pull request #179 from randomecho/copyedits
pengwynn Dec 8, 2012
318a8ed
Add myself to the authors hash
rick Dec 8, 2012
5e862fc
Draft changes article re: fork/source org repos
rick Dec 8, 2012
cae12e2
Add sources and forks to /orgs/:org/repos docs
rick Dec 8, 2012
91b9643
Merge pull request #180 from github/org-repos-sources-and-forks
rick Dec 8, 2012
c2d9d96
Make a more useful commit message when publishing
rick Dec 8, 2012
8d10df4
whitespace change to test rake publish changes
rick Dec 8, 2012
9e63c75
add a ' to message prompt
rick Dec 8, 2012
eb1f8c1
Merge pull request #181 from github/improve-boom-message
rick Dec 8, 2012
e8c023a
Fix formatting for objective-c heading
Dec 9, 2012
5b915b6
Merge pull request #182 from vanstee/fix-header-formatting
pengwynn Dec 9, 2012
bc68116
Fix broken links for Starring and Watching links in Activity.
michaelhood Dec 9, 2012
6bd8d73
Merge pull request #183 from michaelhood/fix-activity-404s
pengwynn Dec 9, 2012
8c72fc3
Announce pagination works on org repos listings
rick Dec 9, 2012
8bb8cff
Merge pull request #184 from github/announce-org-repo-pagination
rick Dec 9, 2012
7f91dfa
Fix broken OAuth link
pengwynn Dec 10, 2012
5319135
Diff and patch changes post
pengwynn Dec 10, 2012
b0db9c8
Update diff and patch media type docs
pengwynn Dec 10, 2012
a095a36
prefer Link headers to, ahem, turn the page
rick Dec 10, 2012
84f855f
backtick all the things
rick Dec 10, 2012
d5a6a15
Fixed typos
pborreli Dec 10, 2012
dbd06fa
Merge pull request #185 from pborreli/typos
pengwynn Dec 11, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ We specify the JSON responses in ruby so that we don't have to write
them by hand all over the docs. You can render the JSON for a resource
like this:

<%= json :issue %>
```erb
<%= json :issue %>
```

This looks up `GitHub::Resources::ISSUE` in `lib/resources.rb`.

Some actions return arrays. You can modify the JSON by passing a block:

<%= json(:issue) { |hash| [hash] } %>
```erb
<%= json(:issue) { |hash| [hash] } %>
```

### Terminal blocks

Expand Down
19 changes: 17 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ task :compile do
`nanoc compile`
end

# prompt user for a commit message; default: HEAD commit 1-liner
def commit_message
last_commit = `git log -1 --pretty=format:"%s"`.chomp.strip
last_commit = 'Publishing developer content to GitHub pages.' if last_commit == ''

print "Enter a commit message (default: '#{last_commit}'): "
STDOUT.flush
mesg = STDIN.gets.chomp.strip

mesg = last_commit if mesg == ''
mesg.gsub(/'/, '') # to allow this to be handed off via -m '#{message}'
end

desc "Publish to http://developer.github.com"
task :publish => [:clean] do
mesg = commit_message

FileUtils.rm_r('output') if File.exist?('output')

sh "nanoc compile"
Expand All @@ -21,9 +36,9 @@ task :publish => [:clean] do
tsha = `git write-tree`.strip
puts "Created tree #{tsha}"
if old_sha.size == 40
csha = `echo 'boom' | git commit-tree #{tsha} -p #{old_sha}`.strip
csha = `git commit-tree #{tsha} -p #{old_sha} -m '#{mesg}'`.strip
else
csha = `echo 'boom' | git commit-tree #{tsha}`.strip
csha = `git commit-tree #{tsha} -m '#{mesg}'`.strip
end
puts "Created commit #{csha}"
puts `git show #{csha} --stat`
Expand Down
24 changes: 24 additions & 0 deletions content/changes/2012-10-14-rate-limit-changes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
kind: change
title: Rate limit changes for unauthenticated requests
created_at: 2012-10-14
author_name: pengwynn
---

To ensure a high quality of service for all API consumers, we've reduced the
default rate limit for unauthenticated requests. To enjoy the default rate
limit of 5,000 requests per hour, you'll need to
[authenticate](http://developer.github.com/v3/#authentication) via Basic Auth
or OAuth. Unauthenticated requests will be limited to 60 per hour unless you
[include your OAuth client and
secret](http://developer.github.com/v3/#unauthenticated-rate-limited-requests).

We'll soon require all requests to include a valid [User Agent
header](http://en.wikipedia.org/wiki/User_agent). Setting a
unique value for this header helps us identify requests and get in touch with
developers who are abusing the API. Most HTTP libraries, wrapper libraries, and
even cURL provide a valid header for you already and allow you to change it to
something unique to your application.

If you have any questions or feedback, please drop us a line at
[support@github.com](mailto:support@github.com?subject=API Rate limit).
26 changes: 26 additions & 0 deletions content/changes/2012-10-17-org-members-redirection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
kind: change
title: Organization Members Resource Changes
created_at: 2012-10-17
author_name: pezra
---

Requesting the [member list](/v3/orgs/members/index.html#members-list) of an
organization of which you are not a member now redirects to the [public members
list](v3/orgs/members/index.html#public-members-list). Similarly, requests to
[membership check](/v3/orgs/members/index.html#check-membership) resources of
an organization of which you are not a member are redirected to the equivalent
[public membership check](/v3/orgs/members/index.html#check-public-membership).
One exception to the latter case is that if you are checking about your own
membership the request is not redirected. You are always allowed to know what
organizations you belong to.

The changes where made to clarify the purpose of these various resources. The
`/orgs/:org/members` resources are intended for use by members of the
organization in question. The `/orgs/:org/public_members` resources are for
acquiring information about the public membership of organizations. If you are
not a member you are not allowed to see private membership information so you
should be using the public membership resources.

If you have any questions or feedback, please drop us a line at
[support@github.com](mailto:support@github.com?subject=Org members API).
22 changes: 22 additions & 0 deletions content/changes/2012-10-24-set-default-branch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
kind: change
title: Set the default branch for a repository
created_at: 2012-10-24
author_name: pengwynn
---

You can set the default branch for a repository to something other than 'master' from the GitHub repository admin screen:

![repo admin](/images/posts/default-branch.png)

Now, you can update this setting via the API. We've added a `default_branch` parameter to the [Edit Repository method][edit-repo]:

<pre class="terminal">
curl -u pengwynn \
-d '{"name": "octokit", "default_branch":"development"}' \
https://api.github.com/repos/pengwynn/octokit
</pre>

If you provide a branch name that hasn't been pushed to GitHub, we'll gracefully fall back to `'master'` or the first branch.

[edit-repo]: /v3/repos/#edit
72 changes: 72 additions & 0 deletions content/changes/2012-10-26-notifications-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
kind: change
title: Notifications API
created_at: 2012-10-26
author_name: technoweenie
---

Now that the dust has settled around [Notifications and Stars][newsies],
we've unleashed all that :sparkles: in a [brand new API][api]. You can now
view and mark notifications as read.

[api]: http://developer.github.com/v3/activity/notifications/
[newsies]: https://github.com/blog/1204-notifications-stars

## Endpoint

The core notifications functionality is under the `/notifications` endpoint.
You can look for unread notifications:

<pre class="terminal">
$ curl https://api.github.com/notifications
</pre>

You can filter these notifications to a single Repository:

<pre class="terminal">
$ curl https://api.github.com/repos/technoweenie/faraday/notifications
</pre>

You can mark them as read:

<pre class="terminal">
# all notifications
$ curl https://api.github.com/notifications \
-X PUT -d '{"read": true}'

# notifications for a single repository
$ curl https://api.github.com/repos/technoweenie/faraday/notifications \
-X PUT -d '{"read": true}'
</pre>

You can also modify subscriptions for a Repository or a single thread.

<pre class="terminal">
# subscription details for the thread (either an Issue or Commit)
$ curl https://api.github.com/notifications/threads/1/subscription

# subscription details for a whole Repository.
$ curl https://api.github.com/repos/technoweenie/faraday/subscription
</pre>

## Polling

The Notifications API is optimized for polling by the last modified time:

<pre class="terminal">
# Add authentication to your requests
$ curl -I https://api.github.com/notifications
HTTP/1.1 200 OK
Last-Modified: Thu, 25 Oct 2012 15:16:27 GMT
X-Poll-Interval: 60

# Pass the Last-Modified header exactly
$ curl -I https://api.github.com/notifications
-H "If-Modified-Since: Thu, 25 Oct 2012 15:16:27 GMT"
HTTP/1.1 304 Not Modified
X-Poll-Interval: 60
</pre>

You can read about the API details in depth in the [Notifications documentation][api].


12 changes: 12 additions & 0 deletions content/changes/2012-10-31-gist-comment-uris.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
kind: change
title: Gist comment URIs
created_at: 2012-10-31
author_name: pezra
---

The URIs of all gist comments are changing immediately. The new URI pattern for gist comments is `/gists/{gist-id}/comments/{id}`. (See [gist comments section of the docs](/v3/gists/comments/) for more details.) This change is necessary because the auto-incremented ids of gist comments are easy to guess. This predictability allows anyone to view comments on private Gists with relative ease. Obviously, comments on private gists should be just as private as the gist itself.

Adding the gist id to the URI of comments makes it impossible, in practical terms, to guess that URI because the id of private gists are very large random numbers. This is, unfortunately, a breaking change but one that cannot be avoided because of the security implications of the current URIs. We apologize for the inconvenience.

We have also added a `comments_url` member to the Gist documents. The `comments_url` link provides access to the comments of a Gist in a way that will insulate clients from changes in the URI patterns used by the GitHub API. We are increasing our use of links in order to make changes such as this one less damaging to clients. We strongly encourage using `url` and `*_url` properties, where possible, rather than constructing URIs using the patterns published on this site. Doing so will result in clients that break less often.
29 changes: 29 additions & 0 deletions content/changes/2012-11-27-forking-to-organizations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
kind: change
title: Forking to Organizations
created_at: 2012-11-27
author_name: technoweenie
---

We made a slight change to the way you fork a repository. By default, you
can fork my repository through an HTTP POST to the repository's fork resource.

$ curl -X POST https://api.github.com/repos/technoweenie/faraday/forks

This repository forks to your personal account. However, there are cases when
you want to fork to one of your organizations instead. The previous method
required a `?org` query parameter:

$ curl -X POST /repos/technoweenie/faraday/forks?org=mycompany

Query parameters on POST requests are unusual in APIs, and definitely
inconsistent with the rest of the GitHub API. You should be able to post a
JSON body like every other POST endpoint. Now, you can! Only, now we're
calling the field `organization`.

$ curl /repos/technoweenie/faraday/forks?org=mycompany \
-d '{"organization": "mycompany"}'

Don't worry, we are committed to maintaining the legacy behavior until the next
major change of the GitHub API.

58 changes: 58 additions & 0 deletions content/changes/2012-11-29-gitignore-templates.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
kind: change
title: Gitignore Templates API
created_at: 2012-11-29
author_name: pengwynn
---

We recently [made it easy][init-post] to initialize a repository when you create
it [via the API][repo-create]. One of the options you can pass when creating a
repository is `gitignore_template`. This value is the name of one of the
templates from the the public [GitHub .gitignore repository][templates-repo].

The [Gitignore Templates API][new-api] makes it easy to list those templates:

curl https://api.github.com/gitignore/templates

HTTP/1.1 200 OK

[
"Actionscript",
"Android",
"AppceleratorTitanium",
"Autotools",
"Bancha",
"C",
"C++",
...

If you'd like to view the source, you can also fetch a single template.

curl -H 'Accept: application/vnd.github.raw' \
https://api.github.com/gitignore/templates/Objective-C

HTTP/1.1 200 OK

# Xcode
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData
.idea/

[init-post]: /changes/2012-9-28-auto-init-for-repositories/
[repo-create]: /v3/repos/#create
[templates-repo]: https://github.com/github/gitignore
[new-api]: /v3/gitignore/
26 changes: 26 additions & 0 deletions content/changes/2012-12-04-List-comments-for-repo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
kind: change
title: Per-repository Review and Issue Comment&nbsp;listing
created_at: 2012-12-04
author_name: pengwynn
---

You've always been able to grab all the commit comments for an entire
repository via the API, but to get Issue comments and Pull Request Review
Comments, you could only fetch the comments for a single Issue or Pull Request.

Today, we're introducing two new methods to grab all Issue Comments and Review
Comments for a repository.

# Grab all Issue Comments
curl https://api.github.com/repos/mathiasbynens/dotfiles/issues/comments

# Grab all Review Comments
curl https://api.github.com/repos/mathiasbynens/dotfiles/pulls/comments

Check out the docs for sorting and filtering options:

* [Issue comments](/v3/issues/comments/#list-comments-in-a-repository)
* [Review comments](/v3/pulls/comments/#list-comments-in-a-repository)


38 changes: 38 additions & 0 deletions content/changes/2012-12-06-create-authorization-for-app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
kind: change
title: Create an OAuth authorization for an app
created_at: 2012-12-06
author_name: pengwynn
---

The [Authorizations API][oauth-api] is an easy way to create an OAuth
authorization using Basic Auth. Just POST your desired scopes and optional
note and you get a token back:

<pre class='terminal'>
curl -u pengwynn -d '{"scopes": ["user", "gist"]}' \
https://api.github.com/authorizations
</pre>

This call creates a token for the authenticating user tied to a special "API"
OAuth application.

We now support creating tokens for _your own OAuth application_ by passing your
twenty character `client_id` and forty character `client_secret` as found in
the settings page for your OAuth application.


<pre class='terminal'>
curl -u pengwynn -d '{ \
"scopes": ["user", "gist"], \
"client_id": "abcdeabcdeabcdeabcdeabcde" \
"client_secret": "abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde" \
}' \ '
https://api.github.com/authorizations
</pre>

No more implementing the [web flow][web-flow] just to get a token tied to your
app's rate limit.

[oauth-api]: /v3/oauth/#oauth-authorizations-api
[web-flow]: /v3/oauth/#web-application-flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
kind: change
title: Finding sources and fork repositories for organizations
created_at: 2012-12-08
author_name: rick
---

We've made a couple of changes today to the Organization repositories
listing to bring it a bit closer to the functionality of the GitHub.com
Organization repositories tab. We now let you retrieve repositories
which are forks of another repo, as well as those repositories which
are sources (not forks).

# Grab all fork Repositories for an Organization
curl "https://api.github.com/orgs/:org/repos?type=forks"

# Grab all source Repositories for an Organization
curl "https://api.github.com/orgs/:org/repos?type=sources"

Check out the docs for sorting and filtering options:

* [Organization Repositories](/v3/repos/#list-organization-repositories)

Loading