mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-17 08:21:23 +00:00
14 lines
364 B
Java
14 lines
364 B
Java
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());
|
|
}
|
|
}
|