Swift3 swift 3.0中的google plus集成问题
当我们在GTMOAuth2Authentication中构建swift 3.0中的始终获取身份验证失败时,您能帮助我吗Swift3 swift 3.0中的google plus集成问题,swift3,ios10,gtm-oauth2,Swift3,Ios10,Gtm Oauth2,当我们在GTMOAuth2Authentication中构建swift 3.0中的始终获取身份验证失败时,您能帮助我吗 func finishedWithAuth(auth: GTMOAuth2Authentication!, error: NSError!) { let plusService :GTLServicePlus = GTLServicePlus.init() plusService.retryEnabled = true plusService.autho
func finishedWithAuth(auth: GTMOAuth2Authentication!, error: NSError!) {
let plusService :GTLServicePlus = GTLServicePlus.init()
plusService.retryEnabled = true
plusService.authorizer = GPPSignIn.sharedInstance().authentication
plusService.apiVersion = "v1"
let query : GTLQueryPlus = GTLQueryPlus.queryForPeopleGetWithUserId("me") as! GTLQueryPlus
plusService.executeQuery(query) { (ticket,person, error) -> Void in
if ((error) != nil) {
//Handle Error
} else {
// NSLog("Email= %@", GPPSignIn.sharedInstance().authentication.userEmail)
// NSLog("GoogleID=%@", person.identifier)
print(person)
print(person.aboutMe)
}
}
}