Google photos api adding photos not working, upload seems to work
问题 Trying to use Google Apps Script and Google Photos API to add photos to Google Photos. Upload seems to work / returns a token, but then adding the photo to the library fails. The process consists of two steps: 1. Upload the photo data as described here, then 2. Add the photo to photo library as described here. Step 1. works for me, as I get an upload token, but step 2 with source code below, throws an error, but my call has the one media item it needs. { "error": { "code": 400, "message":