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

com.nulabinc.backlog4j.conf.BacklogJpConfigure Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package com.nulabinc.backlog4j.conf;

import java.net.MalformedURLException;

/**
 * @author nulab-inc
 */
public final class BacklogJpConfigure extends BacklogConfigure {

    private final String spaceKey;

    public BacklogJpConfigure(String spaceKey) throws MalformedURLException {
        if (spaceKey == null) {
            throw new IllegalArgumentException("spaceKey must not be null");
        }
        this.spaceKey = spaceKey;
    }

    @Override
    public String getOAuthAuthorizationURL() {
        return "https://" + spaceKey + ".backlog.jp/OAuth2AccessRequest.action";
    }

    @Override
    public String getOAuthAccessTokenURL() {
        return "https://" + spaceKey + ".backlog.jp/api/v2/oauth2/token";
    }

    @Override
    public String getRestBaseURL() {
        return "https://" + spaceKey + ".backlog.jp/api/v2";
    }

    @Override
    public String getWebAppBaseURL() {
        return "https://" + spaceKey + ".backlog.jp";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy