Is there an upload API for Google Photos (photos.google.com)?

后端 未结 4 2110
猫巷女王i
猫巷女王i 2020-12-12 09:55

Does the Google Photos app, released on May 28, 2015, have an API which allows uploading of photos? The app seems to build on Picassa and Google+. Can one of their APIs can

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 10:47

    I figured it out using Fiddler against the Google Photos Uploader and toggling the resolution level back and forth.

    If you use the mediaBackground upload, it has a parameter for "storage". If you set the parameter to "standard", it is unlimited quota. If you set it to "full", it is against your quota.

    So the API Call for full-res quota photos is:

    /resumable/upload/plus/v1whitelisted/mediasets/me.cinstant/mediaBackground?uploadType=resumable&imageSize=1024&mediaType=photo&storage=**full**&remainingMediaCount=111
    

    While the API call for standard-res (up to 16 megapixel) unlimited photos is:

    /resumable/upload/plus/v1whitelisted/mediasets/me.cinstant/mediaBackground?uploadType=resumable&imageSize=1024&mediaType=photo&storage=**standard**&remainingMediaCount=111
    

提交回复
热议问题