Provides the OAuth 1.0a endpoint configurations required to authenticate and authorize applications using the Foursquare API.
// 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.DefaultApi10a;
public class FoursquareApi extends DefaultApi10a {
private static final String AUTHORIZATION_URL = "http://foursquare.com/oauth/authorize";
protected FoursquareApi() {
}
private static class InstanceHolder {
private static final FoursquareApi INSTANCE = new FoursquareApi();
}
public static FoursquareApi instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "http://foursquare.com/oauth/access_token";
}
@Overr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key