【问题标题】:How can I get Google contact list from swift 3?如何从 swift 3 获取 Google 联系人列表?
【发布时间】:2017-04-07 07:55:33
【问题描述】:

我正在尝试从 swift 3 获取联系人列表?我尝试使用以下 URL 从 Google 获取联系人,但我有 401. That's an error.。请帮我解决一下。

https://www.google.com/m8/feeds/contacts/default/full/?access_token=[TOKEN]&alt=json&callback=?

【问题讨论】:

    标签: ios swift swift3 google-contacts-api


    【解决方案1】:

    试试这个:

    if UIApplication.shared.canOpenURL(_YOUR_URL_) {
                    UIApplication.shared.open(_YOUR_URL_, completionHandler: { (success) in
                        print("Success") // Prints success
                    })
                }
    

    【讨论】:

    • _YOUR_URL_ 是?
    猜你喜欢
    • 1970-01-01
    • 2017-06-22
    • 2019-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-08
    • 1970-01-01
    相关资源
    最近更新 更多