|
|
Thread Tools | Display Modes |
|
#1
|
|
|
technicolored
|
API Update - 18th November 2010
G'day Guys,
Tonight we shipped some new functionality for api version 1.2.2... http://wiki.smugmug.net/display/API/API+1.2.2 Coupons - Added album restrictions support for coupons. - smugmug.coupons.create and smugmug.coupons.modify now appect an AlbumIDs parameter...a comma separated string of AlbumIDs to restrict the coupon to. - also added smugmug.coupons.restrictions.albums.add and smugmug.coupons.restrictions.albums.remove to modify restrictions on an individual basis - smugmug.coupons.get and smugmug.coupons.getInfo now return a Restrictions element if any restrictions exist. BoutiquePackaging - Added boutique packaging support to all album methods. FeaturedAlbums - Added smugmug.featured.albums.get Cheers, David |
|
|
|
|
#2
|
||
|
Know me through my lens..
|
Quote:
Getting a System.Xml.XmlException: Root element is missing on login.
__________________
Kevin L. Kitchens "Know me through my lens." My smugmug: http://peiklk.smugmug.com My site: http://www.photographyvoice.com [POTD, Blog, News, & more!] |
|
|
|
||
|
#3
|
||
|
Big grins
|
Well... my app is now reporting invalid api key... where it worked earlier. I'm not using oauth. That error actually failed my app in windows phone certification. Did anything change around keys?
Quote:
|
|
|
|
||
|
#4
|
|
|
technicolored
|
Nothing changed from an API perspective with respect to logging in...but some work has been done on 'logging in' further down our stack. I've just double checked a few random apps that use basic auth...and they all seem to be working fine.
If your app is using an existing session, I suggest that you reset any SessionIDs or cookies that might be in use and obtain a new SessionID. Cheers, David |
|
|
|
|
#5
|
||
|
Know me through my lens..
|
Quote:
Code that's worked for many many months is now failing post-update.
__________________
Kevin L. Kitchens "Know me through my lens." My smugmug: http://peiklk.smugmug.com My site: http://www.photographyvoice.com [POTD, Blog, News, & more!] |
|
|
|
||
|
#6
|
|
|
Big grins
|
Thie login is broken for many of my users including myself...
JSON: { "message": "invalid user", "method": "smugmug.albums.get", "stat": "fail", "code": 4 } This is with accounts that were working before the API upgrade. Can we get this fixed? Thanks, Brian |
|
|
|
|
#7
|
|
|
Big grins
|
Technically, the log in is returning OK. It is the the albums.get call that is not liking the resulting session id that is generated from the login. There is no caching of old sessions in my app.
Login returns: JSON: { "Login": { "User": { "URL": "http:\/\/photos.snapwoodstudios.com", "DisplayName": "radian09", "id": 111111, "NickName": "radian09" }, "AccountStatus": "Active", "PasswordHash": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "SmugVault": false, "Session": { "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" }, "FileSizeLimit": 25165824, "AccountType": "Pro" }, "method": "smugmug.login.withPassword", "stat": "ok" } Get albums returns: JSON: { "message": "invalid user", "method": "smugmug.albums.get", "stat": "fail", "code": 4 } Last edited by snapwood; Nov-19-2010 at 04:58 AM. |
|
|
|
|
#8
|
|
|
Big grins
|
Thats what im seeing to
|
|
|
|
|
#9
|
|
|
technicolored
|
As stated earlier, changes were made to our 'login' functionality lower in our stack than the api.
Developers who are experiencing issues are most likely not calling login methods over https. I'm working on a new release that will throw the correct error message. Cheers, David |
|
|
|
|
#10
|
|
|
Big grins
|
That is a bad assumption. Here are my urls with the responses. I am using HTTPS:
https://api.smugmug.com/services/api...PIKey=myapikey JSON: { "Login": { "User": { "URL": "http:\/\/photos.snapwoodstudios.com", "DisplayName": "radian09", "id": 567279, "NickName": "radian09" }, "AccountStatus": "Active", "PasswordHash": "xxxxxxxxxxxxxxxxxxxxxxxx", "SmugVault": false, "Session": { "id": "xxxxxxxxxxxxxxx" }, "FileSizeLimit": 25165824, "AccountType": "Pro" }, "method": "smugmug.login.withPassword", "stat": "ok" } https://api.smugmug.com/services/api...xxxxxxxxxxxxxx JSON: { "message": "invalid user", "method": "smugmug.albums.get", "stat": "fail", "code": 4 } |
|
|
|
|
#11
|
|
|
Big grins
|
Same here. All my requests have the root url:[FONT=Consolas][FONT=Consolas][FONT=Consolas]
https://secure.smugmug.com/services/api/json/1.2.2/[/FONT][/FONT][/FONT][FONT=Consolas][FONT=Consolas] [/FONT][/FONT] |
|
|
|
|
#12
|
||
|
Big grins
|
Quote:
Is that by any chance possible to keep the HTTP login method enabled for another week or so, so that developers have time to re-submit their app to Apple ? Would be amazing! Thanks, Greg. |
|
|
|
||
|
#13
|
||
|
technicolored
|
Quote:
I'm currently investigating your problem, I need to reproduce internally before I can work out what is going on. |
|
|
|
||
|
#14
|
|
|
Big grins
|
Thank you! This is the second time in less than a month that 'changes' have broken mine (and other) apps. I would be happy to test these changes before rollout if there was a method. I'd be happy to submit tests (or point you to how to run our apps) if that would help. Basically I'll do anything to avoid breakages like this...
Thanks, Brian |
|
|
|
|
#15
|
||
|
technicolored
|
Quote:
I'd love to help out...but the recent changes were in relation to side jacking exploits. And I think I'd have a tough time getting the changes rolled back. Sorry, David |
|
|
|
||
|
#16
|
|
|
Big grins
|
Thanks for being on it david.
I'm curious, what IS a side jacking exploit? |
|
|
|
|
#17
|
|
|
technicolored
|
just google side jacking or firesheep.
|
|
|
|
|
#18
|
|
|
technicolored
|
Brian/Stephen,
I've reproduced the issue internally and have tracked down where the problem is...but I need to get more info on the recent underlying changes and that person is currently asleep. One workaround is to only request login methods over https, and make all other calls over http. Hope this helps a little bit. Cheers, David |
|
|
|
|
#19
|
|
|
technicolored
|
Heading to bed, just a recap for everyone...
- calls to smugmug.login.* need to be done over https - all other calls should be done over http (temporary workaround) Cheers, David |
|
|
|
|
#20
|
|
|
Know me through my lens..
|
Just tried it again and it worked... Still using http
__________________
Kevin L. Kitchens "Know me through my lens." My smugmug: http://peiklk.smugmug.com My site: http://www.photographyvoice.com [POTD, Blog, News, & more!] |
|
|
|
| Tell The World! | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| API Update - Printmarks (27th August 2010) | devbobo | SmugMug APIs, Hacks & Tricks | 4 | Aug-29-2010 04:23 PM | |
| API Update - 18th March 2010 | devbobo | SmugMug APIs, Hacks & Tricks | 0 | Mar-19-2010 12:55 AM | |
| API Update - 6th March 2010 | devbobo | SmugMug APIs, Hacks & Tricks | 3 | Mar-18-2010 03:01 PM | |
| Delayed effect of create and update functions in the API | flyingdutchie | SmugMug APIs, Hacks & Tricks | 8 | Dec-11-2007 10:37 AM | |
| API Update Archive | devbobo | SmugMug APIs, Hacks & Tricks | 0 | Oct-09-2007 04:16 PM | |
| Thread Tools | |
| Display Modes | |
|
|