logo       

[Flickr APIs] log out: msg#00053

web.flickr.api

Subject: [Flickr APIs] log out

Hi,

I am making some local tests using the REST requests, I am using Flash
with the method load from the XML class.

For flickr methods that requires user authentication, if I pass my
email and a wrong password for the first time, the response is the rsp
xml error. Ok.

If after that I pass my email and the correct password, it returns the
right response xml. Ok.

If after that I change my password to a wrong password, it returns the
right xml again!
If I change the email, and the password for anything, and try again,
it continues to return the right xml...

Is that correct? Is there some method that I can call to logout
without having to close the application?

Below is a simple sample in Actionscript:

----------
APIKEY = "your api key here";//put your api_key here
REST_ENDPOINT = "http://www.flickr.com/services/rest/";
USEREMAIL = "youremail@yourdomain"
USERPASSWD = "yourpassword"
querystring =
"?method=flickr.test.login&api_key="+APIKEY+"&email="+USEREMAIL+"&password="+USERPASSWD
url = REST_ENDPOINT+querystring;
my_xml = new XML();
my_xml.onLoad = function(success){
if(success){
trace(this)
}else{
trace(error)
}
}
my_xml.load(url)
----------

If you run this code on Flash MX 2004, once you gained a successfull
login, you can re-test many times with different email/password that
the result will allways be the same, until you close the program and
restart.

--
Fabricio C Zuardi
http://idomyownstunts.blogspot.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise