Adding/updating a Google Contact's photo
问题 I am trying to update a Google Contacts contact's photo via URL using Google Apps Script. The below is my attempt. function addContactPhoto (blob) { var image = UrlFetchApp.fetch("http://www.example.com/joe_bloggs.png"); var options = { 'method' : 'put', 'contentType': 'image/png', 'payload' : image.getBlob() }; UrlFetchApp.fetch('https://www.google.com/m8/feeds/photos/media/{userEmail}/{contactID}', options); } I was trying to follow the instructions for the Google Contacts API by sending a