I don't know if this is even possible, let alone how to do it, but what I'd like to develop is a perl script that would accept as input a 10 digit USA/Canada telephone number and match it to a record in Google Contacts, then return the name associated with that record.
One problem is that Google does not attempt to normalize numbers in their contacts database, therefore in a given contact the phone number might include spaces, hyphens, parenthesis, etc. Basically all non-numeric characters would need to be stripped before the comparison is made. The only exception is where ::: appears, that seems to separate two similar items of the same type in the same field, such as two different phone numbers of the same type. And in any one record there are several fields that can potentially contain phone numbers. Anyway what I really want to to is type in scriptname.pl 9999999999 (with the 9999999999 replaced by the actual ten digit number) and have it find the record containing that number in my Google Contacts, and print the associated name, and I have no idea where to start. Any help would be appreciated!In reply to How can I get a single record from Google Contacts based on a phone number? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |