Проблема интеграции с Google Plus в Swift 3.0

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)
        }
    }

}

когда мы строим, всегда получая аутентификацию, терпят неудачу в swift 3.0 в GTMOAuth2Authentication, поэтому, пожалуйста, помогите мне

0 ответов

Другие вопросы по тегам