← Retour à la liste des opérations
Requête

notifications

notifications(page: Int = 1, unreadOnly: Boolean): NotificationPage!

Informations d'appel

Point d'accès

https://api.revclic.com/

Méthode

POST

Authentification

Jeton Bearer (JWT)

Retourne

NotificationPage!

Arguments

ParamètreTypeValeur par défautStatut
pageInt1Facultatif
unreadOnlyBooleanFacultatif

Exemple de requête GraphQL

query GetNotifications($page: Int, $unreadOnly: Boolean) {
  notifications(page: $page, unreadOnly: $unreadOnly) {
    items { id event { code label } context hasBeenRead }
    currentPage
    totalResults
    totalPages
  }
}

Exemple de variables

{
  "page": 1,
  "unreadOnly": true
}

Payload JSON complet

{
  "query": "query GetNotifications($page: Int, $unreadOnly: Boolean) {\n  notifications(page: $page, unreadOnly: $unreadOnly) {\n    items { id event { code label } context hasBeenRead }\n    currentPage\n    totalResults\n    totalPages\n  }\n}",
  "variables": {
    "page": 1,
    "unreadOnly": true
  }
}

Exemple cURL à tester

curl -X POST https://api.revclic.com/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "query": "query GetNotifications($page: Int, $unreadOnly: Boolean) {\n  notifications(page: $page, unreadOnly: $unreadOnly) {\n    items { id event { code label } context hasBeenRead }\n    currentPage\n    totalResults\n    totalPages\n  }\n}",
  "variables": {
    "page": 1,
    "unreadOnly": true
  }
}'

Types associés