2017-05-11 16 views
0

既にグループデータについて https://developers.google.com/google-apps/contacts/v3/#retrieving_a_single_contact_groupの指示に従っています。Googleの連絡先を使用してグループの賢明な連絡先を取得するapi

https://www.google.com/m8/feeds/groups/default/fullを使用してグループワイズデータを取得しようとするたびに、指定された配列のグループIDだけが他のデータ(名前、携帯番号など)を提供していません。指定された配列の

一つは、より良い

[0] => Array 
    (
     [gd$etag] => "YDwreyM." 
     [id] => Array 
      (
       [$t] => http://www.google.com/m8/feeds/groups/rahmanarafat13%40gmail.com/base/6 
      ) 

     [updated] => Array 
      (
       [$t] => 1970-01-01T00:00:00.000Z 
      ) 

     [category] => Array 
      (
       [0] => Array 
        (
         [scheme] => http://schemas.google.com/g/2005#kind 
         [term] => http://schemas.google.com/contact/2008#group 
        ) 

      ) 

     [title] => Array 
      (
       [$t] => System Group: My Contacts 
      ) 

     [content] => Array 
      (
       [$t] => System Group: My Contacts 
      ) 

     [link] => Array 
      (
       [0] => Array 
        (
         [rel] => self 
         [type] => application/atom+xml 
         [href] => https://www.google.com/m8/feeds/groups/rahmanarafat13%40gmail.com/full/6?v=3.0 
        ) 

      ) 

     [gContact$systemGroup] => Array 
      (
       [id] => Contacts 
      ) 

    ) 

は、[ 'GDの$名']や[ 'GDます$ phoneNumbe']のような他の値を取得しないでください理解のために以下に与えられています。

どうすればいいですか?

任意のクエリは、それは、「ラベル」として連絡先グループを考える方が良いでしょうコメント

答えて

0

にお問い合わせください場合。それらは単に連絡先に存在する属性です。 APIからグループを取得すると、そのラベルに関するメタデータ情報(基本的には名前のみ)が表示されますが、そのラベルが適用された連絡先は表示されません。

グループ内の連絡先を取得する場合は、連絡先リストエンドポイントでgroup filterパラメータを使用します。 https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parametersを参照して、連絡先をupdated-minで取得します。 updated-mingroupに変更し、グループIDに値を設定してください(https://developers.google.com/google-apps/contacts/v3/reference#Parameters

+0

いいえ@Blakeは機能しません。 あなたはそれを意味しました https://www.google.com/m8/feeds/contacts/default/full?group=office ここで、グループはupdated-minに置き換えられ、officeは私のグループ(ラベル)IDです値 –

+0

グループIDは完全な原子スタイルのIDです。 '" http://www.google.com/m8/feeds/groups/[email protected]/base/2387528937582759825892758 " –

+0

yap @Blake私は昨日それを得ました。ありがとう.. :) –

関連する問題