|
|
Thread Tools | Display Modes |
|
#1
|
|
|
technicolored
|
API 1.2.2 (soft release)
G'day All,
I am in the processing of implementing OAuth for the API. The first stage of the process was to refactor the API to make it possible to implement OAuth, as part of these changes I have done a lot of optimisation and implemented a few features that people having been asking for. So I am rolling this version out as a soft release, the released and beta api versions aren't going to change at this point as there is still quite a bit of work to complete the OAuth implementation. Here's a list of changes in no particular order...
eg. ....method=smugmug.albums.get&Extras=LastUpdated,G eography
Cheers, David |
|
|
|
|
#2
|
|
|
Big grins
|
Niiice!!!
Wow, this is a real improvment! I can't wait (and won't) to start testing this!
|
|
|
|
|
#3
|
||
|
Big grins
|
Quote:
Does version 1.2.2 also have all of the methods listed in the 1.2.1 wiki implemented?: http://wiki.smugmug.com/display/SmugMug/1.2.1 Thanks for all your work on this |
|
|
|
||
|
#4
|
||
|
technicolored
|
Quote:
yes, except for all the communitiy methods (i believe) |
|
|
|
||
|
#5
|
||
|
David Underhill
|
Quote:
|
|
|
|
||
|
#6
|
|
|
Big grins
|
Dumb question... pretty and strict... do they accept true/false and 1/0 ?
Shan |
|
|
|
|
#7
|
|
|
Big grins
|
Bugs...
Hi!
The smugmug.friend.get method returns this: {"stat":"fail","code":3,"message":"invalid session"} after this request (JSON): method=smugmug.friends.get&SessionID=<sessionId> The sessionID is just fine as I can add a friend w/o a hitch. (using the 1.2.2 endpoint) && In the watermark struct returned by watermarks.get the variable dissolve is returned as a string, maybe it should be returned as an int? (JSON 1.2.2) && The dgrinn documentation for watermak.create is wrong. int Dissolved should be int Dissolve /Adam Last edited by AdamN; Apr-14-2008 at 11:38 AM. |
|
|
|
|
#8
|
||
|
technicolored
|
Quote:
|
|
|
|
||
|
#9
|
||||
|
technicolored
|
Quote:
Quote:
Quote:
Thanks |
|||
|
|
||||
|
#10
|
|
|
Big grins
|
Todays crop...
Ok, here goes:
Sharegroups.getInfo, create, results in "The remote server returned an error: (500) Internal Server Error" Alsos theres a "waterwark" typo in smugmug.images.removeWaterwark /Adam |
|
|
|
|
#11
|
||
|
technicolored
|
Quote:
|
|
|
|
||
|
#12
|
|
|
technicolored
|
the above bug fixes should be live now
|
|
|
|
|
#13
|
||
|
Smugization Master
|
Quote:
David
__________________
Smugization Central (WolfSnap.com) Twitter: @WolfSnap Facebook: http://www.facebook.com/WolfSnapDesigns SmugMug & Wordpress Customization - WolfSnap.com | Custom Domains |
|
|
|
||
|
#14
|
||
|
technicolored
|
Quote:
|
|
|
|
||
|
#15
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#16
|
|
|
Big grins
|
Another day, anoter bug to be squashed :-)
Ok...
Here goes! smugmug.propricing.getPortfolio getAlbum, getImage w/o any optionals works just fine, but with a call like this: "method=smugmug.propricing.getPortfolio&SessionID= e0d0da5a0bf9808fcc2ffb995392030a&ProductType=[\"CommonPrint\",\"Merchandise\",\"Download\"]" you get an answer like this: "{\"stat\":\"ok\",\"method\":\"smugmug.propricing. getPortfolio\"}" which is not as bad as an internal 500 but not quite as good as an array of products... If you call it like this: "method=smugmug.propricing.getPortfolio&SessionID= e0d0da5a0bf9808fcc2ffb995392030a&ProductID=[10040,10043,10048]" or like this: method=smugmug.propricing.getPortfolio&SessionID=e 0d0da5a0bf9808fcc2ffb995392030a&ProductType=[\"CommonPrint\",\"Merchandise\",\"Download\"]&ProductID=[10040,10043,10048]"" you get this: {\"stat\":\"fail\",\"code\":16,\"message\":\"inval id data (no custom portfolio pricing set)\"}" Which is not true... Also a question. The logout method returns an error when trying to logout a anonymous session. I understand the logic behind that but isn't actually good manners to tell the server that a session is to be considred expired instead of waiting for the session to timeout and die? Last edited by AdamN; Apr-18-2008 at 12:42 PM. |
|
|
|
|
#17
|
||
|
technicolored
|
Quote:
method=smugmug.propricing.getPortfolio&SessionID=e 0d0da5a0bf9808fcc2ffb995392030a&ProductType[]=CommonPrint&ProductType[]=Merchandise&ProductType[]=Downloads&ProductID[]=10040&ProductID[]=10043&ProductID[]=10048 |
|
|
|
||
|
#18
|
||
|
Big grins
|
Quote:
/Adam |
|
|
|
||
|
#19
|
|
|
Big grins
|
1.2.2's anonymous albums.get() doesn't return same info as older revs
I've just noticed that the 1.2.2 albums.get() for anonymous calls don't return the same information as say earlier revs, eg 1.2.1.
I'm using the PHP endpoint. eg. 1.2.1 anonymous albums.get(Heavy=FALSE): Code:
Array
(
[0] => Array
(
[id] => 4644971
[Key] => vwxmf
[Title] => Photo of the Week
[Category] => Array
(
[id] => 0
[Name] => Other
)
[ImageCount] => 5
[Public] => 1
[Passworded] =>
)
[1] => Array
[...]
Code:
Array
(
[0] => Array
(
[id] => 4644971
[Key] => vwxmf
[Category] => Array
(
[id] => 0
[Name] => Other
)
)
[1] => Array
[...]
I've not tested any other methods yet, but as soon as I notice more diffs, I'll let you know. |
|
|
|
|
#20
|
||
|
technicolored
|
![]() something odd there...i'll check it out. Quote:
|
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|