Gist integration (Developer Tools). Imported from open-connector.
https://api.github.com/gists
| Param | Type | Required | Description |
|---|---|---|---|
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
| since | string | optional | The ISO 8601 timestamp to filter gists updated after this time. |
/gists
| Param | Type | Required | Description |
|---|---|---|---|
| description | string | optional | The description to store on the gist. |
| public | boolean | optional | Whether the gist should be publicly visible. |
| files | object | required | The files to create in the gist, keyed by filename. |
/gists/public
| Param | Type | Required | Description |
|---|---|---|---|
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
| since | string | optional | The ISO 8601 timestamp to filter gists updated after this time. |
/gists/starred
| Param | Type | Required | Description |
|---|---|---|---|
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
| since | string | optional | The ISO 8601 timestamp to filter gists updated after this time. |
/gists/{gistId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to fetch. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to update. |
| description | string | optional | The new gist description. |
| files | object | optional | Updated file entries keyed by filename. Use null to delete a file. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to delete. |
/gists/{gistId}/commits
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID whose revision history should be listed. |
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
/gists/{gistId}/forks
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID whose forks should be listed. |
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
/gists/{gistId}/forks
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to fork. |
/gists/{gistId}/star
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to inspect. |
/gists/{gistId}/star
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to star. |
/gists/{gistId}/star
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to unstar. |
/gists/{gistId}/{sha}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID that owns the revision. |
| sha | string | required | The commit SHA for the revision to fetch. |
| mediaType | string | optional | The media type format for the gist content. |
/users/{username}/gists
| Param | Type | Required | Description |
|---|---|---|---|
| username | string | required | The GitHub username whose public gists should be listed. |
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
| since | string | optional | The ISO 8601 timestamp to filter gists updated after this time. |
/gists/{gistId}/comments
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID whose comments should be listed. |
| perPage | integer | optional | The number of results per page. |
| page | integer | optional | The page number to retrieve. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}/comments
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID to comment on. |
| body | string | required | The comment body text. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}/comments/{commentId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID that owns the comment. |
| commentId | integer | required | The numeric gist comment ID. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}/comments/{commentId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID that owns the comment. |
| commentId | integer | required | The numeric gist comment ID. |
| body | string | required | The updated comment body text. |
| mediaType | string | optional | The media type format for the gist content. |
/gists/{gistId}/comments/{commentId}
| Param | Type | Required | Description |
|---|---|---|---|
| gistId | string | required | The gist ID that owns the comment. |
| commentId | integer | required | The numeric gist comment ID. |