TrustLabs SDK - Simple Usage

Note: This example uses a mock server endpoint. Replace with your actual API endpoint in production.

Method 1: Auto-initialization with Meta Tags

Configure the SDK using meta tags - the simplest approach:

Contact: john@example.com

Support: support@company.com

Method 2: Manual Initialization

User:

Admin:

Method 3: One-liner with Auto-detection

Sales: sales@company.com

Marketing: marketing@company.com