public class OAuthEndpointHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_ID |
static String |
CLIENT_SECRET |
static Map<OAuthEndpointType,OAuthEndpoints> |
endpointUrls |
static String |
GRANT_TYPE |
static String |
REDIRECT_URI |
static String |
RESPONSE_TYPE |
static String |
SCOPE |
static String |
STATE |
static String |
UTF_8 |
Constructor and Description |
---|
OAuthEndpointHelper() |
Modifier and Type | Method and Description |
---|---|
static URL |
getAuthorizationEndpoint(com.microsoft.bingads.internal.OAuthUrlParameters parameters,
ApiEnvironment env,
OAuthScope oAuthScope,
String tenant)
Creates a URL for authorizing a user
|
static OAuthEndpoints |
getOauthEndpoint(ApiEnvironment env,
OAuthScope oAuthScope) |
public static final String UTF_8
public static final String RESPONSE_TYPE
public static final String STATE
public static final String CLIENT_ID
public static final String REDIRECT_URI
public static final String GRANT_TYPE
public static final String SCOPE
public static final String CLIENT_SECRET
public static final Map<OAuthEndpointType,OAuthEndpoints> endpointUrls
public static OAuthEndpoints getOauthEndpoint(ApiEnvironment env, OAuthScope oAuthScope)
public static URL getAuthorizationEndpoint(com.microsoft.bingads.internal.OAuthUrlParameters parameters, ApiEnvironment env, OAuthScope oAuthScope, String tenant)
parameters
- OAuth parameters for ensemble authorization endpointURL
which points to the authorization endpoint with all
required parametersMalformedURLException
UnsupportedEncodingException
Copyright © 2024. All rights reserved.