Does changeAlbumSettings work ?
mattmattbobatt
Registered Users Posts: 17 Big grins
I'm plugging along and I'm using the java xmlrpc client so I can't see my xml output. Just wanted to check to make sure this call really works.
If I call getAlbumInfo I get exactly what I expect back but if I fuss with the settings and call changeAlbumSettings nothing changes and I don't get errors.
If I call getAlbumInfo I get exactly what I expect back but if I fuss with the settings and call changeAlbumSettings nothing changes and I don't get errors.
0
Comments
Yay mattmattbobatt!
What's on the list of features? Or is that too much too soon?
Need beta testers?
Dgrin FAQ | Me | Workshops
I could tell you but them I'd have to kill you.
No, really, It's too soon.
Hey Matt,
Did you get this working in the end ?
whenever I call changeAlbumSettings the responseXML contains empty xml elements.
grrrr.....on't you hate when a cool new feature (in your code) should work, but doesn't !!!!
Cheers,
David
SmugMug API Developer
My Photos
OK matt has be beating the crap out of every other feature and is left with one huge hole and that is the changeAlbumSettings call. Hmm speaking in third person is a sign of madness isn't it ? Anyway I am getting back to it. I was avoiding it for a while because the RPC calls are done from some very convenient java code that I inherited. It's nice but makes debugging a real pain. I finally have a dump of the xml code that I'm sending in the rpc. Can anyone tell me where I'm going wrong ? I'm sure as soon as I hit "post" it will come to me but facing humiliation is always a good motivator. Sorry that it's hard to read. I used DreamWeaver to format it a little and it likes to put everything on separate lines. The POST puts it on a single line so this is a little easier to read.
<?xml version="1.0" encoding="ISO-8859-1"?>
<methodCall>
<methodName>
changeAlbumSettings
</methodName>
<params>
<param>
<value>
changed to protect the innocent
</value>
</param>
<param>
<value>
<int>
403136
</int>
</value>
</param>
<param>
<value>
<struct>
<member>
<name>
Share
</name>
<value>
<int>
1
</int>
</value>
</member>
<member>
<name>
Filenames
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Password
</name>
<value></value>
</member>
<member>
<name>
SortDirection
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
AlbumID
</name>
<value>
<int>
403136
</int>
</value>
</member>
<member>
<name>
LastUpdated
</name>
<value>
2005-02-18 10:29:06
</value>
</member>
<member>
<name>
Title
</name>
<value>
Monkeys
</value>
</member>
<member>
<name>
EXIF
</name>
<value>
<int>
1
</int>
</value>
</member>
<member>
<name>
External
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Comments
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
CategoryID
</name>
<value>
<int>
1
</int>
</value>
</member>
<member>
<name>
Watermark
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Keywords
</name>
<value></value>
</member>
<member>
<name>
Printable
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Protected
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
ImageCount
</name>
<value>
<int>
2
</int>
</value>
</member>
<member>
<name>
SubCategoryID
</name>
<value>
<int>
63119
</int>
</value>
</member>
<member>
<name>
HighlightID
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Header
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
TemplateID
</name>
<value>
<int>
1
</int>
</value>
</member>
<member>
<name>
Public
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
CommunityID
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
SortMethod
</name>
<value>
Position
</value>
</member>
<member>
<name>
Larges
</name>
<value>
<int>
1
</int>
</value>
</member>
<member>
<name>
Originals
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Description
</name>
<value></value>
</member>
<member>
<name>
Clean
</name>
<value>
<int>
0
</int>
</value>
</member>
<member>
<name>
Position
</name>
<value>
<int>
3
</int>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
dgrin forum engine does not handle html/xml well. The only possible way to post I found is surround it with php blocks and do not preview/edit. It would work this one time.
So, what was that data you were posting?;-)
I was posting my XML-RPC data for changeAlbumSettings. Was hoping someone might see something that I'm missing.
.. in the way I described, someone actually may be able to read it and might get some answers for you, neh?
Cheers!
Has anyone else ever made changeAlbumSettings work ?
[PHP]
<?xml version="1.0"?>
<methodCall>
<methodName>changeAlbumSettings</methodName>
<params>
<param>
<value><string>mysessionIDhere</string></value>
</param>
<param>
<value><int>403136</int></value>
</param>
<param>
<value><struct>
<member><name>Description</name>
<value><string>come on</string></value>
</member>
<member><name>Keywords</name>
<value><string>You Me It</string></value>
</member>
<member><name>Public</name>
<value><boolean>1</boolean></value>
</member>
<member><name>Share</name>
<value><boolean>1</boolean></value>
</member>
</struct></value>
</param>
</params>
</methodCall>
[/PHP]
And this reply:
[PHP]
<PRE>---GOT---
HTTP/1.1 200 OK
Date: Wed, 02 Mar 2005 04:26:42 GMT
Server: Apache
Set-Cookie: smstatus=10.27.27.13.1109737602227981; path=/; max-age=3024000; domain=.smugmug.com
Accept-Ranges: bytes
X-Powered-By: smugmug/1.1.0
Cache-Control: private, max-age=1, must-revalidate
Pragma:
Set-Cookie: SMSESS=myCookieHere; path=/; domain=.smugmug.com
Connection: close
Content-Type: text/xml
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<string/>
</value>
</param>
</params>
</methodResponse>
---END---
</PRE><PRE>---EVALING---[31 chars]---
new XML_RPC_Value("", 'string');
---END---</PRE>
[/PHP]
I get identical results...i also posted another thread in the hope that someone may do something about it.
Extremely frustrating
David
SmugMug API Developer
My Photos