메서드 PickerBuilder.setAppId
Drive API를 통해 사용자 파일에 액세스해야 하는 애플리케이션의 ID를 설정합니다.
https://www.googleapis.com/auth/drive.file
범위에 필요합니다.
예
기본 사용법
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
서명
setAppId(appId: string): PickerBuilder;
세부정보
선택사항 |
아니요 |
종료 |
아니요 |
보호됨 |
아니요 |
정적 |
아니요 |
매개변수
이름 |
유형 |
선택사항 |
설명 |
appId |
string |
아니요 |
Cloud 프로젝트 번호입니다. |
반환 값
PickerBuilder
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-07(UTC)
[null,null,["최종 업데이트: 2024-11-07(UTC)"],[[["Sets the application ID, which is needed for the `https://www.googleapis.com/auth/drive.file` scope, allowing access to user files via the Drive API."],["This method is used within the `google.pickerPickerBuilder` and takes the Cloud project number as a string parameter."],["The `setAppId` method is not optional, final, protected, or static."],["Upon execution, it returns a `PickerBuilder` object for further configuration."]]],[]]