0

我正在使用聯繫人API獲取域中所有聯繫人的列表,以向用戶提供建議。使用Google Apps的域共享聯繫人API

我使用「https://www.google.com/m8/feeds/contacts/example.com/full」作爲URL。 有人說過「只有管理員可以請求屬於例子的條目」。

如何使用API​​獲取域名聯繫人列表? 我可以使用此URL「https://www.google.com/contacts/?hl=en&tab=wC#contacts/group/27/Directory」從瀏覽器訪問聯繫人。

請幫忙...... !!!

EDIT 1(與Jay參考):
我的代碼是: service.setHeader("GData-Version", "1.0"); ContactFeed contactEntry= service.getFeed(new URL(" https://www.google.com/m8/feeds/gal/example.com/full?alt=json&[email protected] "), ContactFeed.class);

+2

見http://stackoverflow.com/questions/16281326/how-to-get-google-profile-info-including-custom-fields-from-an-apps-domain用戶 –

+0

我試了一下,得到com.google.gdata.util.ServiceForbiddenException:Forbidden 版本3.0不支持。 –

+0

嘗試設置service.setHeader(「GData-Version」,「1.0」);沒有工作 –

回答

相關問題