{"id":2292,"date":"2022-05-03T01:35:24","date_gmt":"2022-05-03T01:35:24","guid":{"rendered":"https:\/\/blog.ultramsg.com\/%e0%a4%ad%e0%a5%87%e0%a4%9c%e0%a5%87%e0%a4%82-%e0%a4%b8%e0%a4%82%e0%a4%a6%e0%a5%87%e0%a4%b6-%e0%a4%b5%e0%a5%8d%e0%a4%b9%e0%a4%be%e0%a4%9f%e0%a5%8d%e0%a4%b8%e0%a4%8f%e0%a4%aa-%e0%a4%8f%e0%a4%aa\/"},"modified":"2022-05-03T01:35:27","modified_gmt":"2022-05-03T01:35:27","slug":"%e0%a4%ad%e0%a5%87%e0%a4%9c%e0%a5%87%e0%a4%82-%e0%a4%b8%e0%a4%82%e0%a4%a6%e0%a5%87%e0%a4%b6-%e0%a4%b5%e0%a5%8d%e0%a4%b9%e0%a4%be%e0%a4%9f%e0%a5%8d%e0%a4%b8%e0%a4%8f%e0%a4%aa-%e0%a4%8f%e0%a4%aa","status":"publish","type":"post","link":"https:\/\/blog.ultramsg.com\/hi\/%e0%a4%ad%e0%a5%87%e0%a4%9c%e0%a5%87%e0%a4%82-%e0%a4%b8%e0%a4%82%e0%a4%a6%e0%a5%87%e0%a4%b6-%e0%a4%b5%e0%a5%8d%e0%a4%b9%e0%a4%be%e0%a4%9f%e0%a5%8d%e0%a4%b8%e0%a4%8f%e0%a4%aa-%e0%a4%8f%e0%a4%aa\/","title":{"rendered":"\u0938\u0940 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u093f\u0902\u0917 \u092d\u093e\u0937\u093e \u0915\u0947 \u0938\u093e\u0925 \u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"introduction\">\u092a\u0930\u093f\u091a\u092f<\/h2>\n\n<p>\u0907\u0938 \u091f\u094d\u092f\u0942\u091f\u094b\u0930\u093f\u092f\u0932 \u092e\u0947\u0902, \u0939\u092e \u0938\u0940 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0915\u0947 \u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908 \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0938\u0902\u0926\u0947\u0936 \u092d\u0947\u091c\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0938\u0930\u0932 \u0909\u0926\u093e\u0939\u0930\u0923 \u092c\u0928\u093e\u090f\u0902\u0917\u0947\u0964<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-api-message-using-c\">C . \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0941\u090f \u092a\u0939\u0932\u093e WhatsApp API \u0938\u0902\u0926\u0947\u0936<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/chat\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;body=WhatsApp API on UltraMsg.com works good&amp;priority=10&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-image\">\u091b\u0935\u093f \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/image\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;image=https:\/\/file-example.s3-accelerate.amazonaws.com\/images\/test.jpg&amp;caption=image Caption&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-document\">\u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/document\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;filename=hello.pdf&amp;document=https:\/\/file-example.s3-accelerate.amazonaws.com\/documents\/cv.pdf&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-audio\">\u0911\u0921\u093f\u092f\u094b \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/audio\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;audio=https:\/\/file-example.s3-accelerate.amazonaws.com\/audio\/2.mp3&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-voice\">\u0906\u0935\u093e\u091c \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/voice\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;audio=https:\/\/file-example.s3-accelerate.amazonaws.com\/voice\/oog_example.ogg&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-video\">\u0935\u0940\u0921\u093f\u092f\u094b \u092d\u0947\u091c\u0928\u093e<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/video\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;video=https:\/\/file-example.s3-accelerate.amazonaws.com\/video\/test.mp4&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-link\">\u0932\u093f\u0902\u0915 \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/link\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;link=https:\/\/en.wikipedia.org\/wiki\/COVID-19&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-contact\">\u0938\u0902\u092a\u0930\u094d\u0915 \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/contact\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;contact=14000000001@c.us&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-location\">\u0938\u094d\u0925\u093e\u0928 \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/location\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;address=ABC company \\n Sixth floor , office 38&amp;lat=25.197197&amp;lng=55.2721877&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-vcard\">\u0935\u0940\u0915\u093e\u0930\u094d\u0921 \u092d\u0947\u091c\u0947\u0902<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.ultramsg.com\/instance1150\/messages\/vcard\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application\/x-www-form-urlencoded\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"token=token_here&amp;to=966550883606&amp;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&amp;referenceId=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/pre>\n\n<p>\u0905\u0902\u0924 \u092e\u0947\u0902, \u0906\u092a \u092a\u0942\u0930\u094d\u0923 <a href=\"https:\/\/docs.ultramsg.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908 \u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c\u0940\u0915\u0930\u0923<\/a> \u0914\u0930 <a href=\"https:\/\/blog.ultramsg.com\/whatsapp-api-by-ultramsg-faq\/\" data-type=\"URL\" data-id=\"https:\/\/blog.ultramsg.com\/whatsapp-api-by-ultramsg-faq\/\">\u0905\u0915\u094d\u0938\u0930 \u092a\u0942\u091b\u0947 \u091c\u093e\u0928\u0947 \u0935\u093e\u0932\u0947 \u092a\u094d\u0930\u0936\u094d\u0928<\/a> \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u092a\u0930\u093f\u091a\u092f \u0907\u0938 \u091f\u094d\u092f\u0942\u091f\u094b\u0930\u093f\u092f\u0932 \u092e\u0947\u0902, \u0939\u092e \u0938\u0940 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0915\u0947 \u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908 \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0938\u0902\u0926\u0947\u0936 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u0938\u0940 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u093f\u0902\u0917 \u092d\u093e\u0937\u093e \u0915\u0947 \u0938\u093e\u0925 \u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908\" class=\"read-more button\" href=\"https:\/\/blog.ultramsg.com\/hi\/%e0%a4%ad%e0%a5%87%e0%a4%9c%e0%a5%87%e0%a4%82-%e0%a4%b8%e0%a4%82%e0%a4%a6%e0%a5%87%e0%a4%b6-%e0%a4%b5%e0%a5%8d%e0%a4%b9%e0%a4%be%e0%a4%9f%e0%a5%8d%e0%a4%b8%e0%a4%8f%e0%a4%aa-%e0%a4%8f%e0%a4%aa\/#more-2292\" aria-label=\"Read more about \u0938\u0940 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u093f\u0902\u0917 \u092d\u093e\u0937\u093e \u0915\u0947 \u0938\u093e\u0925 \u0935\u094d\u0939\u093e\u091f\u094d\u0938\u090f\u092a \u090f\u092a\u0940\u0906\u0908\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":2220,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[204,190],"class_list":["post-2292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-186","tag-c-hi-2","tag-190","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\/hi\/wp-json\/wp\/v2\/posts\/2292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/comments?post=2292"}],"version-history":[{"count":3,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/posts\/2292\/revisions"}],"predecessor-version":[{"id":2295,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/posts\/2292\/revisions\/2295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/media\/2220"}],"wp:attachment":[{"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/media?parent=2292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/categories?post=2292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/hi\/wp-json\/wp\/v2\/tags?post=2292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}