{"id":831,"date":"2022-11-08T20:12:04","date_gmt":"2022-11-08T20:12:04","guid":{"rendered":"https:\/\/alvochat.com\/blog\/cara-menghantar-api-whatsapp-menggunakan-httppie\/"},"modified":"2022-11-13T07:11:01","modified_gmt":"2022-11-13T07:11:01","slug":"cara-menghantar-whatsapp-api-melalui-httppie","status":"publish","type":"post","link":"https:\/\/alvochat.com\/blog\/ms\/cara-menghantar-whatsapp-api-melalui-httppie\/","title":{"rendered":"Cara Menghantar API WhatsApp menggunakan HTTPPie"},"content":{"rendered":"\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">pengenalan<\/h2>\n\n<p>Dalam coretan kod ini, anda belajar cara menghantar API WhatsApp menggunakan HTTPPie, untuk menghantar mesej teks, Templat WhatsApp, media, butang interaktif, senarai, produk &#8230; dll, akaun Alvochat diperlukan untuk menjalankan kod berikut. <a href=\"http:\/\/alvochat.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Buat Akaun<\/a> jika anda tidak mempunyainya.<\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-message-using-curl\">Hantar templat menggunakan API WhatsApp<\/h2>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/template \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tname='hello_world' \\\n\tlanguage='en_us' \\\n\theader='' \\\n\tbody='' \\\n\tbuttons='' \\\n\tpriority='' <\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n<h2 class=\"wp-block-heading\">Hantar mesej teks menggunakan API WhatsApp<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance99\/messages\/chat \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tbody='WhatsApp API on alvochat.com works good' \\\n\tpriority='' \\\n\tpreview_url='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar imej<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/image \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\timage='https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/image\/1.jpeg' \\\n\tcaption='image caption' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar audio<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/audio \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\taudio='https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/audio\/1.mp3' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar video<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/video \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tvideo='https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/video\/1.mp4' \\\n\tcaption='video caption' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar dokumen <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance119\/messages\/document \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tdocument='https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/document\/1.pdf' \\\n\tfilename='' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar pelekat<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/sticker \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tsticker='https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/sticker\/1.webp' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar Kenalan<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/contact \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tcontact='' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar Lokasi<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/location \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\tlat='37.484296' \\\n\tlng='-122.148703' \\\n\taddress='Menlo Park, California, United States' \\\n\tname='Meta Headquarters' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Hantar senarai <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/list \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\theader='header' \\\n\tbody=' please select one of the following options' \\\n\tfooter='footer' \\\n\tbutton='options' \\\n\tsections='option_1,option_2,option_3' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Butang hantar <\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/button \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\theader='header' \\\n\tbody=' please select one of the following options' \\\n\tfooter='footer' \\\n\tbuttons='option_1,option_2,option_3' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Hantar produk <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">http --form POST https:\/\/api.alvochat.com\/instance1199\/messages\/product \\\n  content-type:application\/x-www-form-urlencoded \\\n  \ttoken='YourToken' \\\n\tto='16315555555' \\\n\theader='header' \\\n\tbody='Hi , check out our new products' \\\n\tfooter='footer' \\\n\tcatalog_id='' \\\n\tproduct='' \\\n\tpriority='' \\\n\tmessage_id='' <\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n<p>Anda boleh melihat Dokumentasi API Whatsapp Penuh <a href=\"https:\/\/alvochat.com\/docs\/\" data-type=\"URL\" data-id=\"https:\/\/alvochat.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">di sini<\/a> .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pengenalan Dalam coretan kod ini, anda belajar cara menghantar API WhatsApp menggunakan HTTPPie, untuk menghantar &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Cara Menghantar API WhatsApp menggunakan HTTPPie\" class=\"read-more button\" href=\"https:\/\/alvochat.com\/blog\/ms\/cara-menghantar-whatsapp-api-melalui-httppie\/#more-831\" aria-label=\"Read more about Cara Menghantar API WhatsApp menggunakan HTTPPie\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":440,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"%title% | %currentyear%","rank_math_description":"Dalam coretan kod ini, anda belajar cara menghantar API WhatsApp menggunakan HTTPPie, untuk menghantar mesej teks, Templat, media, butang, senarai, produk","rank_math_focus_keyword":"API WhatsApp, HTTPPie","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[91,92],"tags":[93],"class_list":["post-831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-ms","category-whatsappapi-ms","tag-api-whatsapp-ms","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","no-featured-image-padding"],"jetpack_featured_media_url":"https:\/\/alvochat.com\/blog\/wp-content\/uploads\/2022\/11\/WhatsApp-API-HTTPPie.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/posts\/831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/comments?post=831"}],"version-history":[{"count":1,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/posts\/831\/revisions"}],"predecessor-version":[{"id":832,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/posts\/831\/revisions\/832"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/media\/440"}],"wp:attachment":[{"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/media?parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/categories?post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ms\/wp-json\/wp\/v2\/tags?post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}