API methods for "collect photos" feature

2»

Comments

  • SSSDevSSSDev Registered Users Posts: 4 Beginner grinner
    edited October 27, 2011
    Oh and sorry for the delay. I posted the first two messages out of order.
    Certainly based in the explanation this is not working as expected. Did you try this after 19th, when Devbobo said he fixed the issue?

    The fix did in fact work correctly.

    Thanks again!
  • MSkaffariMSkaffari Registered Users Posts: 147 Major grins
    edited November 15, 2011
    SSSDev wrote: »
    I have ran into some other issues using the SmugMug API 1.2.2. This problem is consistent to a majority of issues so if it were fixed, or explained, that would help a whole lot :)

    On an image delete:
    $f->images_delete("ImageID={$image['id']}");
    

    and on Image Collect/Copy:
    $f->images_collect("AlbumID={$destid}", "ImageID={$image['id']}", "ImageKey={$image['Key']}");
    $f->images_uploadFromURL("AlbumID={$destid}", "URL={$image['OriginalURL']}");
    

    There is a problem if the image is a copy itself, it will not remove the image or copy/collect the image since it originated from another source. Is that correct behavior?

    Edit: It may be on images that have been collected.

    Thanks!

    With API 1.3.0 you can remove a collected image from an album without deleting the original. Check http://wiki.smugmug.net/display/API/show+1.3.0?method=smugmug.images.delete. If you provide AlbumID the image will be deleted only from that album. Naturally if you delete the original image the collected copies also are deleted.
  • David PLDavid PL Registered Users Posts: 80 Big grins
    edited November 15, 2011
    MSkaffari wrote: »
    With API 1.3.0 you can remove a collected image from an album without deleting the original. Check http://wiki.smugmug.net/display/API/show+1.3.0?method=smugmug.images.delete. If you provide AlbumID the image will be deleted only from that album. Naturally if you delete the original image the collected copies also are deleted.


    That's excellent. Just tried it out and it works great. It's good to now have a way to uncollect images. Thank you.
Sign In or Register to comment.