-
Create a notification group and copy the GroupID (groupId)
-
Call SSO API to get User Token
- API URL: [POST] https://api-sso-ensaas.{datacenter}.wise-paas.com/v4.0/auth/native
- For example: the SSO url of Datacenter SA is https://api-sso-ensaas.sa.wise-paas.com/v4.0/auth/native
- Request Body:
{
"username": "foo@advantech.com.tw",
"password": "12345678"
}
- Use User Token and group ID (groupId) to call Notification API
- API URL: [POST] https://portal-notification-{namespace}-{cluster}.{datacenter}.wise-paas.com/api/v1.5/groups/send
- Request Body:
[{
"groupId": "i6t2LAIwKrRf",
"useTemplate": false,
"message": "for demo"
}]
- Receive message