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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,12 @@ The API will return a 401 "Bad credentials" response if the gists scope was give
16
16
17
17
##Truncation
18
18
19
-
The Gist API provides up to one megabyte of content for each file in the gist.Every call to retrieve a gist through the API has a key called`truncated`. If`truncated` is`true`, the file is too large and only a portion of the contents were returned in`content`.
19
+
The Gist API provides up to one megabyte of content for each file in the gist.Each file returned for a gist through the API has a key called`truncated`. If`truncated` is`true`, the file is too large and only a portion of the contents were returned in`content`.
20
20
21
21
If you need the full contents of the file, you can make a`GET` request to the URL specified by`raw_url`. Be aware that for files larger than ten megabytes, you'll need to clone the gist via the URL provided by`git_pull_url`.
22
22
23
+
In addition to a specific file's contents being truncated, the entire files list may be trucated if the total number exceeds 300 files. If the top level`truncated` key is`true`, only the first 300 files have been returned in the files list. If you need to fetch all of the gist's files, you'll need to clone the gist via the URL provided by`git_pull_url`.