function authorize() { Podio::setup(CLIENT_ID, CLIENT_SECRET, array("session_manager" => "PodioSession")); if (Podio::is_authenticated()) { echo "already logged in"; } else { try { Podio::authenticate_with_password('*****@*****.**', '1Animation2'); // Authentication was a success, now you can start making API calls. } catch (PodioError $e) { // Something went wrong. Examine $e->body['error_description'] for a description of the error. } } }