Git Product home page Git Product logo

Comments (4)

k33g avatar k33g commented on June 30, 2024

I'm not sure this is useful client side (private repositories ?), but you may find of interest in this : https://github.com/ajaxorg/node-github#authentication

from gh3.

billybonks avatar billybonks commented on June 30, 2024

the main use that comes to mind is increasing your rate limit from 60 per hour to 5000 per hour

from git hub :

We limit requests to 60 per hour for unauthenticated requests. For requests using Basic Authentication or OAuth, we limit requests to 5,000 per hour. You can check the returned HTTP headers of any API request to see your current status:

from gh3.

k33g avatar k33g commented on June 30, 2024

Ok, i see, but i don't think it's possible todo only with client-side, you need a server side script (or in an application) to get a token : http://blog.vjeux.com/category/javascript

i've tried with basic authentication with something like that :

Gh3.Helper.callHttpApi({
    beforeSend: function (xhr) { xhr.setRequestHeader ("Authorization", "Basic " + Gh3.Base64.encode("user:password")); },
    success : function(res){ console.log("SUCCESS",res)}
})

but it does'nt work

from gh3.

billybonks avatar billybonks commented on June 30, 2024

i see :/ i think im going to have to redo most of my code in a server side code that generates the pages. because 60 is just to low :)

from gh3.

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.