Create the configuration map that contains mode and other optional configuration details.
Create accessToken
Retrieve the access token from OAuthTokenCredential by passing in ClientID and ClientSecret It is not mandatory to generate Access Token on a per call basis. Typically the access token can be generated once and reused within the expiry window
Returns APIContext object
Pass in a APIContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
Use this variant if you want to pass in a request id
that is meaningful in your application, ideally
a order id.
String requestId = Long.toString(System.nanoTime();
APIContext apiContext = new APIContext(GetAccessToken(), requestId ));
Static constructor for setting the readonly static members.