The API requires you to use URL-safe base64 encoding. After doing the base64 encoding, try replacing /
with _
and +
with -
. Details at:
https://developers.google.com/admin-sdk/directory/v1/reference/users/photos/update
More Related Contents:
- How many times per day/month i can call url.fetch? (Какие есть ограничения по количеству url.fetch в день/месяц для google apps scripts?) [closed]
- How to protect the Apps Script code in a Google spreadsheet?
- Automatic timestamp when a cell is filled out
- Apps Script: how to get hyperlink from a cell where there is no formula
- Why does my apps script deployed as API executable return Permission Denied?
- Script to Change Row Color when a cell changes text
- You do not have permission to call openById
- Google Apps Script, copy one spreadsheet to another spreadsheet with formatting
- Single Google Form for multiple Sheets [duplicate]
- Create a post in Blogger with Google Apps Script
- How do I communicate a page(modal dialog) with its sibling (sidebar)?
- How to replace text in Google Spreadsheet using App Scripts?
- copy data from one sheet to another in google app script and append a row, one small issue
- Refresh data retrieved by a custom function in Google Sheet
- How to extract the link from a cell now that links are not reflected as HYPERLINK?
- Google Apps Script: Dynamically creating spreadsheet menu items
- How can I filter dashboard content based on User or Email?
- How to Populate HTML Service Select Options from Range in Google Sheet?
- Apply multiple font colors to the text in a single Google Sheets cell
- How to evaluate a spreadsheet formula within a custom function?
- Google Sheet use Importxml error could not fetch url [duplicate]
- On Edit doesnt work if cell auto updates – Need a workaround Google Sheets
- Does Google Apps Script support external IDEs?
- How to download Google Slides as images?
- Adding a property to an Html template gives error “Object does not allow properties to be added or changed”
- TypeError: Cannot read property ‘getRange’ of null (line 6, file “Code”) in google sheet script [duplicate]
- .setFormula() and received error missing ) argument list
- How to trigger a Google Apps Script once an email get in the inbox?
- Accessing shared drive with DriveApp
- Unreachable Service – appsactivity