![]() ![]() # also tried url =, presentationFileId) Request = drive_service.permissions().create(Ĭreate_public_permissions(drive_service, file_id) # Here I put the actual service object and file ID. Response = slides_service.presentations().batchUpdate(presentationId=presentation_id,body=body).execute()ĭef create_public_permissions(drive_service, file_id): I'm using v3 of the Drive API and v1 for Slides API.īelow is the code I'm using: def replace_shape_with_image(slides_service, url, presentation_id, contains_text): However, I can download the image wihout problems via API and without giving extra permissions. I get a " Access to the provided image was forbidden" error everytime. I've read several solutions like this and this, and I have tried to set the permissions in the image as " reader" and " anyone with link", both via API and manually, and nothing works. The image in question is allocated in a team Drive unit. ![]() ![]() I'm trying to replace a Google slides shape filled with a placeholder text with an image via API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |