Google-api-php-client: File sharing/permissions

Created on 4 Dec 2020  路  7Comments  路  Source: googleapis/google-api-php-client

I scanned the repo, but still not sure if it allows sharing of files / changing permissions such as what's described here:
https://developers.google.com/drive/api/v3/manage-sharing

question

All 7 comments

Which action specifically are you looking for? There are a number described on that page.

Which action specifically are you looking for? There are a number described on that page.

Thank you for the reply I'd like to be able to set the "role => reader, type=> anyone"

On which resource? A file, folder or drive?

On which resource? A file, folder or drive?

Hi, on folder and file

think there's a way to make HTTP requests to the API as well, right? So I would authenticate with the API, then using the object make an HTTP request with required changes. Would that work?

Yes, it certainly would. There's a sample of that here.

To answer the original question, you should be able to accomplish the same using this client with the Google_Drive_Resource_Permissions::create() method.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kungufli picture kungufli  路  3Comments

Fredyy90 picture Fredyy90  路  3Comments

armetiz picture armetiz  路  4Comments

mevsme picture mevsme  路  4Comments

cmcfadden picture cmcfadden  路  5Comments