Skip to content

Instantly share code, notes, and snippets.

@jaysonlane
Created May 21, 2013 18:53
Show Gist options
  • Save jaysonlane/5622275 to your computer and use it in GitHub Desktop.
Save jaysonlane/5622275 to your computer and use it in GitHub Desktop.
"Corrupt"/Auth-less Twitter Accounts
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