Connexion
POST /v1/auth
Crée un nouveau jeton et renvoie les informations de base de l'utilisateur.
X-STL-Secret-Key est une clé unique qui authentifie votre application. Vous devez la demander à SportsTrackLive.
Requête
bash
curl -X POST -H "Content-Type: application/json" -H "X-STL-Secret-Key: {{secret_key}}" -d '{
"email": {{email}},
"password": {{password}},
"origin": "external"
}' "https://api.sportstracklive.com/v1/auth"http
POST /v1/auth HTTP/1.1
Host: api.sportstracklive.com
Content-Type: application/json
X-STL-Secret-Key: {{secret_key}}
{
"email": {{email}},
"password": {{password}},
"origin": "external"
}Réponse
200 OK — application/json; charset=utf-8
json
{
"user": {
"user_name": "john.doe",
"language": "fr",
"email": "john.doe@gmail.com",
"measure_unit": "measure_metric",
"time_zone": "UTC",
"large_profile_picture_url": "https://api.sportstracklive.com/[...].png"
},
"token": "0358e965bc3bccfe0eea1b6f77dda6def670195d6fb4c7f4ac8da73abe22935b"
}Le token renvoyé est utilisé comme en-tête X-STL-Token pour les points d'accès authentifiés qui suivent.
