I do need autheticate in podio by email & password, but everthing print "failed login" and oauthToken is equal to "nil"
I've tried with:
var podio = PKTClient(APIKey: idClient, secret: secretCode)
var tarea = podio.authenticateAsUserWithEmail(tFi_User.text,
password: tFi_password.text)
if podio.isAuthenticated{
println("succeed Login")
println("\(podio.oauthToken)")
}
else{
println("failed login")
println("\(podio.oauthToken)")
}
then, I tried again with PodioKit class:
PodioKit.setupWithAPIKey(idClient, secret: secretCode)
PodioKit.authenticateAsUserWithEmail(tFi_User.text,
password: tFi_password.text)
if PodioKit.isAuthenticated(){
println("succeed Login")
}
else{
println("failed login")
}
but, I've got the same result: "failed login"