Glide SDK
The Glide SDK is available for many programming languages and provides the entry point for interacting with the Glide APIs.
Prerequisites
Before you can use the SDK, you need to have a Glide account and an API key. You can get your API key from the Glide Dashboard. you can refer to the Registration guide.
Installation instructions for the SDK are available in the Getting Started guide.
Glide Client
The Glide Client is the instance of the SDK that you will use to interact with the Glide APIs. It is initialized with your API key and provides access to the Glide APIs.
You can initialize the Glide Client programmatically by providing your settings to the SDK or you can use environment variables to set your API key. If both are provided, the SDK will use the settings provided programmatically over the environment variables.
GlideClient Reference
Constructor
The GlideClient constructor takes an object with the following properties:
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 |
Example
from glide import GlideClient
def main():
glide = GlideClient(
clientId="<YOUR_CLIENT_ID>",
clientSecret="<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. 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.