import co.novu.Novu
import co.novu.extensions.notificationsStats
fun main() {
val novu = Novu(apiKey = "<NOVU_API_KEY>")
val notificationsStats = novu.notificationsStats()
println(notificationsStats)
}
curl --request GET \
--url https://api.novu.co/v1/notifications/stats \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
from novu.api import NotificationApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
notificationApi = NotificationApi(url, api_key)
notification_stats = notificationApi.stats()
use Novu\SDK\Novu;
$novu = new Novu('<NOVU_API_KEY>');
$notificationStats = $novu->getNotificationStats()->toArray();
{
"weeklySent": 123,
"monthlySent": 123
}"Request with key 3909d656-d4fe-4e80-ba86-90d3861afcd7 is currently being processed. Please retry after 1 second""API rate limit exceeded""Please wait some time, then try again."Notification
Get notification statistics
GET
/
v1
/
notifications
/
stats
import co.novu.Novu
import co.novu.extensions.notificationsStats
fun main() {
val novu = Novu(apiKey = "<NOVU_API_KEY>")
val notificationsStats = novu.notificationsStats()
println(notificationsStats)
}
curl --request GET \
--url https://api.novu.co/v1/notifications/stats \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
from novu.api import NotificationApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
notificationApi = NotificationApi(url, api_key)
notification_stats = notificationApi.stats()
use Novu\SDK\Novu;
$novu = new Novu('<NOVU_API_KEY>');
$notificationStats = $novu->getNotificationStats()->toArray();
{
"weeklySent": 123,
"monthlySent": 123
}"Request with key 3909d656-d4fe-4e80-ba86-90d3861afcd7 is currently being processed. Please retry after 1 second""API rate limit exceeded""Please wait some time, then try again."Enter your API key in the
Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80eimport co.novu.Novu
import co.novu.extensions.notificationsStats
fun main() {
val novu = Novu(apiKey = "<NOVU_API_KEY>")
val notificationsStats = novu.notificationsStats()
println(notificationsStats)
}
curl --request GET \
--url https://api.novu.co/v1/notifications/stats \
--header 'Authorization: ApiKey <NOVU_API_KEY>'
from novu.api import NotificationApi
url = "https://api.novu.co"
api_key = "<NOVU_API_KEY>"
notificationApi = NotificationApi(url, api_key)
notification_stats = notificationApi.stats()
use Novu\SDK\Novu;
$novu = new Novu('<NOVU_API_KEY>');
$notificationStats = $novu->getNotificationStats()->toArray();
Was this page helpful?
⌘I