I am new to gallery and my programing skills are limited to mostly perl scriptint.
My wife is a photographer with limited time. For some clients, she curently uses G2 to allow client access to proofs via the web. right now it is a serveral step process to set this up. I would like to automate this so that all she has to do is drop the client photos into a directory and have a cron script do the rest.
At a high level the script would do the following
check a specific directory to see if my wife has deposited a new folder with client photos
if a folder exists
set up a G2 user account
set the account permissions
upload the photos to the newly created G2 user account.
Not sure how to even get started so if someone could point me in the right direction here I would be greatly apreciated.
thanx
Posts: 8601
see embed.php and modules/core/classes/GalleryEmbed.class
require embed.php in your script and do GalleryEmbed::init() and then you can use the embed and core APIs to do these things. GalleryEmbed has a function to add a user, there are core APIs to adjust permissions, add albums and items.
make sure to end with GalleryEmbed::done()