获得访问令牌后,我可以获取一个分析对象。
HttpTransport httpTransport = GoogleNetHttpTransport.newTrustedTransport();
GoogleCredential credential = new GoogleCredential.Builder()
.setTransport(httpTransport)
.setJsonFactory(JSON_FACTORY)
.setClientSecrets(clientId, clientId)
.build()
.setAccessToken(accessToken);
Analytics analytics=new Analytics.Builder(httpTransport, JSON_FACTORY, credential)
.setApplicationName(applicationName).build();
在此时,是否可以获取使用该令牌的用户?