pub async fn create(
    id: &str,
    data: NewContactData,
    client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<CreateResponse>, Error>
Expand description

Creates a new contact

At least one of local_address or internationalised_address must be set. Contact numbers must be in +cc.xxxxxxxxxx format where c is the country dialing code and x is the country local number

Arguments

  • id - The desired contact ID
  • data - Data for the new contact
  • client_sender - Reference to the tokio channel into the client