Converting string to web-safe Base64 format

后端 未结 3 496
名媛妹妹
名媛妹妹 2020-12-03 12:58

I am testing how to update user picture using the Admin SDK Directory Service with Google Apps Scripts with the following function:

function updatePhoto(){
          


        
3条回答
  •  被撕碎了的回忆
    2020-12-03 13:45

    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

提交回复
热议问题