Skip to main content
Version: Python

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:

  1. A Glide account (If not, check our Registration guide)
  2. Your API credentials (available in the Glide Dashboard)
  3. 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:

  1. Programmatically with your API credentials
  2. Using environment variables (recommended for enhanced security)
info

If both methods are used, programmatic settings take precedence.

GlideClient Configuration

PropertyTypeEnvironment VariableDescription
client_idstringGLIDE_CLIENT_IDYour Glide API Client ID
client_secretstringGLIDE_CLIENT_SECRETYour Glide API Client Secret
redirect_uristringGLIDE_REDIRECT_URIYour Glide API Redirect URI
auth_base_urlstringGLIDE_AUTH_BASE_URLThe Glide Internal Auth Base URL
api_base_urlstringGLIDE_API_BASE_URLThe Glide Internal API Base URL
use_envboolTrueWhether 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.