Sharing folders

17 views
Skip to first unread message

Nuno Lopes

unread,
Dec 18, 2015, 3:59:08 PM12/18/15
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.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