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 |
---|---|---|---|
client_id | string | GLIDE_CLIENT_ID | Your Glide API Client ID |
client_secret | string | GLIDE_CLIENT_SECRET | Your Glide API Client Secret |
redirect_uri | string | GLIDE_REDIRECT_URI | Your Glide API Redirect URI |
auth_base_url | string | GLIDE_AUTH_BASE_URL | The Glide Internal Auth Base URL |
api_base_url | string | GLIDE_API_BASE_URL | The Glide Internal API Base URL |
use_env | bool | True | Whether to load settings from environment variables |
Initialization Examples
from glide_sdk import GlideClient
def main():
glide = GlideClient(
client_id="<YOUR_CLIENT_ID>",
client_secret="<YOUR_CLIENT_SECRET>"
)
# Use the glide client to interact with the Glide APIs
if __name__ == "__main__":
main()
Properties
The GlideClient instance has the following properties:
1. sim_swap
The sim_swap
property provides access to the SimSwapClient
for interacting with the Sim Swap API.
2. number_verify
The number_verify
property provides access to the NumberVerifyClient
for interacting with the Number Verify API.
3. magic_auth
The magic_auth
property provides access to the MagicAuthClient
for interacting with the Magical Auth API.