1

私は以下を使用しています

http://www.ibm.com/developerworks/opensource/library/x-phpgooglecontact/index.html

Google に対して認証し、ユーザーの連絡先を取得します。ただし、このシステムでは Google の oAuth 統合を使用することをお勧めします。

これを行う最も簡単な方法または簡単な例は何ですか?

本質的に私はこれを変更したい

      $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, 'cp');
  $gdata = new Zend_Gdata($client);
  $gdata->setMajorProtocolVersion(3);

  // perform query and get feed of all results
  $query = new Zend_Gdata_Query(
    'http://www.google.com/m8/feeds/contacts/default/full');
  $query->maxResults = 1000;
  $query->setParam('sortorder', 'descending');
  $feed = $gdata->getFeed($query);

ユーザーが自分の電子メールやパスワードを提供する必要がないように、oauth2 を使用するようになりました。

4

1 に答える 1

0

私の問題を解決する次のチュートリアルを見つけました。

http://leandroardissone.com/post/1330339821/google-contacts-php

于 2011-10-24T21:40:16.750 に答える