+
Skip to content

authorize with github like at prose.io #55

Closed
@tansaku

Description

@tansaku

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载