Skip to content

Commit 1689859

Browse files
committed
Merge pull request #27 from coderaiser/patch-2
Added ability to create a gist
2 parents bc81f67 + 956618c commit 1689859

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

github.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,21 @@
437437
});
438438
};
439439

440+
// Create the gist
441+
// --------
442+
// {
443+
// "description": "the description for this gist",
444+
// "public": true,
445+
// "files": {
446+
// "file1.txt": {
447+
// "content": "String file contents"
448+
// }
449+
// }
450+
// }
451+
452+
this.create = function(options, cb){
453+
_request("POST","/gists", options, cb);
454+
};
440455

441456
// Delete the gist
442457
// --------

0 commit comments

Comments
 (0)