OAuth 2.0 client for GitHub authentication and API access
// Source: https://github.com/scribejava/scribejava | License: MIT | Copyright 2010 Pablo Fernandez
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.scribejava.apis;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor;
import com.github.scribejava.core.extractors.TokenExtractor;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.github.scribejava.core.model.Verb;
public class GitHubApi extends DefaultApi20 {
protected GitHubApi() {
}
private static class InstanceHolder {
private static final GitHubApi INSTANCE = new GitHubApi();
}
public static GitHubApi instance() {
return InstanceHolder.INSTANCE;
}
@Overrid
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key