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?
Asked
Active
Viewed 62 times
-1

Linda Lawton - DaImTo
- 106,405
- 32
- 180
- 449

TheInfectedWolf
- 3
- 1
-
You can share it using [Permissions in Driver API](https://developers.google.com/drive/api/v3/reference/permissions). – Tanaike Dec 12 '19 at 23:13
-
welcome to stack please read https://stackoverflow.com/help/how-to-ask then edit your question and show us what you have tried and describe any issues you are having with your current solution. – Linda Lawton - DaImTo Dec 13 '19 at 06:54
1 Answers
0
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.

Iamblichus
- 18,540
- 2
- 11
- 27
-
Thanks for your help. I finally got my project to work, but with some workarounds. – TheInfectedWolf Dec 14 '19 at 15:48
-
@TheInfectedWolf you're welcome. If this answer was useful to you, please consider [accepting it](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), since it can be useful to others, and StackOverflow relies on this to share knowledge to other users. – Iamblichus Dec 19 '19 at 09:28