Groups
Groups
Sign in
Groups
Groups
Google API Client for Ruby
Conversations
About
Send feedback
Help
Sharing folders
17 views
Skip to first unread message
Nuno Lopes
unread,
Dec 18, 2015, 3:59:08 PM
12/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google API Client for Ruby
I am trying to share a folder but everytime i try. I get
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "File not found: 0B...................Y1E",
"locationType": "other",
"location": "file"
}
],
"code": 404,
"message": "File not found: 0B...................iY1E"
}
}
The file exists and if I generate the Bearer token using the web playground it works but if generate using the service account code here :
https://developers.google.com/api-client-library/ruby/auth/service-accounts
it fails
I already tried every combination of the following scopes
'
https://www.googleapis.com/auth/drive
',
'
https://www.googleapis.com/auth/drive.file
',
'
https://www.googleapis.com/auth/drive.appdata
',
'
https://www.googleapis.com/auth/drive.metadata
',
'
https://www.googleapis.com/auth/drive.metadata
'
I need to generate the oauth token without user interaction because is going to be run on a server
Reply all
Reply to author
Forward
0 new messages