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
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/changes/2014-04-22-gist-api-now-truncating-large-files.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ To eliminate those timeouts, the API now limits the amount of content returned f
15
15
16
16
When you need the full contents of the file, simply make a request to the URL specified in the`raw_url` attribute.
17
17
18
+
###New "truncated" attribute
19
+
20
+
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.
21
+
18
22
{
19
23
files: {
20
24
"my_large_file.md": {
@@ -28,10 +32,6 @@ When you need the full contents of the file, simply make a request to the URL sp
28
32
}
29
33
}
30
34
31
-
###New "truncated" attribute
32
-
33
-
In the example JSON excerpt above, 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.
34
-
35
35
If you have any questions, please[get in touch][contact].