MCPcopy Index your code
hub / github.com/github-tools/github / create

Method create

lib/Gist.js:42–48  ·  view source on GitHub ↗

* Create a new gist. * @see https://developer.github.com/v3/gists/#create-a-gist * @param {Object} gist - the data for the new gist * @param {Requestable.callback} [cb] - will receive the new gist upon creation * @return {Promise} - the Promise for the http request

(gist, cb)

Source from the content-addressed store, hash-verified

40 * @return {Promise} - the Promise for the http request
41 */
42 create(gist, cb) {
43 return this._request('POST', '/gists', gist, cb)
44 .then((response) => {
45 this.__id = response.data.id;
46 return response;
47 });
48 }
49
50 /**
51 * Delete a gist.

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected