샘플 코드를 작성해야합니다. [email protected], [email protected], [email protected] 등 모든 파일에 액세스 할 수 있어야합니다 (my_mail @ gmail .com) sdk를 사용하는 Google 드라이브 계정 나는이 (구글 개발자 콘솔에 설치 한 응용 프로그램)을 시도하고,이 서비스는Google 드라이브 v2 API 샘플
ClientSecrets secrets = new ClientSecrets
{
ClientId = CLIENT_ID,
ClientSecret = CLIENT_SECRET,
};
IDataStore StoredRefreshToken = new SavedDataStore(new StoredResponse() { });
UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(secrets,
SCOPES, "1", CancellationToken.None, StoredRefreshToken /*, credentialPersistanceStore*/).Result;
BaseClientService.Initializer initializer = new BaseClientService.Initializer
{
HttpClientInitializer = credential,
ApplicationName = APP_USER_AGENT
};
return new DriveService(initializer);
내가 asp.net의 MVC에 쓰기 현재 시간에 브라우저에서 로그인 사용자의 파일을 반환, 당신은 hepls 희망
무엇이 질문입니까? –
@jon 나는 그가 기계의 브라우저에 현재 로그인 한 사용자 대신 특정 사용자를 사용하여 로그인하는 방법을 묻고 있다고 생각합니다. – propagated
좋아, 네가 무슨 뜻인지 알 겠어. 나는 –