You need to authorize before testing the code to revoke credentials.