{"id":1154,"date":"2022-03-02T14:53:28","date_gmt":"2022-03-02T14:53:28","guid":{"rendered":"https:\/\/blog.ultramsg.com\/powershell-ile-whatsapp-api-mesajlari-gonder\/"},"modified":"2022-07-04T13:48:08","modified_gmt":"2022-07-04T13:48:08","slug":"powershell-ile-whatsapp-api-mesajlari-gonder","status":"publish","type":"post","link":"https:\/\/blog.ultramsg.com\/tr\/powershell-ile-whatsapp-api-mesajlari-gonder\/","title":{"rendered":"Powershell kullanarak WhatsApp API&#8217;si Nas\u0131l G\u00f6nderilir"},"content":{"rendered":"\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Tan\u0131t\u0131m<br\/><\/h2>\n\n<p>Bu e\u011fitimde, Powershell kullanarak WhatsApp API \u00fczerinden mesaj g\u00f6ndermek i\u00e7in basit \u00f6rnekler olu\u015fturaca\u011f\u0131z.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-api-message-using-objective-c\">Powershell Kullanan \u0130lk WhatsApp API Mesaj\u0131<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/vcard' -Method POST -Headers $headers -Body '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='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-image\">Resim G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/image' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;image=https:\/\/file-example.s3-accelerate.amazonaws.com\/images\/test.jpg&amp;caption=image Caption&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-document\">Belge G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/document' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;filename=hello.pdf&amp;document=https:\/\/file-example.s3-accelerate.amazonaws.com\/documents\/cv.pdf&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-audio\">Ses G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/audio' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;audio=https:\/\/file-example.s3-accelerate.amazonaws.com\/audio\/2.mp3&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-voice\">Ses G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/voice' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;audio=https:\/\/file-example.s3-accelerate.amazonaws.com\/voice\/oog_example.ogg&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-video\">Video G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/video' -Method POST -Headers $headers  -Body 'token=token_here&amp;to=966550883606&amp;video=https:\/\/file-example.s3-accelerate.amazonaws.com\/video\/test.mp4&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-link\">Link g\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/link' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;link=https:\/\/en.wikipedia.org\/wiki\/COVID-19&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-contact\">Ki\u015fi G\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/contact' -Method POST -Headers $headers -Body 'token=token_here&amp;to=966550883606&amp;contact=14000000001@c.us&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-location\">Konum g\u00f6ndermek<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/contact' -Method POST -Headers $headers  -Body 'token=token_here&amp;to=966550883606&amp;contact=14000000001@c.us&amp;referenceId='<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\" id=\"send-vcard\">Vcard g\u00f6nder<\/h2>\n\n<pre class=\"wp-block-preformatted\"><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">$headers=@{}\n$headers.Add(\"content-type\", \"application\/x-www-form-urlencoded\")\n$response = Invoke-WebRequest -Uri 'https:\/\/api.ultramsg.com\/instance1150\/messages\/vcard' -Method POST -Headers $headers -Body '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='<\/code><\/pre>\n\n<p>son olarak, Tam <a href=\"https:\/\/docs.ultramsg.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Whatsapp API Belgelerini<\/a> ve <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\/\">SSS&#8217;yi<\/a> g\u00f6rebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tan\u0131t\u0131m Bu e\u011fitimde, Powershell kullanarak WhatsApp API \u00fczerinden mesaj g\u00f6ndermek i\u00e7in basit \u00f6rnekler olu\u015fturaca\u011f\u0131z. Powershell &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Powershell kullanarak WhatsApp API&#8217;si Nas\u0131l G\u00f6nderilir\" class=\"read-more button\" href=\"https:\/\/blog.ultramsg.com\/tr\/powershell-ile-whatsapp-api-mesajlari-gonder\/#more-1154\" aria-label=\"Read more about Powershell kullanarak WhatsApp API&#8217;si Nas\u0131l G\u00f6nderilir\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":1132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[99,85,87],"class_list":["post-1154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whatsapp-apisi","tag-guc-kalkani","tag-ogreticiler","tag-whatsapp-apisi","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\/tr\/wp-json\/wp\/v2\/posts\/1154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/comments?post=1154"}],"version-history":[{"count":4,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/posts\/1154\/revisions"}],"predecessor-version":[{"id":4075,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/posts\/1154\/revisions\/4075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/media\/1132"}],"wp:attachment":[{"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/media?parent=1154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/categories?post=1154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/tr\/wp-json\/wp\/v2\/tags?post=1154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}