logs
logs(page: Int = 1, type: String, actorType: String, userId: ID, startDate: String, endDate: String, order: String = "desc"): LogPage!Información de la llamada
Argumentos
| Parámetro | Tipo | Valor predeterminado | Estado |
|---|---|---|---|
| page | Int | 1 | Opcional |
| type | String | — | Opcional |
| actorType | String | — | Opcional |
| userId | ID | — | Opcional |
| startDate | String | — | Opcional |
| endDate | String | — | Opcional |
| order | String | "desc" | Opcional |
Ejemplo de consulta GraphQL
query GetLogs($page: Int, $type: String, $actorType: String, $userId: ID, $startDate: String, $endDate: String, $order: String) {
logs(page: $page, type: $type, actorType: $actorType, userId: $userId, startDate: $startDate, endDate: $endDate, order: $order) {
items { id type userId actorType }
currentPage
totalResults
totalPages
}
}Ejemplo de variables
{
"page": 1,
"type": "example",
"actorType": "example",
"userId": "1",
"startDate": "2026-01-01",
"endDate": "2026-01-01",
"order": "desc"
}Payload JSON completo
{
"query": "query GetLogs($page: Int, $type: String, $actorType: String, $userId: ID, $startDate: String, $endDate: String, $order: String) {\n logs(page: $page, type: $type, actorType: $actorType, userId: $userId, startDate: $startDate, endDate: $endDate, order: $order) {\n items { id type userId actorType }\n currentPage\n totalResults\n totalPages\n }\n}",
"variables": {
"page": 1,
"type": "example",
"actorType": "example",
"userId": "1",
"startDate": "2026-01-01",
"endDate": "2026-01-01",
"order": "desc"
}
}Ejemplo cURL para probar
curl -X POST https://api.revclic.com/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"query": "query GetLogs($page: Int, $type: String, $actorType: String, $userId: ID, $startDate: String, $endDate: String, $order: String) {\n logs(page: $page, type: $type, actorType: $actorType, userId: $userId, startDate: $startDate, endDate: $endDate, order: $order) {\n items { id type userId actorType }\n currentPage\n totalResults\n totalPages\n }\n}",
"variables": {
"page": 1,
"type": "example",
"actorType": "example",
"userId": "1",
"startDate": "2026-01-01",
"endDate": "2026-01-01",
"order": "desc"
}
}'