Quickstart
This guide will help you get started with the SIM Swap API. You will learn how to initialize the SDK, send a SIM Swap request, and handle the response.
Prerequisites
Before you begin, you need to have the following:
- subscribe to the SIM Swap service, (guide here)
Step 1: Get your API Credentials
To get your API Credentials, you can go to the SIM Swap Product Page and click on "Manage on Provider" to access the service dashboard. For a full guide on how to get your credentials, you can refer to the Registration guide.
Step 2: Create a new project
Create a new folder and enter the folder from a terminal.
mkdir sim-swap-test
cd sim-swap-test
Step 3: Initialize the SDK
pip -m venv venv
source venv/bin/activate
pip install glide-sdk
Step 4: Send a SIM Swap request
Create a new file index.py
and initialize the SDK with your API Key.
index.py
from glide_sdk import GlideClient
def main():
glide = GlideClient
sim_swap_client = glide.sim_swap.forUser(
phone_number="+555123456789"
)
sim_swap_res = sim_swap_client.check()
print(sim_swap_res)