Skip to main content
Version: Python

SDK Installation & Setup

This guide will help you get started with Glide by going through the process of installing the SDK and making your first API call.

Prerequisites

You have already retrieved your credentials from the service dashboard. If you haven't done this yet, please refer to the Registration guide.

Overview

The Glide SDK is a set of libraries that allow you to interact with the services provided by the Open Gateway. The SDKs are available in multiple languages and are designed to make it easy to integrate Glide services into your application.

Step 1: Setup Project

To get started, you need to create a new project or open an existing one. To do this you can run the following command:

mkdir glide-demo
cd glide-demo
python3 -m venv venv
source venv/bin/activate

Step 2: Install SDK

Next, you need to install the Glide SDK to the newly created project.

pip install glide-sdk

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 root 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.