{"id":921,"date":"2022-11-08T20:23:46","date_gmt":"2022-11-08T20:23:46","guid":{"rendered":"https:\/\/alvochat.com\/blog\/%d0%ba%d0%b0%d0%ba-%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d1%82%d1%8c-api-whatsapp-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-clojure\/"},"modified":"2022-11-13T07:02:01","modified_gmt":"2022-11-13T07:02:01","slug":"send-whatsapp-api-using-clojure","status":"publish","type":"post","link":"https:\/\/alvochat.com\/blog\/ru\/send-whatsapp-api-using-clojure\/","title":{"rendered":"\u041a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c API WhatsApp \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c WhatsApp API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, WhatsApp \u0428\u0430\u0431\u043b\u043e\u043d\u044b, \u043c\u0435\u0434\u0438\u0430, \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u0441\u043f\u0438\u0441\u043a\u0438, \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b &#8230; \u0438 \u0442.\u0434., \u0414\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u0434\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c Alvochat. <a href=\"http:\/\/alvochat.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442<\/a>, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u043d\u0435\u0442.<\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-message-using-curl\">\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API WhatsApp \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure<\/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=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/template\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:name \"hello_world\"\n:language \"en_us\"\n:header \"\"\n:body \"\"\n:buttons \"\"\n:priority \"\"\n}\n})<\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API WhatsApp \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/chat\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:body \"WhatsApp API on alvochat.com works good\"\n:priority \"\"\n:preview_url \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/image\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:image \"https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/image\/1.jpeg\"\n:caption \"image caption\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u043e<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/audio\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:audio \"https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/audio\/1.mp3\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/video\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:video \"https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/video\/1.mp4\"\n:caption \"video caption\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/document\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:document \"https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/document\/1.pdf\"\n:filename \"\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u043a\u043b\u0435\u0439\u043a\u0443<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/sticker\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:sticker \"https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/sticker\/1.webp\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/contact\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:contact \"\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/location\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:lat \"37.484296\"\n:lng \"-122.148703\"\n:address \"Menlo Park, California, United States\"\n:name \"Meta Headquarters\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u0421\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/list\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:header \"header\"\n:body \" please select one of the following options\"\n:footer \"footer\"\n:button \"options\"\n:sections \"option_1,option_2,option_3\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">\u041a\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438  <\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/button\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:header \"header\"\n:body \" please select one of the following options\"\n:footer \"footer\"\n:buttons \"option_1,option_2,option_3\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u044e  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"scala\" class=\"EnlighterJSRAW\">(require '&#091;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.alvochat.com\/instance1199\/messages\/product\" {:headers {:content-type \"application\/x-www-form-urlencoded\"}:form-params {\n:token \"YourToken\"\n:to \"16315555555\"\n:header \"header\"\n:body \"Hi , check out our new products\"\n:footer \"footer\"\n:catalog_id \"\"\n:product \"\"\n:priority \"\"\n:message_id \"\"\n}\n})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u043b\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e Whatsapp API <a href=\"https:\/\/alvochat.com\/docs\/\" data-type=\"URL\" data-id=\"https:\/\/alvochat.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0412 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c WhatsApp API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure, \u0447\u0442\u043e\u0431\u044b &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u041a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c API WhatsApp \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure\" class=\"read-more button\" href=\"https:\/\/alvochat.com\/blog\/ru\/send-whatsapp-api-using-clojure\/#more-921\" aria-label=\"\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u041a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c API WhatsApp \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Clojure\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":559,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"%title% | %currentyear%","rank_math_description":"\u0412 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c WhatsApp API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e clojure, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435,\u0428\u0430\u0431\u043b\u043e\u043d\u044b, \u043c\u0435\u0434\u0438\u0430, \u043a\u043d\u043e\u043f\u043a\u0438, \u0441\u043f\u0438\u0441\u043a\u0438, \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b\n","rank_math_focus_keyword":"Clojure,API WhatsApp","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[104,103],"tags":[105,106],"class_list":["post-921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whatsappapi-ru","category-103","tag-api-whatsapp-ru","tag-106","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-Clojure.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/comments?post=921"}],"version-history":[{"count":1,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":922,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/posts\/921\/revisions\/922"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/ru\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}