dilbert
May-06-2005, 10:46 PM
I am trying to use smugmug.categories.create and smugmug.subcategories.create with XMLPRC::Lite and perl and neither one is working.
Currently I am able to login.withPassword and get albums, categories and subcategories, and create albums.
However, neither of the above calls seem to work, the categories.create creates categories with blank names, and the subcategories.create doesn't seem to do anything. I can't seem to get a result from either call. Below is the perl code for each that I am using:
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.categories.create', $sessionid, "SomeCategory")
-> result;
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.subcategories.create', $sessionid, "SomeSubCategory", 0)
-> result;
This is the album create and it does work:
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.albums.create', $sessionid, $name, $category_id)
-> result;
Currently I am able to login.withPassword and get albums, categories and subcategories, and create albums.
However, neither of the above calls seem to work, the categories.create creates categories with blank names, and the subcategories.create doesn't seem to do anything. I can't seem to get a result from either call. Below is the perl code for each that I am using:
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.categories.create', $sessionid, "SomeCategory")
-> result;
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.subcategories.create', $sessionid, "SomeSubCategory", 0)
-> result;
This is the album create and it does work:
my $picresult = XMLRPC::Lite
-> proxy($proxyurl)
-> call('smugmug.albums.create', $sessionid, $name, $category_id)
-> result;