Hi guys,
I’m developing an iOS app that uses a Twitter SignIn. Since I’m on iOS, I implemented both the ACAccount framework (to check local Twitter account on the iPhone) and TwitterKit pod from Twitter.
I need the user email in order to create an account. I asked for a whitelist of my app on the twitter dashboard (granted so far). If I use the REST API, I manage to get the email through the show.json endpoint.
But when I get a local account with the ACAccountStore, I can’t get an email. I tried to call the REST API with this, but the email is never returned 
let twitterAccount = accountsArray[0] as! ACAccount
let url = NSURL(string: "https://api.twitter.com/1.1/users/show.json")
let request = SLRequest(forServiceType: SLServiceTypeTwitter, requestMethod: SLRequestMethod.GET, URL: url!, parameters: ["screen_name" : twitterAccount.username])
request.account = twitterAccount
request.performRequestWithHandler({ (data: NSData!, response: NSHTTPURLResponse!, error: NSError!) in
SocialNetworkManager.handleTwitterResponse(data, error: error)
})
My guest so far is that there is absolutely no link between my iOS app and my twitter app since when I use the ACAccount framework, I don’t use the consumer key and secret.
My question in the end is pretty simple : is there a way to retrieve the email using an SLRequest, or do I have to use TwitterKit to achieve this?
Thanks.