Closed niftylettuce closed 12 years ago
nope, it's the other way around in fact!
ah lol, so its now:
var GitHubApi = require('node-github');
var github = new GitHubApi({ version: '3.0.0' });
right?
yes, indeed! There are some API incompatibilities between the two versions, but they are easy to spot. Docs will appear on http://ajaxorg.github.com/node-github very shortly (I just pushed 'em).
what about authenticateToken
?
nvm
github.authenticate({
type: "basic",
username: username,
password: password
});
github.user.update({
location: "Argentina"
}, function(err) {
console.log("done!");
});
I added more examples there for you - and all others with the same question, of course ;)
authenticate({ type: 'token' })
doesn't seem to be working when passing a valid username and token option, returns 401, could you test?
oh nevermind, i still had user.update(username, {}
vs user.update({}
hmm, still seems that token
type is not working, getting 401
bad credentials.
please read the README, I added a comment to the code example.
Github isn't supporting token auth it seems in v3 with username/token combination, only basic or oauth2
http://developer.github.com/v3/#authentication
we should remove the token auth type
ah I see your comment now, it wasn't there when I checked a bit ago :)
nice work, closing this issue
:+1:
oh it seems you're moving everything to https://github.com/c9/node-github3