What is an SDK?
SDK stands for Software Development Kit. Think of it as a ready-made toolkit that developers can use to add specific features to their app or website—without having to build everything from scratch. Our SDK lets you embed the complete HRMS Sync journey for corporate onboarding into your own platform. This means your corporate users can seamlessly complete the entire process without ever leaving your dashboard.Why use Tartan SDK?
🚀 Fast to integrate – Just a few lines of code and you’re up and running. 🎯 On-brand experience – Keep users on your platform with a seamless, embedded flow. 🔒 Secure & reliable – Built with enterprise-grade security. If you’re a developer or product owner looking to offer a smooth, white-labeled verification experience, this SDK is for you. Let’s dive into how you can get started. 👇How does it work?
- You generate a token using the generate token API.
- Utilize the access token to launch the SDK via the Initiate Function.
- Monitor SDK Events to track and evaluate the user journey on Tartan Sync SDK.
Embedding Tartan SDK
To add the SDK on the frontend, add the following script tag in your index.html file, preferably inside the head tag:Initiating Tartan SDK
The script tag exposes a window object called hrmsSyncSdk in the website. hrmsSyncSdk consists of 2 functions : startJourney() & closeJourney().SDK Events
SDK events are notifications or signals sent by the SDK to let your system know when something important has happened—like when a user starts or completes a task. Think of them as real-time updates from the SDK that you can use to track user actions or trigger next steps in your app. The Tartan Sync SDK emits events to track a user’s progress throughout the journey. You can capture these events using the onEvent option, which is passed as the second argument (options) in the startJourney() function. The onEvent option takes a function with two parameters: eventName and eventData. These provide detailed information about each event, allowing you to implement custom business logic based on the event type and its associated data.Event Name | Event Data | Description |
---|---|---|
dataTransferMode.select | { flowType : "HRMS" } | Triggered when the user selects the desired mode for data transfer. |
hrms.select | { hrmsName: "ZingHR" } | Occurs when the user chooses an HRMS from the available options. |
hrmsConnectionParams.submit | { hrmsName: "ZingHR" } | Activated when the user submits connection parameters for the selected HRMS. |
dataSelection.submit | { hrmsName: "ZingHR" } | Initiated when the user submits the selection of data to be shared with the vendor. |
authType.select | { authType: "Basic" } | Occurs when the user selects the authentication type required for Push API integration. |
pushApiDocs.get | { authType: "Basic" } | Activated when the user clicks the “Get Documentation” CTA for Push API integration. |
sdkEvents.connectionConfigurationCompleted | { hrmsName: "ZingHR", connectionStatus: "success" } | Triggered when the user successfully completes the connection configuration process. |
sdkWindow.close | – | Triggered when the user clicks the Close button on the SDK window. |