摘要 |
The present invention discloses a method and an apparatus for importing and exporting a contact, and pertains to the communications field. The method includes: receiving a user identifier of a user and a data package that are sent by a terminal, where the data package includes a configuration file and a contact file that is corresponding to a contact group, the configuration file is used to store a correspondence between a group identifier ID of the contact group and a file ID of the contact file, and the contact file corresponding to the contact group is used to store contact information of a contact included in the contact group; acquiring, from the data package, the group ID of the contact group and the file ID of the contact file corresponding to the contact group; acquiring, from the data package according to the file ID of the contact file, the contact information of the contact included in the contact group; and storing a correspondence between the user identifier of the user, the group ID of the contact group, and the contact information of the contact included in the contact group. In the present invention, group information can be retained. |