getImageEXIF with new API
devbobo
Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
I have been playing with the getImageEXIF method on the new API, and I keep getting 'Invalid User' when I pass the current SessionID.
However, I found something interesting, it seems if you pass null as the sessionID, the function returns correctly.
Weird
David
However, I found something interesting, it seems if you pass null as the sessionID, the function returns correctly.
Weird
David
0
Comments
Good job, thanks for sharing!
By null you mean empty string? I mean, your request would have something like
[PHP]<param></param>[/PHP]
</PARAM></P>instead of
[PHP]<param>1231g23812h31928312h</param>?[/PHP] </P>Or you skipping the whole parameter "line"?
Cheers!
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<string/>
</value>
</param>
</params>
</methodResponse>
At least it doesn't return a "invalid user", note this seems to only work for a certain period of time of I log out.
nikolai...by null I mean...
<param><value><string></string></value></param>
Also, found that 'getImages' returns completely the correct data when null is passed as the SessionID.
Cheers,
David
SmugMug API Developer
My Photos
Thanks!
frigging VB, cannot show xml tags properly..
It looks like null session ID can be a serious security breach. User ID is realy easy to get a hold of.. Don, if you're reading this, I would personally ask for a favor to close these "door" immediately..
Thanks for sharing, David!
to get xmls tag show as a normal text?
There's no "door". It's just treated as if it's an anonymous login.
Don
Fixed, I think.
Don
Thanks Don
SmugMug API Developer
My Photos
Thanks for the response!
I guess if this were mentioned in the help section we would not have this issue raised at all:-) Just a thought:-)
Have a good night!
Cheers! (taking another sip of 30 yo port:-)
Nik