|
|
Thread Tools | Display Modes |
|
#1
|
|
|
SmugMug CEO & Chief Geek
|
new API release - Mar 4, 2005
Just rolled out a new API maint release. Mainly bug fixes, but a couple of new things too:
- NEW URL TO POST TO: api.smugmug.com/xmlrpc ... old URL will continue to work, but use the new one for all new releases. For uploads, continue to post to upload.smugmug.com. - anonymous bug found and erradicated. should be able to do all the anonymous calls, but of course, let me know if not. - changeAlbumSettings fixed. - getImageURLs empty Original/Larges fixed - getImages now orders ImageIDs by your chosen sortmethod. - documentation errors and typos fixed - getImages now takes a 3rd optional parameter, "TemplateID", so we can build the proper (new) AlbumURL for you. Generally, I'd leave this blank, but it's there just in case you're sure someone is using a non-Elegant template. - getAccountType returns "Pro", "Power", and "Standard" for the logged in user. Should make your UIs a little nicer since you don't have to ask your users what they have. - getAlbumTemplates will give you all the details on a users's album templates, which, of course, you can then use when creating an album instead of sending all the details. Your call. - updated and added URLs to the known apps/scripts/etc. Holler if yours is missing or wrong. That should do it. Enjoy, and cross your fingers that I didn't break anything. :) Don |
|
|
|
|
#2
|
||
|
SmugMug CEO & Chief Geek
|
Quote:
Clear as mud? Don |
|
|
|
||
|
#3
|
||
|
Last in line for pie
|
Quote:
(breathing rapidly into a paper bag) Thank you, thank you, thank you. I'll give it a go tonight (although I'm sure there are a few other people that will beat me to it ... I can't believe that Nik hasn't responded yet). I'll let you know if I find anything. |
|
|
|
||
|
#4
|
|
|
Darth SLR
|
Thank you!
I guess I'll have a fun weekend changing SE..
Seriously, very glad you finally had a chance to fix the stuff.. --- Guys, let's post your quick findings and confirmations here, so we don't all have to spend time over simple things, like what works and what not.. ---- 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 |
|
|
|
|
#5
|
||
|
Darth SLR
|
Since you've asked...
Quote:
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 |
|
|
|
||
|
#6
|
||
|
Darth SLR
|
Things get nasty at work..
Quote:
We had a mini-meltdown in the morning, and right about Don's post time another serious issue came back.. I guess we all gonna have some fun with our apps tonight... 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 |
|
|
|
||
|
#7
|
|
|
Darth SLR
|
First tests: "old" API seemed to work as it did. Or did not.
Changed URL to go to api instead of upload.
Recompiled SE and ran all basic scenarios (sorry, didn't build separate QA facility yet:-) Thus far SE only untilizes what I tend to call "old" API, most of them circa fall 2004 (with some bugfixes and friend/family/sorting related novelties circa January 2005). As a result of these tests, the good news is: what was working - still works Seems like no damage was done as a side effect of the new changes. As a partially bad news: what was not working - still does not. Again, I'm only talking about the old API, from which the only non-working method was anonymous login. "Partially": as far as I mostly interested in upload and other "priviledged" actions, anonymous login was of purely academic interest to me (translation: don't really care:-). Here's the list of verified APIs: Working:
*) As we established in a discussion below, this is a behavior by design. As far as anonymous session does not know about any particular account, most of the account specific methods will return empty/invalid resutls. So it works, but the limits of its work are really narrow.. I guess that concludes it for me - I'm gonna drop anonymous support from SE [/EDIT] Didn't test:
Hope you guys will bring more test cases! HTH 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 Last edited by Nikolai; Mar-05-2005 at 07:50 AM. |
|
|
|
|
#8
|
||
|
Darth SLR
|
Thank you, looks much better now..
Quote:
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 |
|
|
|
||
|
#9
|
||
|
Last in line for pie
|
Quote:
Nik, I didn't get home until late so I really haven't had a chance to do a very thorough test, but the one method I was most interested in was loginAnonymously. I was able to get it working correctly and call getImages/getAlbums/etc. without any problems. The session ID returned from the loginAnonymously seemed valid and without issue. -Aaron- |
|
|
|
||
|
#10
|
||
|
Darth SLR
|
Interesting...
Quote:
I guess it's a good news. Thank you for pitching in:-) Let me double check a few things, now that I know that it may work:-) I'll post the results asap. 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 |
|
|
|
||
|
#11
|
||
|
SmugMug CEO & Chief Geek
|
Quote:
Don |
|
|
|
||
|
#12
|
|
|
Darth SLR
|
Still cannot get it :-(
Aaron, Don
I tried again and again - still cannot get it work.. Can you guys do me a favor and look at this dump - may be you spot something stupid? PHP Code:
</FONT> Any idea what am I doing wrong? Same code works fine with non-anonymous login. TIA 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 |
|
|
|
|
#13
|
|
|
Darth SLR
|
A small comment (grasping the straws)
I thought maybe the problem was that I was logging in using https and was doing other requiests via plain http.
Did more tests, used various combinations - both secured, both non-secured, ect - same stuff..
__________________
"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 |
|
|
|
|
#14
|
||
|
SmugMug CEO & Chief Geek
|
Quote:
The problem is that you're not giving getAlbums any sort of indication which user you'd like albums for. :) Remember, you're logged in anonymously, so there's no user associated with your session. getAlbums() can only do one of two things: send you all albums on smugmug, or send you none. Since I don't want to send you all, I have to send you none. Hope that helps! Don |
|
|
|
||
|
#15
|
|
|
Cave canem!
|
Very nice, but still no support of statistics. Why not? If not now, when?
Thanks. |
|
|
|
|
#16
|
|
|
technicolored
|
changeAlbumSettings & getImageEXIF ?
Anyone else still having problems with changeAlbumSettings or getImageEXIF ?
For me, changeAlbumSettings is returning a response XML with unpopulated elements. And getImageEXIF is returning the error "Invalid User". Cheers, David |
|
|
|
|
#17
|
||
|
Major grins
|
Quote:
Thanks for the updates to the API. |
|
|
|
||
|
#18
|
||
|
Darth SLR
|
You beat me to it...
Quote:
Now that we established that I am stupid and that anonymous session does dont carry any account info, I have a question - what methods can possibly work with anonymous login? Thanks!
__________________
"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 |
|
|
|
||
|
#19
|
|
|
Last in line for pie
|
I noticed an issue (I think) with LoginAnonymously method.
(Side note: I can't figure out how to post XML without it getting stripped!) In Nik's example his method call has a methodCall/params/param/value node where the 1.0 string goes. Based on XML-RPC standards, shouldn't it be: methodCall/params/param/value/string ? In which case, this method call will fail. Don/Nik, thoughts? |
|
|
|
|
#20
|
||
|
Darth SLR
|
Standard also says
Quote:
Judging by the fact that I'm using the same "request generator" for all my RPC-XML calls and they all work (including getting session id from anonymous login), I think it's ok to skip it.. HTH 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 |
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|