{"id":870,"date":"2022-02-27T08:53:14","date_gmt":"2022-02-27T08:53:14","guid":{"rendered":"https:\/\/blog.ultramsg.com\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-whatsapp-api-messages-with-clojure\/"},"modified":"2022-05-28T11:44:15","modified_gmt":"2022-05-28T11:44:15","slug":"%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-whatsapp-api-messages-with-clojure","status":"publish","type":"post","link":"https:\/\/blog.ultramsg.com\/ar\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-whatsapp-api-messages-with-clojure\/","title":{"rendered":"\u0625\u0631\u0633\u0627\u0644 \u0648\u0627\u062a\u0633 \u0627\u0628 API \u0628\u0625\u0633\u062a\u062e\u062f\u0627\u0645 Clojure"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"introduction\">\u0645\u0642\u062f\u0645\u0629<br\/><\/h2>\n\n<p>\u0625\u0631\u0633\u0627\u0644 WhatsApp API \u0645\u0639 Clojure \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u060c \u0633\u0646\u0646\u0634\u0626 \u0645\u062b\u0627\u0644 \u0628\u0633\u064a\\ \u0644\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0639\u0628\u0631 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Clojure.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-api-message-using-clojure\">\u0623\u0648\u0644 \u0631\u0633\u0627\u0644\u0629 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Clojure<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '[clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/chat\" {:form-params {:token \"token_here\"\n                                                                                       :to \"14155552671\"\n                                                                                       :body \"WhatsApp API on UltraMsg.com works good\"\n                                                                                       :priority \"10\"\n                                                                                       :referenceId \"\"&gt;<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-image\">\u0625\u0631\u0633\u0627\u0644 \u0635\u0648\u0631\u0629<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/image\" {:form-params {:token \"token_here\"\n                                                                                        :to \"14155552671\"\n                                                                                        :image \"https:\/\/file-example.s3-accelerate.amazonaws.com\/images\/test.jpg\"\n                                                                                        :caption \"image Caption\"\n                                                                                        :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-document\">\u0625\u0631\u0633\u0627\u0644 \u0645\u0644\u0641<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/document\" {:form-params {:token \"token_here\"\n                                                                                           :to \"14155552671\"\n                                                                                           :filename \"hello.pdf\"\n                                                                                           :document \"https:\/\/file-example.s3-accelerate.amazonaws.com\/documents\/cv.pdf\"\n                                                                                           :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-audio\">\u0625\u0631\u0633\u0644 \u0635\u0648\u062a<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/audio\" {:form-params {:token \"token_here\"\n                                                                                        :to \"14155552671\"\n                                                                                        :audio \"https:\/\/file-example.s3-accelerate.amazonaws.com\/audio\/2.mp3\"\n                                                                                        :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-voice\">\u0625\u0631\u0633\u0627\u0644 \u062a\u0633\u062c\u064a\u0644 \u0635\u0648\u062a\u064a<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/voice\" {:form-params {:token \"token_here\"\n                                                                                        :to \"14155552671\"\n                                                                                        :audio \"https:\/\/file-example.s3-accelerate.amazonaws.com\/voice\/oog_example.ogg\"\n                                                                                        :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-video\">\u0625\u0631\u0633\u0627\u0644 \u0641\u064a\u062f\u064a\u0648<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/video\" {:form-params {:token \"token_here\"\n                                                                                        :to \"14155552671\"\n                                                                                        :video \"https:\/\/file-example.s3-accelerate.amazonaws.com\/video\/test.mp4\"\n                                                                                        :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-link\">\u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/link\" {:form-params {:token \"token_here\"\n                                                                                       :to \"14155552671\"\n                                                                                       :link \"https:\/\/en.wikipedia.org\/wiki\/COVID-19\"\n                                                                                       :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-contact\">\u0625\u0631\u0633\u0627\u0644 \u062c\u0647\u0629 \u0627\u062a\u0635\u0627\u0644<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/contact\" {:form-params {:token \"token_here\"\n                                                                                          :to \"14155552671\"\n                                                                                          :contact \"14000000001@c.us\"\n                                                                                          :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-location\">\u0625\u0631\u0633\u0627\u0644 \u0645\u0648\u0642\u0639 \u062c\u063a\u0631\u0627\u0641\u064a<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/location\" {:form-params {:token \"token_here\"\n                                                                                           :to \"14155552671\"\n                                                                                           :address \"ABC company \\n Sixth floor , office 38\"\n                                                                                           :lat \"25.197197\"\n                                                                                           :lng \"55.2721877\"\n                                                                                           :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-vcard\">\u0625\u0631\u0633\u0627\u0644 Vcard<br\/><\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">(require '&#91;clj-http.client :as client])\n\n(client\/post \"https:\/\/api.ultramsg.com\/instance1150\/messages\/vcard\" {:form-params {:token \"token_here\"\n                                                                                        :to \"14155552671\"\n                                                                                        :vcard \" BEGIN:VCARD\\nVERSION:3.0\\nN:lastname;firstname\\nFN:firstname lastname\\nTEL;TYPE=CELL;waid=14000000001:14000000002\\nNICKNAME:nickname\\nBDAY:01.01.1987\\nX-GENDER:M\\nNOTE:note\\nADR;TYPE=home:;;;;;;\\nADR;TYPE=work_:;;;;;;\\nEND:VCARD\"\n                                                                                        :referenceId \"\"}})<\/code><\/code><\/pre>\n\n<p>\u0623\u062e\u064a\u0631\u0627 \u064a\u0645\u0643\u0646 \u0645\u0634\u0627\u0647\u062f\u0629 \u062f\u0644\u064a\u0644 \u0648\u062b\u0627\u0626\u0642 <a href=\"https:\/\/docs.ultramsg.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Whatsapp API Documentation.<\/a> \u0628\u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0644\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 <a href=\"https:\/\/blog.ultramsg.com\/ar\/whatsapp-api-by-ultramsg-faq\/\" data-type=\"URL\" data-id=\"https:\/\/blog.ultramsg.com\/whatsapp-api-by-ultramsg-faq\/\">FAQ<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0642\u062f\u0645\u0629 \u0625\u0631\u0633\u0627\u0644 WhatsApp API \u0645\u0639 Clojure \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u060c \u0633\u0646\u0646\u0634\u0626 \u0645\u062b\u0627\u0644 \u0628\u0633\u064a\\ \u0644\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u0625\u0631\u0633\u0627\u0644 \u0648\u0627\u062a\u0633 \u0627\u0628 API \u0628\u0625\u0633\u062a\u062e\u062f\u0627\u0645 Clojure\" class=\"read-more button\" href=\"https:\/\/blog.ultramsg.com\/ar\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-whatsapp-api-messages-with-clojure\/#more-870\" aria-label=\"Read more about \u0625\u0631\u0633\u0627\u0644 \u0648\u0627\u062a\u0633 \u0627\u0628 API \u0628\u0625\u0633\u062a\u062e\u062f\u0627\u0645 Clojure\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[49,38],"class_list":["post-870","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category---api","tag-clojure-ar","tag---api","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-25","no-featured-image-padding"],"_links":{"self":[{"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":10,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":3330,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts\/870\/revisions\/3330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/media\/714"}],"wp:attachment":[{"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}