As Twitter Support team granted the permission to access user’s email address, after that i regenerated the Access token and Token secret keys. Then I implemented the methods as described at https://docs.fabric.io/ios/twitter/request-user-email-address.html# for iOS . I successfully retrieved user details but still i am unable to get their email . Following is the method I am using in my code:
[[Twitter sharedInstance] logInWithMethods:TWTRLoginMethodWebBased completion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {
if (session) {
TWTRAPIClient *client = [TWTRAPIClient clientWithCurrentUser];
NSURLRequest *request = [client URLRequestWithMethod:@"GET"
URL:@"https://api.twitter.com/1.1/account/verify_credentials.json"
parameters:@{@"include_email": @"true", @"skip_status": @"true"}
error:nil];
[client sendTwitterRequest:request completion:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
}];
}
As the same application is being developed in Android , and I implemented the methods described at https://docs.fabric.io/android/twitter/request-user-email-address.html# . Here I got the user’s email address. So, please let me know if i am missing anything at iOS end.