I've had a busy couple of afternoons quashing bugs and enhancing phpSmug further. This release sees the re-introduction of anonymous method call caching (Ticket #18), enableCache() now checks cache directory is writeable (Ticket #19), die_on_error is now acknowledged consistently. If die_on_error is NOT set, it's up to the application developer to check getErrorCode and getErrorMessage after each method call. (Ticket #20), I've added clearCache() function to easily empty the cache. (Ticket #22) and I've Stopped caching the results of failed method calls when die_on_error is set. (Ticket #23).
Fixed a tiny typo I made by including an extra "}" in phpSmug (line 203) (Ticket #17). This has been removed in phpSmug 1.0.9.
I forgot to take into account the ImageKey returned by image_upload() and image_uploadFromURL(), and AlbumKey returned by album_create(). As of rev 1.0.7/1.1.5, these functions now return an array holding the ID and key. Thanks to devbobo for pointing this out so quickly.
I've updated phpSmug to support the new security features introduced. You can find more details of the new security measures here.
I've been meaning to sort this out for ages, but completely forgot. Thankfully b-root reminded me by logging Ticket #14. phpSmug (as of rev 1.0.5 and 1.1.3) now uses SSL/HTTPS for all login.with* methods to ensure login information is not sent across the wire in the clear.
I've updated the example.php file in the phpSmug 1.0.x to branch to take into account the "Heavy" argument. Whilst this isn't strictly needed in the example.php, it does cause confusion as it's the first parameter, and the example was only providing the nickname parameter. Continue reading ►