• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks Does changeAlbumSettings work ?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Feb-18-2005, 08:05 AM
#1
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Does changeAlbumSettings work ?
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.
Old Feb-18-2005, 09:46 AM
#2
Baldy is offline Baldy
aka Chris MacAskill
Baldy's Avatar
Quote:
Originally Posted by mattmattbobatt
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.
By the way, mattmattbobatt is the guy revving our Mac uploader to bring it up to 2.0. So ya'll be nice and helpful because the Mac faithful will love you for it.
Old Feb-18-2005, 11:06 AM
#3
DavidTO is offline DavidTO
Mod Emeritus
DavidTO's Avatar
Quote:
Originally Posted by Baldy
By the way, mattmattbobatt is the guy revving our Mac uploader to bring it up to 2.0. So ya'll be nice and helpful because the Mac faithful will love you for it.
Yay mattmattbobatt!

What's on the list of features? Or is that too much too soon?

Need beta testers?
__________________
Moderator Emiritus
Dgrin FAQ | Me | Workshops
Old Feb-18-2005, 05:03 PM
#4
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Quote:
Originally Posted by DavidTO
Yay mattmattbobatt!

What's on the list of features? Or is that too much too soon?

Need beta testers?
I could tell you but them I'd have to kill you.

No, really, It's too soon.
Old Feb-28-2005, 06:06 PM
#5
devbobo is offline devbobo
technicolored
devbobo's Avatar
Did u get it to work ?
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
__________________
David Parry
SmugMug API Developer
My Photos
Old Mar-01-2005, 09:36 AM
#6
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Quote:
Originally Posted by devbobo
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
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>
Old Mar-01-2005, 09:39 AM
#7
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Wow. Looked good when I typed it. Looks like crap when I checked it. Sorry, not sure what happened. If you reply you can see it. Go figure ?
Old Mar-01-2005, 10:10 AM
#8
Nikolai is offline Nikolai
Darth SLR
Nikolai's Avatar
I mentioned that before...
Quote:
Originally Posted by mattmattbobatt
Wow. Looked good when I typed it. Looks like crap when I checked it. Sorry, not sure what happened. If you reply you can see it. Go figure ?
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?;-)
__________________
"May the f/stop be with you!"
Star*Explorer: on Dgrin, home; Master Class: open;
Class is in session, My Facebook, @DarthSLR, #NiksTips
member: NAPP, PPA, partner: Adobe
Comprehending life, universe and everything - one pixel at a time
Old Mar-01-2005, 10:24 AM
#9
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Quote:
Originally Posted by Nikolai
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.
Old Mar-01-2005, 10:56 AM
#10
Nikolai is offline Nikolai
Darth SLR
Nikolai's Avatar
Well, if you try to repost
Quote:
Originally Posted by mattmattbobatt
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!
__________________
"May the f/stop be with you!"
Star*Explorer: on Dgrin, home; Master Class: open;
Class is in session, My Facebook, @DarthSLR, #NiksTips
member: NAPP, PPA, partner: Adobe
Comprehending life, universe and everything - one pixel at a time
Old Mar-01-2005, 07:37 PM
#11
mattmattbobatt is offline mattmattbobatt OP
Big grins
mattmattbobatt's Avatar
Let's try this again. I POSTed this rpc call from a test page I made through a PEAR xlp-rpc client. Looks clean to me. I get an empty string from smugmug and no error but it doesn't update the album settings.

Has anyone else ever made changeAlbumSettings work ?

PHP Code:
<?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>
And this reply:
PHP Code:
<PRE>---GOT---
HTTP/1.1 200 OK
Date
Wed02 Mar 2005 04:26:42 GMT
Server
Apache
Set
-Cookiesmstatus=10.27.27.13.1109737602227981path=/; max-age=3024000domain=.smugmug.com
Accept
-Rangesbytes
X
-Powered-Bysmugmug/1.1.0
Cache
-Control: private, max-age=1must-revalidate
Pragma

Set-CookieSMSESS=myCookieHerepath=/; domain=.smugmug.com
Connection
close
Content
-Typetext/xml

&lt;?xml version=&quot;1.0&quotencoding=&quot;iso-8859-1&quot;?&gt;
&
lt;methodResponse&gt;
&
lt;params&gt;
 &
lt;param&gt;
  &
lt;value&gt;
   &
lt;string/&gt;
  &
lt;/value&gt;
 &
lt;/param&gt;
&
lt;/params&gt;
&
lt;/methodResponse&gt;

---
END---
</
PRE><PRE>---EVALING---[31 chars]---
new 
XML_RPC_Value(&quot;&quot;, 'string');
---
END---</PRE
Old Mar-01-2005, 07:56 PM
#12
devbobo is offline devbobo
technicolored
devbobo's Avatar
matt..
I get identical results...i also posted another thread in the hope that someone may do something about it.

Extremely frustrating

David
__________________
David Parry
SmugMug API Developer
My Photos
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump