Installation
Install and initialize the ContactsManager SDK in your client application.Swift Package Manager
Add the ContactsManager package to your Swift project by adding it as a dependency in yourPackage.swift
file:- Go to File > Swift Packages > Add Package Dependency
- Enter the repository URL:
https://github.com/arpwal/contactsmanager-ios.git
- Specify a minimum version of
<latest-version>
from the repository - Click Next and complete the integration
SDK Initialization
Accessing the Service
The ContactsManager SDK provides a comprehensive API through theContactsService
class. Here’s how to access and use the service:
Error Handling
The SDK provides comprehensive error handling across all platforms:Important: Secure Your Users’ DataServer-side token generation is required to ensure the security of your users’ contact data. By handling authentication through your server, you establish a two-factor security model:
- API Key verification
- Server-generated token validation
- Authenticate users through your existing auth system
- Immediately revoke access when needed
- Protect against unauthorized data access
- Monitor and audit access patterns