File size: 268 Bytes
5a32ee0
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
function getImageData(imageUrl) {
  var options = {
    'method': 'GET',
    'headers': {
      'Authorization': 'Bearer YOUR_IMAGE_API_TOKEN'
    }
  };
  var response = UrlFetchApp.fetch(imageUrl, options);
  var imageData = response.getBlob();
  return imageData;
}