com.microsoft.bingads.internal.OAuthEndpoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft.bingads Show documentation
Show all versions of microsoft.bingads Show documentation
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.
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;
}
}