Créer un Token
Pour créer un jeton d'authentification en utilisant une méthode d'authentification basique (Basic Authentication) avec votre api_key
et api_secret
, vous pouvez suivre les étapes suivantes. Assurez-vous d'avoir accès à votre API et d'avoir les informations d'authentification nécessaires (clé API et secret).
Authentification
POST
https://api.digitalpaye.com/v1/auth
Headers
Name
Value
X-Environment
Production
Authorization
Basic bGl2ZV9kaWdpdGFscGF5ZTY3OTg3Njo1OWJlYzU4Ni0yOWYwLTRjMWMtOGE2ZC0wY2MyMDk0ZjZhMzQ=
Response
{
"statusCode": 200,
"message": "Successful",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55SWQiOiI4NDM3ZGQxMy04OWFjLTQ1ZTEtYTdhYS1jOGJhMDk1ZDFiMjciLCJpYXQiOjE3Mjg2MzQyMDMsImV4cCI6MTcyODYzNDgwM30.A3-AD5mGawbhv9nUmio0k7c-hhx5K7lqnuPFCziJJqE",
"exp": 1728634803
}
}
curl --location --request POST 'https://api.digitalpaye.com/v1/auth' \
--header 'X-Environment: Production' \
--header 'Authorization: Basic i0yOWYwLTRjMWMtOGE2ZC0bGl2ZV9JlYzU4NiwY2MyMDk0ZjZhMzQkaWdpdGFscGF5ZTY3OTg3Njo1OW=' \
--data ''
Dernière mise à jour
Cet article vous a-t-il été utile ?