Fetch album by path/title?

Hobosalesman

Joined: 2008-09-12
Posts: 1
Posted: Fri, 2008-09-12 06:48

Hi, I'm trying to figure out the core API so I can integrate gallery with something I'm writing. I'm automatically creating albums for users on certain events, and I need to test if a user has an album already created. I know the parent album, owner, and the title, what's the best way to check if it exists?

I have some ugly solution like fetchAllItemIdsByOwnerId(), then loop through each and check fetchParentSequence() for the right parent.

fetchItemIdByPath() will not fetch an album?

Any suggestions? Thanks!