{"id":4473,"date":"2017-02-22T13:55:52","date_gmt":"2017-02-22T06:55:52","guid":{"rendered":"http:\/\/www.zenziva.id\/?page_id=4473"},"modified":"2022-06-07T20:16:22","modified_gmt":"2022-06-07T13:16:22","slug":"dokumentasi","status":"publish","type":"page","link":"http:\/\/www.zenziva.id\/dokumentasi\/","title":{"rendered":"Dokumentasi"},"content":{"rendered":"

[vc_row][vc_column][vc_tta_tabs][vc_tta_section title=”API SMS REGULER” tab_id=”1487744370452-b8ef252d-fb8c”][vc_custom_heading text=”API KIRIM SMS REGULER” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Untuk mengirim SMS ke satu penerima.<\/p>\n

Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttps:\/\/gsm.zenziva.net\/api\/sendsms\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
nohp<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
pesan<\/td>\nIsi pesan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh respon dalam format JSON.<\/strong><\/p>\n

{\r\n\t\"messageId\":\"157365\",\r\n\t\"to\":\"081111111111\",\r\n\t\"status\":\"1\",\r\n\t\"text\":\"Success\"\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh script php:<\/strong><\/p>\n

$userkey = \"xxxxxx\"; \/\/userkey lihat di zenziva\r\n$passkey = \"xxxxxx\"; \/\/ set passkey di zenziva\r\n$telepon = \"081234567890\";\r\n$message = \"Terima Kasih, pendaftaran atas nama $nama telah berhasil di websiteAnda.com. Silahkan baca dan download petunjuk selanjutnya. Harap Maklum\";\r\n$url = \"https:\/\/gsm.zenziva.net\/api\/sendsms\/\";\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'nohp' => $telepon,\r\n    'pesan' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);<\/pre>\n

[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”API SMS MASKING” tab_id=”1487744370576-71f03366-9c88″][vc_custom_heading text=”API KIRIM SMS MASKING” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Untuk mengirim SMS ke satu penerima.<\/p>\n

Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttps:\/\/masking.zenziva.net\/api\/sendsms\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
nohp<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
pesan<\/td>\nIsi pesan (Maksimum 580 karakter)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh respon dalam format JSON.<\/strong><\/p>\n

{\r\n\t\"messageId\":\"157365\",\r\n\t\"to\":\"081111111111\",\r\n\t\"status\":\"1\",\r\n\t\"text\":\"Success\"\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh script php:<\/strong><\/p>\n

$userkey = \"xxxxxx\"; \/\/userkey lihat di zenziva\r\n$passkey = \"xxxxxx\"; \/\/ set passkey di zenziva\r\n$telepon = \"081234567890\";\r\n$message = \"Terima Kasih, pendaftaran atas nama $nama telah berhasil di websiteAnda.com. Silahkan baca dan download petunjuk selanjutnya. Harap Maklum\";\r\n$url = \"https:\/\/masking.zenziva.net\/api\/sendsms\/\";\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'nohp' => $telepon,\r\n    'pesan' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);<\/pre>\n

[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”API SMS CENTER V2.0″ tab_id=”1517627756144-f80cd546-b499″][vc_custom_heading text=”API KIRIM SMS CENTER V2.0″ font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_message message_box_color=”pink”]API KIRIM SMS V2.0 hanya untuk pelanggan SMS Center yang terdaftar mulai dari Januari 2018.[\/vc_message][vc_column_text]Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttp:\/\/SUBDOMAIN\/api\/sendsms\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
nohp<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
pesan<\/td>\nIsi pesan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Respon dari perintah di atas dalam format JSON.<\/p>\n

Contoh respon:<\/strong><\/p>\n

{\r\n\t\"messageId\":\"157365\",\r\n\t\"to\":\"081111111111\",\r\n\t\"status\":\"1\",\r\n\t\"text\":\"Success\"\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh script php:<\/strong><\/p>\n

$userkey = 'XXXXX';\r\n$passkey = 'XXXXX';\r\n$telepon = '081111111111';\r\n$message = 'Terima Kasih, pendaftaran atas nama $nama telah berhasil di websiteAnda.com';\r\n$url = 'http:\/\/SUBDOMAIN_ANDA\/api\/sendsms\/';\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'nohp' => $telepon,\r\n    'pesan' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);\r\necho $results ;<\/pre>\n

[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”API WA REGULER” tab_id=”1590989575142-3ff05af3-0ba6″][vc_custom_heading text=”API KIRIM PESAN WA REGULER” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttps:\/\/gsm.zenziva.net\/api\/sendWA\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
nohp<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
pesan<\/td>\nIsi pesan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Respon dari perintah di atas dalam format JSON.<\/p>\n

Contoh respon:<\/strong><\/p>\n

{\r\n\t\"messageId\":\"157365\",\r\n\t\"to\":\"081111111111\",\r\n\t\"status\":\"1\",\r\n\t\"text\":\"Success\"\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

Contoh script php:<\/strong><\/p>\n

$userkey = \"xxxxxx\";\r\n$passkey = \"xxxxxx\";\r\n$telepon = \"6281234567890\";\r\n$message = \"Hi, This is WA message.\";\r\n$url = \"https:\/\/gsm.zenziva.net\/api\/sendWA\/\";\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'nohp' => $telepon,\r\n    'pesan' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);<\/pre>\n

[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”API WA CENTER” tab_id=”1487744429486-64b4b0db-6efd”][vc_custom_heading text=”API KIRIM PESAN WA CENTER” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttp:\/\/SUBDOMAIN\/api\/WAsendMsg\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
instance<\/td>\nWA instance ID<\/td>\n<\/tr>\n
nohp<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
pesan<\/td>\nIsi pesan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Respon dari perintah di atas dalam format JSON.<\/p>\n

Contoh respon:<\/strong><\/p>\n

{\r\n  \"msg-count\":1,\r\n  \"msg\":[\r\n    {\r\n      \"messageId\":\"2349\",\r\n      \"to\":\"+628123456789\",\r\n      \"status\":\"1\",\r\n      \"text\":\"Success\"\r\n    }\r\n  ]\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

Contoh script php:<\/strong><\/p>\n

$userkey = \"xxxxxx\";\r\n$passkey = \"xxxxxx\";\r\n$instanceID = '12345';\r\n$telepon = \"6281234567890\";\r\n$message = \"Hi, This is WA message.\";\r\n$url = \"http:\/\/SUBDOMAIN_ANDA\/api\/WAsendMsg\/\";\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'instance' => $instanceID,\r\n    'nohp' => $telepon,\r\n    'pesan' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);<\/pre>\n

[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”API TEXT To VOICE” tab_id=”1600412743540-d5327dce-bf29″][vc_custom_heading text=”API KIRIM TEXT To VOICE” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Perintah:<\/strong><\/p>\n

POST<\/strong>\r\nhttps:\/\/console.zenziva.net\/voice\/api\/sendvoice\/<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]<\/p>\n

\n\n\n\n\n\n\n\n\n
PARAMETER<\/strong><\/th>\nDESKRIPSI<\/strong><\/th>\n<\/tr>\n<\/thead>\n
userkey<\/td>\nUserkey anda<\/td>\n<\/tr>\n
passkey<\/td>\nPasskey anda<\/td>\n<\/tr>\n
to<\/td>\nNomor tujuan<\/td>\n<\/tr>\n
message<\/td>\nIsi pesan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Respon dari perintah di atas dalam format JSON.<\/p>\n

Contoh respon:<\/strong><\/p>\n

{\r\n   \"messageId\":\"2349\",\r\n   \"to\":\"+628123456789\",\r\n   \"status\":\"1\",\r\n   \"text\":\"Success\"\r\n}<\/pre>\n

[\/vc_column_text][vc_empty_space][vc_column_text]Contoh script php:<\/strong><\/p>\n

$userkey = \"xxxxxx\";\r\n$passkey = \"xxxxxx\";\r\n$telepon = '081111111111';\r\n$message = 'Hi John Doe, have a nice day.';\r\n$url = 'https:\/\/console.zenziva.net\/voice\/api\/sendvoice\/';\r\n$curlHandle = curl_init();\r\ncurl_setopt($curlHandle, CURLOPT_URL, $url);\r\ncurl_setopt($curlHandle, CURLOPT_HEADER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);\r\ncurl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curlHandle, CURLOPT_TIMEOUT,30);\r\ncurl_setopt($curlHandle, CURLOPT_POST, 1);\r\ncurl_setopt($curlHandle, CURLOPT_POSTFIELDS, array(\r\n    'userkey' => $userkey,\r\n    'passkey' => $passkey,\r\n    'to' => $telepon,\r\n    'message' => $message\r\n));\r\n$results = json_decode(curl_exec($curlHandle), true);\r\ncurl_close($curlHandle);<\/pre>\n

[\/vc_column_text][\/vc_tta_section][\/vc_tta_tabs][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"

[vc_row][vc_column][vc_tta_tabs][vc_tta_section title=”API SMS REGULER” tab_id=”1487744370452-b8ef252d-fb8c”][vc_custom_heading text=”API KIRIM SMS REGULER” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes” cms_custom_headding_type=”heading-line” cms_heading_block=””][vc_column_text]Untuk mengirim SMS ke satu penerima. Perintah: POST https:\/\/gsm.zenziva.net\/api\/sendsms\/ [\/vc_column_text][vc_empty_space][vc_column_text] PARAMETER DESKRIPSI userkey Userkey anda passkey Passkey anda nohp Nomor tujuan pesan Isi pesan [\/vc_column_text][vc_empty_space][vc_column_text]Contoh respon dalam format JSON. { “messageId”:”157365″, “to”:”081111111111″, “status”:”1″, “text”:”Success” } [\/vc_column_text][vc_empty_space][vc_column_text]Contoh script php: $userkey = “xxxxxx”; \/\/userkey lihat<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/pages\/4473"}],"collection":[{"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/comments?post=4473"}],"version-history":[{"count":31,"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/pages\/4473\/revisions"}],"predecessor-version":[{"id":5251,"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/pages\/4473\/revisions\/5251"}],"wp:attachment":[{"href":"http:\/\/www.zenziva.id\/wp-json\/wp\/v2\/media?parent=4473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}