-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error code for every particular error in a particular domain #42
Comments
I'm not sure I understand your request. Could you please elaborate or give an example? Thank you in advance. |
So, for example, take STTwitterOS implementation, scroll down to line #85. Here you create an error and pass a code equal to '0':
Idea is to create a special error code for every particular error in a particular domain. You can define enum for every particular domain or one for the entire project:
And later you use a code with error and client, who received that error can be used to compare that code.
|
Thank you for this explanation. You're totally right. I'll add errors soon. |
You are welcome, thanks for understanding. |
Hello can you plz help me I'm using STTwitter and using this method for reverse authentication but i'm getting error like this
here what I'm using
need your help |
Are you sure there is a Twitter account set up in iOS Settings? (or OS X Preferences if you're on OS X) |
Hi, [_twitter postMediaUploadData:[NSData dataWithContentsOfFile:filePath] fileName:@"Test" uploadProgressBlock:^(NSInteger bytesWritten, NSInteger totalBytesWritten, NSInteger totalBytesExpectedToWrite) { Thanks in Advance :) |
From Twitter API documentation: "Currently, the only type exposed in our entities is photo". So I don't think you can upload videos. |
Hi, I need your help. I'm trying different solutions for days :( I sign in into twitter in my app, I have the authorization. And everything is OK. In that moment I save oAuthToken, oAuthTokenSecret, username... and all the info that I can with the purpose of don't ask again user for his username/password. So the next time that user go into the app, I just want to post with the twitter's info that I have saved. But I can't "reconnect" or "reopen" the session. Please, could anyone help me?? I'm really struggling :/ This is what I'm trying: STTwitterAPI *twitter = [STTwitterAPI twitterAPIWithOAuthConsumerName:nil
And the ERROR that I'm getting is the first one that I control: ERROR1: Error Domain=STTwitterOS Code=0 "This system cannot access Twitter." UserInfo=0x14d06d30 {NSLocalizedDescription=This system cannot access Twitter.} |
Well, I think that the wrong point is when I ask for twitterAPIOSWithFirstAccount. Because I haven't got twitter installed in my phone. So, How could I create an account from the saved info that I have of the first user's authentication?? Thank you in advance! |
It will be useful if you need a special action after error handling.
The text was updated successfully, but these errors were encountered: