notifications
notifications(page: Int = 1, unreadOnly: Boolean): NotificationPage!Informations d'appel
Arguments
| Paramètre | Type | Valeur par défaut | Statut |
|---|---|---|---|
| page | Int | 1 | Facultatif |
| unreadOnly | Boolean | — | Facultatif |
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
}
}'