We want to do “twitter auth” and “requesting user’s email address” by using ios system twitter account.
This means using “TWTRLoginMethod.SystemAccounts”.
But accoding to the following document, we must use TWTRLoginMethod.WebBased.
https://docs.fabric.io/ios/twitter/request-user-email-address.html
Isn’t we able to using “TWTRLoginMethod.SystemAccounts”?
the following requests can get email.
(using whitelisted twitter application consumerKey)
1. Twitter.sharedInstance().logInWithMethods([.WebBased]) {}
2. Twitter.sharedInstance().logInWithMethods([.SystemAccount])
(1. or 2.)
let client = TWTRAPIClient.clientWithCurrentUser()
let 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) { response, data, connectionError in }
if we must not use “TWTRLoginMethod.SystemAccounts”, is there other way?
thank you your help.