Name : perl-WWW-SmugMug-API
| |
Version : 1.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:17:31
|
Group : Development/Libraries/Perl
| Source RPM : perl-WWW-SmugMug-API-1.03-lp154.1.1.src.rpm
|
Size : 0.10 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl wrapper for the SmugMug API
|
Description :
Provides a low-level wrapper for the 1.2.0 version of the SmugMug API. Calls requiring a SessionID use the one returned from the last successful login call (login_anonymously, login_withPassword, or login_withHash), and calls requiring the API key use the sm_api_key parameter passed to the constructor; these provided parameters cannot be overridden. All other required parameters must be provided by the caller.
The wrapper will silently discard any parameters that it does not recognise.
Method names are the API methods with the \'smugmug.\' prefix removed and \'_\' substituted for \'.\' (e.g. \'smugmug.login.withPassword becomes login_withPassword())
Methods return hash references. The value of the \'stat\' key will be \'ok\' if the call succeeded, \'fail\' otherwise. Fail responses contain three key/value pairs: \'stat\', \'message\', and \'code\'. Message is an informative message about the failure. The code will be positive for an error thrown by SmugMug and negative for one from the wrapper. The following error codes are known:
* -3
Session not initialised. Before calling any other methods, you must successfully call login_anonymously, login_withPassword, or login_withHash.
* -2
HTTP error. Message will be the complete error (e.g. \'404 Not Found\')
* -1
Missing required parameter. All parameters listed in the documentation as required must be provided, or the wrapper will reject the call.
* 1
Invalid login.
* 3
Invalid session.
* 4
Invalid user.
* 5
System error.
* 6
Wrong format. (Image format when uploading, I believe)
* 9
Invalid album.
* 11
Ancient version.
* 15
Empty set.
* 18
Invalid API key.
NOTE: While this wrapper does provide a method called images_upload, per the best practices recommendation of the SmugMug developers we use a binary uploading method (HTTP PUT) to upload the image; it is not an implementation of the API method smugmug.images.upload. images_uploadFromURL is not provided.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-W/15.4/noarch |