import ContactsManager
// Create user information
let userInfo = UserInfo(
userId: "user-123",
email: "user@example.com",
phone: "+15555555555",
fullName: "John Doe",
avatarUrl: "https://...", // Optional
metadata: ["key": "value"] // Optional
)
// Initialize the SDK
try await ContactsService.shared.initialize(
withAPIKey: "your-api-key",
token: "user-auth-token", // Optional but recommended for security
userInfo: userInfo
)
// Enable background sync if needed
ContactsService.shared.enableBackgroundSync()