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
Copy file name to clipboardExpand all lines: content/v3/gists.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@ title: Gists | GitHub API
4
4
5
5
#Gists API
6
6
7
+
##Authentication
8
+
9
+
You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the**gists**[oAuth scope][1] is required.
10
+
11
+
<!-- When an oAuth client does not have the gists scope, the API will return a 404 "Not Found" response regardless of the validity of the credentials.
12
+
13
+
The API will return a 401 "Bad credentials" response if the gists scope was given to the application but the credentials are invalid.-->
14
+
7
15
##List gists
8
16
9
17
List a user's gists:
@@ -152,3 +160,5 @@ including the filename with a null hash.