Glide SDK Client
The Glide SDK Client is your gateway to integrating powerful security features into your applications. Available for multiple programming languages, it provides a streamlined interface to interact with Glide's suite of APIs.
Prerequisites
Before diving in, ensure you have:
- A Glide account (If not, check our Registration guide)
- Your API credentials (available in the Glide Dashboard)
- Installed the Glide SDK (See Getting Started)
Initializing the Glide Client
The Glide Client is the core object you'll use to access all Glide APIs. You can initialize it in two ways:
- Programmatically with your API credentials
- Using environment variables (recommended for enhanced security)
If both methods are used, programmatic settings take precedence.
GlideClient Configuration
Property | Type | Environment Variable | Description |
---|---|---|---|
clientId | string | GLIDE_CLIENT_ID | Your Glide API Client ID |
clientSecret | string | GLIDE_CLIENT_SECRET | Your Glide API Client Secret |
redirectUri | string | GLIDE_REDIRECT_URI | Your Glide API Redirect URI |
internal.authBaseUrl | string | GLIDE_AUTH_BASE_URL | The Glide Internal Auth Base URL |
internal.apiBaseUrl | string | GLIDE_API_BASE_URL | The Glide Internal API Base URL |
Initialization Examples
import { GlideClient } from "glide-sdk";
async function main() {
const glide = new GlideClient({
clientId: "<YOUR_CLIENT_ID>",
clientSecret: "<YOUR_CLIENT_SECRET>",
});
// Use the glide client to interact with the Glide APIs
}
main().catch(console.error);
Properties
The GlideClient instance has the following properties:
1. simSwap
The simSwap
property provides access to the SimSwapClient
for interacting with the Sim Swap API.
2. numberVerify
The numberVerify
property provides access to the NumberVerifyClient
for interacting with the Number Verify API.
3. magicAuth
The magicAuth
property provides access to the MagicAuthClient
for interacting with the Magical Auth API.