Comments (4)
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.
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.
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.
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)
- any plans to support editing of repos gists? HOT 4
- URL Shortener HOT 1
- Why Base64 code needed? HOT 1
- paginationInfo not work HOT 1
- No doc for nested subdirectory HOT 1
- Add to Bower HOT 1
- oauth HOT 3
- feature request: smaller dependencies HOT 2
- Is there any support for oauth? HOT 3
- User Profile Picture Option? HOT 3
- Added support for commit comments HOT 1
- Fetching user repositories, getting "Uncaught TypeError: object is not a function" HOT 2
- team members? HOT 2
- Distribution? HOT 1
- support creating pull requests HOT 1
- how to get wiki pages?
- Add "releases" to "Search"
- Any Plans to Add Activity / Starring API
- How cound I post content to github repos?
- Any plans to add Issue Milestones?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh3.