【问题标题】:How to get suggested / autocomplete emails from gmail api?如何从 gmail api 获取建议/自动完成电子邮件?
【发布时间】:2016-02-08 11:19:29
【问题描述】:

我使用了这个 api - https://www.google.com/m8/feeds/contacts/{userEmail}/full 但是这个 api 只会让你的朋友成为联系人。我想收到建议的邮件,例如下面的 SS。

我将在 ios 应用中使用。

【问题讨论】:

    标签: ios swift google-api gmail gmail-api


    【解决方案1】:

    gAuth.callAPI("https://www.google.com/m8/feeds/contacts/default/full?start-index=1&max-results=2500&alt=json", withHttpMethod: httpMethod_GET, postParameterValues: nil)

    max-results 由您决定。

    变量 i=1;

    gAuth.callAPI("https://www.google.com/m8/feeds/contacts/default/full?start-index=\(i)&max-results=2500&alt=json", withHttpMethod: httpMethod_GET, postParameterValues: nil)

    每次重复你应该在 i 上加 25 -> i += 25;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-19
      • 2018-11-03
      • 2019-07-12
      • 2014-09-07
      • 2021-08-14
      • 1970-01-01
      • 2019-08-04
      • 2014-08-19
      相关资源
      最近更新 更多