|
DefaultYZClient yzClient = new DefaultYZClient();
TokenParameter tokenParameter = TokenParameter.self()
.clientId("b815eec70b293ff0d8")
.clientSecret("802c0ca53f647783f3e2931059d07a7a")
.grantId("112717535")
.refresh(true)
.build();
OAuthToken oAuthToken = yzClient.getOAuthToken(tokenParameter);
String accessToken=oAuthToken.getAccessToken();
System.out.println("===oAuthToken:"+accessToken);
|
|
|
|
|
|
|