2011-10-24 15 views
1

私はGoogleに認証し、ユーザーの連絡先を取得するには、次のZendFramework Googleの連絡先

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

を使用しています。しかし、私はこのシステムがGoogleのoAuth統合を利用することを望んでいます。

これを行う簡単な方法や簡単な例は何ですか?

基本的に私はそれが今、ユーザーが自分のメールやパスワードを与えなければならないことなのOAuth2を使用していることを、このような本

 $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); 

を変更したいです。

答えて

関連する問題