2016-11-03 1 views
0

У меня есть этот код, но я не могу найти в maven-репозиторииКак импортировать LocalServerReceiver()?

нужная библиотека для импорта. Кто-нибудь знает, кто это?

import com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver; 


/** Authorizes the installed application to access user's protected data. */ 
private static Credential authorize() throws IOException { 
    dataStoreFactory = new FileDataStoreFactory(DATA_STORE_DIR); 
    // set up authorization code flow 
    GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
      TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES).setDataStoreFactory(
      dataStoreFactory).build(); 
    // authorize 
    return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); 
} 

Я не мог найти com.google.api.client.extensions.jetty

https://mvnrepository.com/search?q=com.google.api.client.extensions.jetty

ответ

Смежные вопросы