Closed
Description
I just love the "authorise with github" button at prose.io
Can I create something similar just using github.js, or do I need to pull in more things from prose?
I've been trying to get github.js working, using basic authentication and things like this:
var user = github.getUser();
var gist = github.getGist(3165654);
but in my chrome console I get the following:
gist
Github.Gist {read: function, create: function, delete: function, fork: function, update: function}
gist.read(function(err, gist) {
});
TypeError: undefined is not a function
get stack: function () { [native code] }
message: "undefined is not a function"
set stack: function () { [native code] }
__proto__: Error
Any help very much appreciated ...