// iOS

SBDSKTicket.createTicket(withTitle: TITLE, userName: USER_NAME) { (ticket, error) in
guard error == nil else {
    // Handle error.
}

// The ticket is created.
// The customer and agent can chat with each
// other by sending a message through the
// ticket.channel.sendUserMessage() or
// sendFileMessage().
...
}