title: Example of using github API from javascript
body: <p>I've been searching on the web for some time and couldn't find an example of how to use the <a href="http://developer.github.com/v3/">GitHub API</a> from plain client-side javascript (no node-js, jquery etc). I wanted something like authenticate then push a blob, put as simply as possible so I can understand it. Shouldn't be too complicated, I bet you can do that in a dozen lines of code but I don't know a lot about ajax, json and jsonp.</p>
  
  <p>Can you provide an example to get me started?</p>
  
  <p>Thanks!</p>
  
  <p><strong>edit:</strong> found this: <a href="http://blog.vjeux.com/category/javascript">http://blog.vjeux.com/category/javascript</a>, but I'm still confused as to what are exactly the steps of the process.</p>