Logout via REST gives 'Invalid API Key' error
jberd126
Registered Users Posts: 36 Big grins
When I try to logout from a previously logged in session via REST, I get an 'Invalid API Key' error.
Request:
http:// api.smugmug.com/hack/rest/?method=smugmug.logout&SessionID=XXXX
Response:
-J
Request:
http:// api.smugmug.com/hack/rest/?method=smugmug.logout&SessionID=XXXX
Response:
< rsp stat="fail"> < err code="18" msg="invalid API key" /> < /rsp>According to the documenation only the Login commands should require the API key.
-J
0
Comments
api.smugmug.com/hack/rest/?method=smugmug.logout&&SessionID=sid
Produces this response:
I also tried passing the APIkey and the SessionID, and I also tried passing the APIkey instead of the SessionID. Nothing seems to work. It doesn't really effect my script, but I hate to leave all these open sessions behind. Any sugestions?
Thanks,
-Brian
http://www.dgrin.com/showthread.php?t=11191 You need to call beta.mg to access the Beta APIs though: http://api.smugmug.com/hack/rest/beta.mg
-J