I've initialized the Google Slides PHP API and already created a presentation successfully. Now my question is: How do change the share settings of the created presentation?
The share settings of any file that exists in Drive can be managed via Permissions resource from Drive API. You can create, update or delete a permission by making the corresponding call to the API.
For example, if you want to share your file with someone, or make it public, you just have to call Permissions.create
and provide the id
of the file in your request, as well as the following properties in the request body:
type
: you can specify if you want to share the file with a single user, with all users in your domain, make it public or what have you.role
: you can specify if the user that is granted access to the file can edit it, just view it, or what have you.I hope this is of any help.