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.

Sync changes from upstream repository#931

Merged
hubot merged 1 commit intomasterfromupdate-1450287101
Dec 16, 2015
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletioncontent/v3/gists.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,10 +16,12 @@ The API will return a 401 "Bad credentials" response if the gists scope was give

## Truncation

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

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

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

## List gists

List a user's gists:
Expand Down
1 change: 1 addition & 0 deletionslib/responses/gist.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,6 +59,7 @@ module Responses
"owner" => USER,
"user" => nil,
"files" => GIST_FILE,
"truncated" => false,
"comments" => 0,
"comments_url" => "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/",
"html_url" => "https://gist.github.com/aa5a315d61ae9438b18d",
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp