Confirmed users
632
edits
(→Format) |
(→Gmail) |
||
Line 92: | Line 92: | ||
=== Gmail === | === Gmail === | ||
The current plan is to use the [https://developers.google.com/google-apps/contacts/v3/ Google Contacts API, v3] to retrieve contacts from users' gmail accounts. Ideally, we can re-use some, most, or all of the [https://github.com/mozilla-b2g/gaia/blob/master/shared/js/contacts/import/gmail/gmail_connector.js Gaia Gmail Connector code] to expedite this importation. | The current plan is to use the [https://developers.google.com/google-apps/contacts/v3/ Google Contacts API, v3] to retrieve contacts from users' gmail accounts. Ideally, we can re-use some, most, or all of the [https://github.com/mozilla-b2g/gaia/blob/master/shared/js/contacts/import/gmail/gmail_connector.js Gaia Gmail Connector code] to expedite this importation. | ||
{| class="wikitable" | |||
|- | |||
! destination !! source | |||
|- | |||
| id || id | |||
|- | |||
| published || published | |||
|- | |||
| updated || updated | |||
|- | |||
| name[0] || name/fullName | |||
|- | |||
| honorificPrefix[0] || name/namePrefix | |||
|- | |||
| givenName[0] || name/givenName | |||
|- | |||
| additionalName[0] || name/additionalName | |||
|- | |||
| familyName[0] || name/familyName | |||
|- | |||
| honorificSuffix[0] || name/nameSuffix | |||
|- | |||
| email[0] || email | |||
|- | |||
| email[0].type[0] || email @rel | |||
|- | |||
| email[0].pref || email @primary | |||
|- | |||
| email[0].value || email @email | |||
|- | |||
| adr[0] || structuredPostalAddress | |||
|- | |||
| adr[0].type[0] || structuredPostalAddress @rel | |||
|- | |||
| adr[0].pref || structuredPostalAddress @primary | |||
|- | |||
| adr[0].streetAddress || structuredPostalAddress/street (or pobox) | |||
|- | |||
| adr[0].locality || structuredPostalAddress/city | |||
|- | |||
| adr[0].region || structuredPostalAddress/region | |||
|- | |||
| adr[0].postalCode || structuredPostalAddress/postcode | |||
|- | |||
| adr[0].countryName || structuredPostalAddress/country | |||
|- | |||
| tel[0] || phoneNumber | |||
|- | |||
| tel[0].type[0] || phoneNumber @rel | |||
|- | |||
| tel[0].pref || phoneNumber @primary | |||
|- | |||
| tel[0].value || phoneNumber @uri (or text value) | |||
|- | |||
| org[0] || organization/orgName | |||
|- | |||
| jobTitle[0] || organization/orgTitle | |||
|- | |||
| bday || birthday/when | |||
|- | |||
| note[0] || content | |||
|- | |||
| category[0] || '''''hardcoded to "gmail"''''' | |||
|- | |||
|} | |||
== UX == | == UX == |