Test Notifications
POST https://{{PUSHER_INSTANCE_ID}}.pushnotifications.pusher.com/publish_api/v1/instances/{{PUSHER_INSTANCE_ID}}/publishes/interests
Pusher allows us to push notifications. This endpoint allows you to authenticate.
Request Body
{"interests"=>["user-1636", "user-956", "user-261894", "coach-838"], "apns"=>{"aps"=>{"alert"=>{"title"=>"Hello!!!", "body"=>"Hello, world!!!! TeamSportz", "icon"=>"https://coaches.teamsportz.pro/assets/img/brand/ms-icon-310x310.png"}, "mutable-content"=>1, "attachment-url"=>"https://coaches.teamsportz.pro/assets/img/brand/ms-icon-310x310.png"}}, "fcm"=>{"notification"=>{"title"=>"Hello!!!", "body"=>"Hello, world!!!! TeamSportz test here!", "icon"=>"https://coaches.teamsportz.pro/assets/img/brand/ms-icon-310x310.png"}, "mutable-content"=>1, "attachment-url"=>"https://coaches.teamsportz.pro/assets/img/brand/ms-icon-310x310.png"}, "web"=>{"notification"=>{"title"=>"Hello!!!", "body"=>"Hello, world!!!! TeamSportz test", "deep_link"=>"https://www.pusher.com", "icon"=>"https://coaches.teamsportz.pro/assets/img/brand/ms-icon-310x310.png"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A val id JWT token |
RESPONSES
status: OK
{"auth":"22489c2b6721184716b1:ca53ba100f973bc9008268f8958393199a86612d138c9dda1d526b7250b6c40d","channel_data":"{\"user_id\":\"1\",\"user_info\":{\"email\":\"mylovely@email.com\",\"user_id\":\"1\",\"user_first_name\":\"Francisco\",\"user_last_name\":\"Baptista\",\"avatarUrl\":\"https:\\/\\/files.teamsportz.app\\/avatars\\/838_1635609343.jpeg\",\"role\":\"Head Coach\"}}"}