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

Commitdf9dae1

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent0851ffd commitdf9dae1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎content/v3/gists.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ The API will return a 401 "Bad credentials" response if the gists scope was give
1616

1717
##Truncation
1818

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`.
2020

2121
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`.
2222

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`.
24+
2325
##List gists
2426

2527
List a user's gists:

‎lib/responses/gist.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module Responses
5959
"owner"=>USER,
6060
"user"=>nil,
6161
"files"=>GIST_FILE,
62+
"truncated"=>false,
6263
"comments"=>0,
6364
"comments_url"=>"https://api.github.com/gists/aa5a315d61ae9438b18d/comments/",
6465
"html_url"=>"https://gist.github.com/aa5a315d61ae9438b18d",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp