Advertisement
Guest User

Untitled

a guest
Apr 4th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. github.authenticate({
  2. type: "basic",
  3. username: xxx,
  4. password: xxx
  5.  
  6. });
  7.  
  8.  
  9.  
  10. github.authorization.create({
  11. scopes: ["user", "public_repo", "repo", "repo:status", "gist", "write:repo_hook", "admin:org_hook"],
  12. note: "what this auth is for",
  13. note_url: "http://url-to-this-auth-app",
  14. headers: {
  15. "X-GitHub-OTP": "two-factor-code"
  16. }
  17. }, function(err, res) {
  18. if (err) {
  19.  
  20.  
  21. }
  22. else if (res.token) {
  23.  
  24. }
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement