Method PickerBuilder.setAppId

Sets the Id of the application needing to access the user's files via the Drive API .

This is required for the https://www.googleapis.com/auth/drive.file scope.

Examples

Basic usage

  const 
  
 builder 
  
 = 
  
 new 
  
 google 
 . 
 pickerPickerBuilder 
 () 
  
 . 
 setAppId 
 ( 
 '1234567890' 
 ); 
 

Signature

  setAppId 
 ( 
 appId 
 : 
  
 string 
 ) 
 : 
  
 PickerBuilder 
 ; 
 

Details

Optional No
Final No
Protected No
Static No

Parameters

Name Type Optional Description
appId
string No The Cloud project number.

Returns

PickerBuilder

Design a Mobile Site
View Site in Mobile | Classic
Share by: