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

com.github.scribejava.apis.DiscordApi 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.DefaultApi20;

public class DiscordApi extends DefaultApi20 {

    private DiscordApi() {
    }

    private static class InstanceHolder {
        private static final DiscordApi INSTANCE = new DiscordApi();
    }

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

    @Override
    protected String getAuthorizationBaseUrl() {
        return "https://discordapp.com/api/oauth2/authorize";
    }

    @Override
    public String getRevokeTokenEndpoint() {
        return "https://discordapp.com/api/oauth2/token/revoke";
    }

    @Override
    public String getAccessTokenEndpoint() {
        return "https://discordapp.com/api/oauth2/token";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy