Could you help me find more info about the "PickerBuilder.setAuthUser(string)" method?
The documentation says: "Specify an email address, domain name, or a Google profile ID to use as the authenticated user. The user must already be logged into this account."
What does "domain name" mean?
Thanks Claudio, Jason Kirkland City of Lewisville, Texas
the setAuthUser(string) function allows you to specifies which account will be used by the picker in case the user is multi-logged-in.
As you may know users can be logged simultaneously in multiple Google accounts and this method should be used to avoid the picker using the wrong account. You can pass it the user's email or the user's ID both of which you get using the userInfo API (which you can get access at the same time as the Drive API using OAuth 2.0 for instance).
You can also pass it a domain name that will be useful only if one of the account that the user is multi-logged-in with is a Google apps domain. So if you are logged with both [email protected] and [email protected] then using setAuthUser('mydomain.com') will make sure the second account is used. But in any case it's safer to pass the full email address or the User ID.
PS: In the future it;s better and more convenient that you ask these types of questions on StackOverflow, we monitor the drive-sdk tag every day!
Hello, excuse me, I am developing an application with google search's appi could you help me, could you tell me where can search or could you tell me whom can I ask it.
9 comments :
How i can setup Upload Folder destination if i have Folder ID?
You can use DocsUploadView.setIncludeFolders(true) to allow users to select a folder, but you can't programmatically set a folder to upload files to:
https://developers.google.com/picker/docs/reference#DocsUploadView
Oh, it's bad... but i can move files to my folder after upload.
Also it's possible to show all files from folder for pick?
?? setQuery(string)
Please check the documentation for all available settings:
https://developers.google.com/picker/docs/
Could you help me find more info about the "PickerBuilder.setAuthUser(string)" method?
The documentation says:
"Specify an email address, domain name, or a Google profile ID to use as the authenticated user. The user must already be logged into this account."
What does "domain name" mean?
Thanks Claudio,
Jason Kirkland
City of Lewisville, Texas
Not sure about that option, try asking the same question in the Picker API forum:
https://groups.google.com/group/Google-Picker-API
Hey Jason,
the setAuthUser(string) function allows you to specifies which account will be used by the picker in case the user is multi-logged-in.
As you may know users can be logged simultaneously in multiple Google accounts and this method should be used to avoid the picker using the wrong account. You can pass it the user's email or the user's ID both of which you get using the userInfo API (which you can get access at the same time as the Drive API using OAuth 2.0 for instance).
You can also pass it a domain name that will be useful only if one of the account that the user is multi-logged-in with is a Google apps domain. So if you are logged with both [email protected] and [email protected] then using setAuthUser('mydomain.com') will make sure the second account is used. But in any case it's safer to pass the full email address or the User ID.
PS: In the future it;s better and more convenient that you ask these types of questions on StackOverflow, we monitor the drive-sdk tag every day!
Cheers!
It does not support versioning of existing files...
Hello, excuse me, I am developing an application with google search's appi
could you help me, could you tell me where can search or could you tell me whom can I ask it.
Thank's, I'll waiting for you answer.
Post a Comment