问题
I want to write a command line program to add a contact to GoogleMail. WWW::Contact::GoogleContact appears only to be able to get things from Google.
回答1:
I think you want the Google Data API instead. The Contacts API is read-only.
回答2:
I have just added loads more fields to the output of WWW::Contact::GoogleContactsAPI but, as Brian says, it's currently read-only. I will try to get this released soon then I will look at making it two-way.
Is anyone else using/working with this module? Want to alpha test my code?
This module is one subclass of a general Contacts class, though it's very minimalist as it stands. So, rather than just deliver the data in the form chosen by Google, I wanted to find a good "standard" data model. The best I found was http://www.opensocial.org/Technical-Resources/draft/Social-Data.xml#Person though it's probably rather too Facebook and not Outlook/Exchange enough. Anyone know a good contacts data model?
回答3:
Have you looked at WWW:Mechanize?
来源:https://stackoverflow.com/questions/831535/is-there-a-perl-module-to-interface-to-google-contacts-api