| Lurk all you'd like, but why not register and post some pics? Registering also makes it easier to find the good stuff. Need help? |
|
|||||||
| Register | FAQ | Shooters | Calendar | Reviews | Tutorials | Gallery | Books | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
technicolored
|
API 1.2.1 beta
Hi Guys,
We decided to push out an early release of 1.2.1 so that you guys can start playing. It's not feature complete, and there will probably get a few bugs. At this point, I haven't had a chance to do the documentation, so below I have listed the new endpoints and the input parameters for the new methods. I'm away at Glacier for the next week, so I will look at any issues when I get back. Cheers, David REST: http[s]://api.smugmug.com/services/api/rest/1.2.1/ JSON: http[s]://api.smugmug.com/services/api/json/1.2.1/ PHP: http[s]://api.smugmug.com/services/api/php/1.2.1/ XML-RPC: http[s]://api.smugmug.com/services/api/xmlrpc/1.2.1/ smugmug.albums.applyWatermark
smugmug.albumtemplates.changeSettings
smugmug.watermarks.changeSettings (pro only)
smugmug.products.get
smugmug.propricing.getPortfolio (pro only)
smugmug.propricing.getAlbum (pro only)
smugmug.propricing.getImage (pro only)
Updated Methods... smugmug.albums.get smugmug.users.getTree now accepts a ShareGroup parameter, which can be a single or an array of share group tags, which will expose any private albums for a given sharegroup when you call this method on another user's account. smugmug.images.getInfo now returns Latitude, Longitude and Altitude if set. smugmug.images.changeSettings now accepts Latitude, Longitude and Altitude |
|
|
|
|
|
#2 |
|
technicolored
|
bump
|
|
|
|
|
|
#3 |
|
Beginner grinner
Join Date: Sep 2007
Posts: 5
|
I'm still having trouble with:
users.getTransferStats: http://api.smugmug.com/services/api/...APIKey=API_KEY &method=smugmug.users.getTransferStats&SessionId=S ESSION_ID &Month=9&Year=2007 (takes a long time, then just errors out with: The requested URL could not be retrieved) albums.getStats: http://api.smugmug.com/services/api/...APIKey=API_KEY &method=smugmug.albums.getStats&SessionId=SESSION_ ID &Month=9&Year=2007&AlbumID=3504830&heavy=true just gives me overall stats - not detailed per-image. I've also tried heavy=True,TRUE,1 The previous api 1.1.1 would return a heavy listing, but all the image stats were 0 (posted another thread about that) I've been trying to access my per-image stats in the last couple versions, and never have been able to get them. |
|
|
|
|
|
#4 | |
|
technicolored
|
Quote:
yes, I am aware of this issue... however, it requires me spending some time with Don to figure it out. It's on my list of stuff that needs to be fixed. Cheers, David |
|
|
|
|
|
|
#5 |
|
Beginner grinner
Join Date: Oct 2007
Posts: 2
|
Hmm... logging in anonymously appears to be broken.
This works: http://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.login.anonymously&APIKey=<removed This doesn't: http://api.smugmug.com/hack/rest/1.2.1/?method=smugmug.login.anonymously&APIKey=<removed> The first is returning what appears to be the correct XML document, the seconds is giving me nothing... no error message, nothing. |
|
|
|
|
|
#6 | |
|
technicolored
|
Quote:
the endpoints for 1.2.1 are different... http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.login.anonymously&APIKey=<removed> |
|
|
|
|
|
|
#7 |
|
Major grins
|
smugmug.orders.get & smugmug.orders.ship = method not found.
smugmug.users.getDisplayName = invalid API key
__________________
http://scottvickers.smugmug.com |
|
|
|
|
|
#8 | |
|
technicolored
|
Quote:
only the methods currently listed in this thread are implemented. I will check out the issue with smugmug.users.getDisplayName |
|
|
|
|
|
|
#9 | |
|
Major grins
|
Quote:
__________________
http://scottvickers.smugmug.com |
|
|
|
|
|
|
#10 |
|
#Grinner
Join Date: Nov 2004
Posts: 506
|
I suspect this is probably a dumb question, but I'm afraid I haven't been keeping up... :(
Is the change in the structure of the REST responses intentional? REST 1.2.0 <?xml version="1.0" encoding="utf-8" ?> - <rsp stat="ok"> <method>smugmug.login.withPassword</method> - <Login PasswordHash="..." AccountType="Pro" FileSizeLimit="25165824"> <Session id="..." /> <User id="..." NickName="..." DisplayName="Luke Church" /> </Login> </rsp> REST 1.2.1 <?xml version="1.0" encoding="utf-8" ?> - <rsp stat="ok"> <method>smugmug.login.withPassword</method> - <Login SessionID="..." PasswordHash="..." AccountType="Pro" FileSizeLimit="25165824"> <User id="..." NickName="..." DisplayName="Luke Church" /> </Login> </rsp> Note the change from <session id = foo> to <Login SessionID= foo> This testing is being done shoddily, I was just prodding the API to see whether things have improved since last time, to decide whether it's worth investing time in developing something. If a rigourous demo case is required to answer the question let me know. All the best, Luke |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|