All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.scribejava.apis.FoursquareApi Maven / Gradle / Ivy

There is a newer version: 8.3.3
Show newest version
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";
    }

    @Override
    public String getRequestTokenEndpoint() {
        return "http://foursquare.com/oauth/request_token";
    }

    @Override
    public String getAuthorizationBaseUrl() {
        return AUTHORIZATION_URL;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy