Récupérer vos tokens

GET

/token

Exemples


GET /token HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json
      
    

Format de la réponse


{
  "status": 1,
  "message": "OK",
  "tokens": [
      {
          "name": "Best token ever",
          "api_token_id": 15,
          "api_token": "yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTY1NiIsImlhdCI6MTUxOTEyMDg2NX0.ZnGgbDC0OI3hPm2UXyl4rxU9JlpMTMBcTJT8RVgJbtQ",
          "created_at": "2018-02-20 11:01:05"
      },
      {
          "name": "Security much wow",
          "api_token_id": 17,
          "api_token": "yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTY1NiIsImlhdCI6MTUxOTEyMTAzN30.U7zCuSxK5zFcaockRvoBRUxVaPOYoK2v3t6fre5Cb4k",
          "created_at": "2018-02-20 11:03:57"
      }
  ]
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <tokens>
    <name>Best token ever</name>
    <api_token_id>Best token ever</api_token_id>
    <api_token>yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTY1NiIsImlhdCI6MTUxOTEyMDg2NX0.ZnGgbDC0OI3hPm2UXyl4rxU9JlpMTMBcTJT8RVgJbtQ</api_token>
    <created_at>2018-02-20 11:01:05</created_at>
  </tokens>
  <tokens>
    <name>Security much wow</name>
    <api_token_id>Best token ever</api_token_id>
    <api_token>yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTY1NiIsImlhdCI6MTUxOTEyMTAzN30.U7zCuSxK5zFcaockRvoBRUxVaPOYoK2v3t6fre5Cb4k</api_token>
    <created_at>2018-02-20 11:03:57</created_at>
  </tokens>
</response>