-
Notifications
You must be signed in to change notification settings - Fork 0
/
mintacontoh.txt
70 lines (70 loc) · 2.14 KB
/
mintacontoh.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$.ajax({
url:'https://multichannel.qiscus.com/whatsapp/v1/idmsw-g4y2wgpk6uv4vql/2687/messages',
headers: {
'Qiscus-Secret-Key': '58a8ac62fac448d33ab6978e16b372dd',
'Qiscus-App-Id': 'idmsw-g4y2wgpk6uv4vql',
'Content-Type':'application/json',
},
type: 'POST',
dataType: 'jsonp',
data: {
"to": "+628813272107",
"type": "template",
"template": {
"name": "notifikasi_maintenance_rev2",
"language": {
"policy": "deterministic",
"code": "id"
},
"components": [
{
"type":"header",
"parameters":[
{
"type":"text",
"text":"01"
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Ticket 001"
},
{
"type": "text",
"text": "Ticket 002"
},
{
"type": "text",
"text": "Ticket 003"
},
{
"type": "text",
"text": "Ticket 004"
},
{
"type": "text",
"text": "Ticket 005"
},
{
"type": "text",
"text": "Ticket 006"
},
{
"type": "text",
"text": "Ticket 007"
}
]
}
]
}
},
success: function(data){
console.log('succes: '+data);
}})
.fail(err=>{
console.log("Error send wa",err)
})