In this example, we will learn how to use notifications. Notifications can be sent out on for example a missed call or on receiving a new voicemail. There are some different notification methods, of which the most common are email notifications and SMS notifications.
1. Set up notifications
So, let's set up notifications for a source:
PUT /sources/219982
notify_on_missed_call=1&email=n@c.com&smsnumber=0735123456
{
"sources":[{
"source_id":"219982",
"name":"test",
"email":"n@c.com",
"smsnumber":"+46735123456",
"media":null,
"customer_id":"86931",
"phonenr":"+461890510",
"destnr":"+4618921814",
"timestamp":"2012-03-13 23:00:00",
"expire":null,
"created":"2012-03-14 20:56:46",
"modified":"2012-03-15 09:44:05",
"class":"0",
"status":"active",
"vm_greeting_id":"303",
"campaign_id":null,
"publisher_id":null,
"notify_on_missed_call":"1",
"notify_on_new_voicemail":"0",
"vm_divert_all":"0",
"vm_divert_busy":"1",
"vm_divert_noanswer":"1",
"alt_numbers":[]
}]
}
In this example, we've set up that notifications should be sent out on a missed call, and notifications should be sent to both email and SMS.
Congratulations! You've now learned how to handle alternative notifications using the Kaisa API.
Comments
0 comments
Please sign in to leave a comment.