So, I am using Google Contacts API to let users import their contacts from GMail.
I want the users to be able to select the contacts they want to import in my app, So currently I -
- GET a XML feed of all the contacts a user has.
- Parse it, and for each contact create a record in the imported_contacts table.
- Display the list to the user, with checkboxes, so the user can select which contacts it wants to import.
- When the user submits the form, I copy the selected contacts from imported_contacts to the main contacts table.
This works fine, but doesn't feel right. Can someone suggest a way to do so, without using a separate table(imported_contacts).