test
This commit is contained in:
parent
e3ebb45c2c
commit
a80f2d7ec4
@ -88,7 +88,7 @@ public class YoutubeTools {
|
||||
GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
|
||||
HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)
|
||||
.setDataStoreFactory(DATA_STORE_FACTORY)
|
||||
.setAccessType("offline")
|
||||
.setAccessType("online")
|
||||
.build();
|
||||
Credential credential = new Autorization(flow, new LocalServerReceiver(), guild).authorize("user");
|
||||
logger.debug("Credentials saved to " + DATA_STORE_DIR.getAbsolutePath());
|
||||
|
Loading…
Reference in New Issue
Block a user