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.

Commit04a8276

Browse files
committed
Add dedicated section about fetching full content
1 parented001a3 commit04a8276

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎content/changes/2014-04-22-gist-api-now-truncating-large-files.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ The [Gist API response][gist-json-representation] includes data for every file i
1313

1414
To eliminate those timeouts, the API now limits the amount of content returned for each file. If a file is larger than one megabyte in size, the API response will include the first megabyte of content for that file. (Few Gists have files this large. As a result, most API clients won't notice any impact from this change.)
1515

16-
When you need the full contents of the file, simply make a request to the URL specified in the`raw_url` attribute.
17-
1816
###New "truncated" attribute
1917

2018
The JSON snippet below illustrates the attributes provided for each file in the Gist API response. In it, you'll notice a new**truncated** attribute included as part of the file metadata. This Boolean attribute indicates whether the`content` value is truncated for this request.
@@ -32,6 +30,10 @@ The JSON snippet below illustrates the attributes provided for each file in the
3230
}
3331
}
3432

33+
###Getting the full content for truncated files
34+
35+
We recognize that sometimes you'll still want the full content for a file, even if it's too large to get returned in the standard Gist API response. In those cases, simply make a request to the URL specified in the`raw_url` attribute, and you'll receive the complete content for that file.
36+
3537
If you have any questions, please[get in touch][contact].
3638

3739
[contact]:https://github.com/contact?form[subject]=Gist+API+now+tuncates+large+files

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp