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

com.microsoft.bingads.internal.OAuthEndpoints Maven / Gradle / Ivy

Go to download

The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.

There is a newer version: 13.0.22.1
Show newest version
package com.microsoft.bingads.internal;

import java.net.MalformedURLException;
import java.net.URL;

public class OAuthEndpoints {
    private String desktopRedirectUrl;
    
    private String tokenRequestUrl;
    
    private String authorizationEndpointUrl;
    
    private String scope;
    
    public OAuthEndpoints(String desktopRedirectUrl, String tokenRequestUrl, String authorizationEndpointUrl, String scope) {
        this.desktopRedirectUrl = desktopRedirectUrl;
        this.tokenRequestUrl = tokenRequestUrl;
        this.authorizationEndpointUrl = authorizationEndpointUrl;
        this.scope = scope;
    }

    public URL getDesktopRedirectUrl() {
        try {
            return new URL(desktopRedirectUrl);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getTokenRequestUrl() {
        return tokenRequestUrl;
    }

    public String getAuthorizationEndpointUrl() {
        return authorizationEndpointUrl;
    }
    
    public String getScope() {
        return this.scope;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy