Created
May 21, 2013 18:53
-
-
Save jaysonlane/5622275 to your computer and use it in GitHub Desktop.
"Corrupt"/Auth-less Twitter Accounts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ([urlResponse statusCode] == 200){ | |
| NSLog(@"Good"); | |
| } | |
| else if ([urlResponse statusCode] == 400 || [urlResponse statusCode] == 401) { | |
| [_accountStore renewCredentialsForAccount:_selectedAccount completion:^(ACAccountCredentialRenewResult renewResult, NSError *error) { | |
| NSLog(@"Renewal result: %d", renewResult); | |
| //we don't actually need to inspect renewResult or error. | |
| if (error){ | |
| NSLog(@"error: %@", [error localizedDescription]); | |
| } | |
| }]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment