Git Product home page Git Product logo

Comments (14)

niftylettuce avatar niftylettuce commented on May 25, 2024

oh it seems you're moving everything to https://github.com/c9/node-github3

from octokit.js.

mikedeboer avatar mikedeboer commented on May 25, 2024

nope, it's the other way around in fact!

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

ah lol, so its now:

var GitHubApi = require('node-github');
var github = new GitHubApi({ version: '3.0.0' });

right?

from octokit.js.

mikedeboer avatar mikedeboer commented on May 25, 2024

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

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

what about authenticateToken ?

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

nvm

github.authenticate({
    type: "basic",
    username: username,
    password: password
});
github.user.update({
    location: "Argentina"
}, function(err) {
    console.log("done!");
});

from octokit.js.

mikedeboer avatar mikedeboer commented on May 25, 2024

I added more examples there for you - and all others with the same question, of course ;)

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

authenticate({ type: 'token' }) doesn't seem to be working when passing a valid username and token option, returns 401, could you test?

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

oh nevermind, i still had user.update(username, {} vs user.update({}

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

hmm, still seems that token type is not working, getting 401 bad credentials.

from octokit.js.

mikedeboer avatar mikedeboer commented on May 25, 2024

please read the README, I added a comment to the code example.

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

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

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

ah I see your comment now, it wasn't there when I checked a bit ago :)

from octokit.js.

niftylettuce avatar niftylettuce commented on May 25, 2024

nice work, closing this issue

👍

from octokit.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.