ContactService¶
-
public interface
ContactService
¶ A service for CRUD operations on
Contact
. Provides an interface to perform CRUD operations on Rapidpro Contacts, including mapping from an external ID to a Rapidpro UUID and communications over HTTP with Rapidpro.
Methods¶
addToGroup¶
create¶
-
void
create
(String externalId, String phone, Contact contact)¶ Creates a new Contact in Rapidpro and a mapping from an external ID to a Rapidpro UUID.
Parameters: - externalId – The external ID used to map to a Rapidpro Contact
- phone – The unique phone number of the Contact
- contact – Object containing the necessary fields to create a new Contact