Search code examples
google-apps-scriptgoogle-drive-apiphotopicasa

Saving a photo from mobile to GDrive


I want to take a photo with my mobile and save it to the Google Drive in a particular folder. I can, for example, wait my photo to be uploaded by Google's background service, and then save it with the script to Google Drive. But, unfortunately, code like

var albums = PicasaApp.getAlbums();

yields the error

"Object PicasaApp is not defined".

Is Picasa API no more accessible? How else can I send photos to Google Drive?


Solution

  • PicasaApp is not a native Apps Script built-in - it is a library that must be installed into every script that desires to use it.

    Library Code:
    https://script.google.com/d/M4_STIXUlBANK7DGOzGApRljzL90iNPPq/edit?usp=drive_web

    Follow the Apps Script procedures to Install a Library and you will be able to call its methods.

    Additional resources: