是否有官方的方式從雅虎的用戶地址簿中導入聯繫人?從python中的雅虎導入聯繫人
對於谷歌它真的很簡單:
import gdata
contacts_service = gdata.contacts.service.ContactsService()
contacts_service.email = email
contacts_service.password = password
contacts_service.ProgrammaticLogin()
query = gdata.contacts.service.ContactsQuery()
query.max_results = GOOGLE_CONTACTS_MAX_RESULTS
entries = contacts_service.GetContactsFeed(query.ToUri())
是否有雅虎這樣簡單的方法?
我發現了一些解決方案,它不使用api並且對於嚴肅的遊戲看起來很奇怪 - 例如ContactGrabber。 我找到了解決方案,它需要django-friends app中的BBAuth令牌。
但是,我想要官方,明確的方式來抓取來自雅虎的用戶聯繫人。它存在嗎?
UPD: 最後,我避免使用雅虎API,並使用django-openinviter爲我的目的。
但我仍在尋找使用api導入用戶聯繫人的示例。
謝謝!你可以改進你的解決方案,告訴,如何獲得指導? –
您可以通過在用戶登錄時向http://social.yahooapis.com/v1/me/guid發送HTTP GET請求來獲取用戶的guid。請參閱http://developer.yahoo.com/social/rest_api_guide /introspective-guid-resource.html –
感謝您的幫助。 –