authenticate_with_password() public static method

public static authenticate_with_password ( $username, $password )
コード例 #1
0
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.
        }
    }
}