{"id":939,"date":"2022-11-08T20:25:46","date_gmt":"2022-11-08T20:25:46","guid":{"rendered":"https:\/\/alvochat.com\/blog\/c-kullanarak-bir-whatsapp-apisi-nasil-gonderilir\/"},"modified":"2022-11-13T07:01:17","modified_gmt":"2022-11-13T07:01:17","slug":"c-lang-kullanarak-whatsapp-api-nasil-gonderilir","status":"publish","type":"post","link":"https:\/\/alvochat.com\/blog\/tr\/c-lang-kullanarak-whatsapp-api-nasil-gonderilir\/","title":{"rendered":"C kullanarak bir WhatsApp API&#8217;si nas\u0131l g\u00f6nderilir"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Giri\u015f<\/h2>\n\n<p>Bu kod par\u00e7ac\u0131\u011f\u0131nda, C dilini kullanarak bir WhatsApp API&#8217;sini nas\u0131l g\u00f6nderece\u011finizi, bir metin mesaj\u0131, WhatsApp \u015eablonlar\u0131, medya, etkile\u015fimli d\u00fc\u011fmeler, listeler, \u00fcr\u00fcnler &#8230; vb. g\u00f6ndermeyi \u00f6\u011frenirsiniz, A\u015fa\u011f\u0131daki kodlar\u0131 \u00e7al\u0131\u015ft\u0131rmak i\u00e7in Alvochat hesab\u0131 gereklidir. Hesab\u0131n\u0131z yoksa bir <a href=\"http:\/\/alvochat.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Hesap olu\u015fturun<\/a>.<\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-message-using-curl\">WhatsApp API ve C dilini kullanarak \u015fablon g\u00f6nderme<\/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=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/messages\/template\");\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=YourToken&amp;to=16315555555&amp;name=hello_world&amp;language=en_us&amp;header=&amp;body=&amp;buttons=&amp;priority=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n<h2 class=\"wp-block-heading\">WhatsApp API ve C dilini kullanarak metin mesaj\u0131 g\u00f6nderme<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;body=WhatsApp API on alvochat.com works good&amp;priority=&amp;preview_url=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Resim g\u00f6nder<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;image=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/image\/1.jpeg&amp;caption=image caption&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Ses g\u00f6nder<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;audio=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/audio\/1.mp3&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Video g\u00f6nder<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;video=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/video\/1.mp4&amp;caption=video caption&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Belge g\u00f6nder  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;document=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/document\/1.pdf&amp;filename=&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u00c7\u0131kartma g\u00f6nder<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/messages\/sticker\");\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=YourToken&amp;to=16315555555&amp;sticker=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/sticker\/1.webp&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u0130leti\u015fim G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;contact=&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Konum G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/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=YourToken&amp;to=16315555555&amp;lat=37.484296&amp;lng=-122.148703&amp;address=Menlo Park, California, United States&amp;name=Meta Headquarters&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Liste g\u00f6nder  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/messages\/list\");\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=YourToken&amp;to=16315555555&amp;header=header&amp;body= please select one of the following options&amp;footer=footer&amp;button=options\u00a7ions=option_1,option_2,option_3&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">G\u00f6nder d\u00fc\u011fmesi  <\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/messages\/button\");\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=YourToken&amp;to=16315555555&amp;header=header&amp;body= please select one of the following options&amp;footer=footer&amp;buttons=option_1,option_2,option_3&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">\u00dcr\u00fcn g\u00f6nder  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">#include &lt;curl\/curl.h&gt;\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https:\/\/api.alvochat.com\/instance1199\/messages\/product\");\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=YourToken&amp;to=16315555555&amp;header=header&amp;body=Hi , check out our new products&amp;footer=footer&amp;catalog_id=&amp;product=&amp;priority=&amp;message_id=\");\n\nCURLcode ret = curl_easy_perform(hnd);<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n<p>Whatsapp API Dok\u00fcmantasyonunun tamam\u0131n\u0131 <a href=\"https:\/\/alvochat.com\/docs\/\" data-type=\"URL\" data-id=\"https:\/\/alvochat.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">burada<\/a> g\u00f6rebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Giri\u015f Bu kod par\u00e7ac\u0131\u011f\u0131nda, C dilini kullanarak bir WhatsApp API&#8217;sini nas\u0131l g\u00f6nderece\u011finizi, bir metin mesaj\u0131, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"C kullanarak bir WhatsApp API&#8217;si nas\u0131l g\u00f6nderilir\" class=\"read-more button\" href=\"https:\/\/alvochat.com\/blog\/tr\/c-lang-kullanarak-whatsapp-api-nasil-gonderilir\/#more-939\" aria-label=\"Read more about C kullanarak bir WhatsApp API&#8217;si nas\u0131l g\u00f6nderilir\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":574,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"%title% | %currentyear%","rank_math_description":"Bu kod par\u00e7ac\u0131\u011f\u0131nda, C dilini kullanarak bir WhatsApp API'sini nas\u0131l g\u00f6nderece\u011finizi, bir metin mesaj\u0131 g\u00f6ndermeyi, \u015eablonlar, medya, d\u00fc\u011fmeler, listeler, \u00fcr\u00fcnler\n","rank_math_focus_keyword":"c, WhatsApp API","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[109,110],"tags":[112,111],"class_list":["post-939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ogreticiler","category-whatsappapi-tr","tag-ogreticiler","tag-whatsapp-api-tr","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-using-C.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/posts\/939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/comments?post=939"}],"version-history":[{"count":2,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/posts\/939\/revisions"}],"predecessor-version":[{"id":1290,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/posts\/939\/revisions\/1290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/media\/574"}],"wp:attachment":[{"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/media?parent=939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/categories?post=939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/tr\/wp-json\/wp\/v2\/tags?post=939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}