Explore the following guides and examples to integrate PathStack into your system.
import requests url = "https://api.pathstack.io/token" payload = { "username": "username", "password": "password" } headers = {"Content-Type": "application/json"} response = requests.request("POST", url, json=payload, headers=headers) access_token = response.json()['data']['access_token'] refresh_token = response.json()['data']['refresh_token']