Test your credentials by fetching your shop details. The Fourthwall API uses Basic Authentication - simply pass your username and password with each request.
# Basic Auth - the simplest way to authenticatecurl -u "your_username:your_password" \ https://api.fourthwall.com/open-api/v1.0/shops/current
import requestsfrom requests.auth import HTTPBasicAuth# Basic Auth is built into the requests libraryresponse = requests.get( "https://api.fourthwall.com/open-api/v1.0/shops/current", auth=HTTPBasicAuth("your_username", "your_password"))print(response.json())
The -u flag in cURL automatically handles Basic Auth encoding for you. Under the hood, it creates an Authorization: Basic <base64-encoded-credentials> header.
You should receive a response with your shop details:
{ "id": "sh_abc123", "name": "My Shop", "currency": "USD", ...}