SDK Installation & Setup
This guide will walk you through the process of installing the Glide SDK and making your first API call to leverage our telecom-powered security features.
Prerequisites
- Completed the Registration process and obtained your API credentials.
Overview
The Glide SDK provides a seamless interface to interact with Open Gateway services, allowing you to integrate advanced telecom-based security features into your applications. Our SDK supports multiple programming languages to fit your development needs.
Step 1: Set Up Your Project
First, let's create a new project directory and initialize it:
mkdir glide-demo
cd glide-demo
gradle init --type java-application
Step 2: Add the Glide SDK Dependency
Open the build.gradle
file and add the Glide SDK dependency inside the dependencies block:
dependencies {
// Other dependencies
// Glide SDK
implementation("com.glideapi:glide-sdk-java:1.0.2")
}
Optional: Step 3: Setup Environment Variables
As a best practice, you should store your credentials in environment variables instead of entering them directly into the SDK constructor.
To do this, create a new file called .env
in the src/main/resources
directory of your project and add the following:
GLIDE_CLIENT_ID=<your-api-key>
GLIDE_CLIENT_SECRET=<your-api-secret>
Replace <your-api-key>
and <your-api-secret>
with the values you received from the service dashboard.
The SDK will automatically pick up these environment variables when you initialize it. This behavior can be turned off by passing the useEnv
option as false
when initializing the SDK also passing the client ID and secret as options will override loading from the environment.
Step 4: Make Your First API Call
Now that you have installed the SDK and set up your environment variables, you can make your first API call.