Skip to content

Commit

Permalink
added a little helper code that generates an OAuth token for ~/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Apr 23, 2013
1 parent 5e3d3dd commit eeebfd5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/Foo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import org.kohsuke.github.GitHub;

import java.util.Arrays;

/**
* @author Kohsuke Kawaguchi
*/
public class Foo {
public static void main(String[] args) throws Exception {
System.out.println(GitHub.connect().createToken(
Arrays.asList("user", "repo", "delete_repo", "notifications", "gist"), "GitHub API", null).getToken());
}
}

0 comments on commit eeebfd5

Please sign in to comment.