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

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

There is a newer version: 8.3.3
Show newest version
package com.github.scribejava.apis;

import com.github.scribejava.apis.slack.SlackJsonTokenExtractor;
import com.github.scribejava.core.builder.api.DefaultApi20;

/**
 * Slack.com API
 */
public class SlackApi extends DefaultApi20 {

    protected SlackApi() {
    }

    private static class InstanceHolder {

        private static final SlackApi INSTANCE = new SlackApi();
    }

    public static SlackApi instance() {
        return SlackApi.InstanceHolder.INSTANCE;
    }

    @Override
    public String getAccessTokenEndpoint() {
        return "https://slack.com/api/oauth.v2.access";
    }

    @Override
    protected String getAuthorizationBaseUrl() {
        return "https://slack.com/oauth/v2/authorize";
    }

    @Override
    public SlackJsonTokenExtractor getAccessTokenExtractor() {
        return SlackJsonTokenExtractor.instance();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy