Everything you need to integrate Tandum into your application
curl -X POST https://api.tandum.io/v1/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "your-password"
}'Tandum API uses JWT (JSON Web Tokens) for authentication. Include the access token in the Authorization header:
/v1/auth/register/v1/auth/loginaccessToken in subsequent requests/v1/auth/refreshconst response = await fetch('https://api.tandum.io/v1/v1/bookings', {
method: 'GET',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
}
});
const bookings = await response.json();import requests
headers = {
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json'
}
response = requests.get('https://api.tandum.io/v1/v1/bookings', headers=headers)
bookings = response.json()