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
python -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
async def main():
glide = GlideClient(
client_id="<YOUR_CLIENT_ID>",
client_secret="<YOUR_CLIENT_SECRET>"
)
sim_swap_client = await glide.sim_swap.for_user(
phone_number="+555123456789"
)
sim_swap_res = await sim_swap_client.check()
print(sim_swap_res)
if __name__ == "__main__":
asyncio.run(main())