{"id":844,"date":"2022-02-27T07:53:33","date_gmt":"2022-02-27T07:53:33","guid":{"rendered":"https:\/\/blog.ultramsg.com\/%d8%a5%d8%b1%d8%b3%d8%a7%d9%84-%d9%88%d8%a7%d8%aa%d8%b3-%d8%a7%d8%a8-api-%d9%85%d8%b9-powershellurl\/"},"modified":"2022-07-04T13:47:50","modified_gmt":"2022-07-04T13:47:50","slug":"%d8%a5%d8%b1%d8%b3%d8%a7%d9%84-%d9%88%d8%a7%d8%aa%d8%b3-%d8%a7%d8%a8-api-%d9%85%d8%b9-powershellurl","status":"publish","type":"post","link":"https:\/\/blog.ultramsg.com\/ar\/%d8%a5%d8%b1%d8%b3%d8%a7%d9%84-%d9%88%d8%a7%d8%aa%d8%b3-%d8%a7%d8%a8-api-%d9%85%d8%b9-powershellurl\/","title":{"rendered":"\u0643\u064a\u0641\u064a\u0629 \u0625\u0631\u0633\u0627\u0644 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Powershell"},"content":{"rendered":"\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">\u0645\u0642\u062f\u0645\u0629<br\/><\/h2>\n\n<p>\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u060c \u0633\u0646\u0646\u0634\u0626 \u0623\u0645\u062b\u0644\u0629 \u0628\u0633\u064a\u0637\u0629 \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 Powershell.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-api-message-using-objective-c\">\u0623\u0648\u0644 \u0631\u0633\u0627\u0644\u0629 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Powershell<\/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\">\u0625\u0631\u0633\u0627\u0644 \u0635\u0648\u0631\u0629<\/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\">\u0625\u0631\u0633\u0627\u0644 \u0645\u0644\u0641<\/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\">\u0625\u0631\u0633\u0644 \u0635\u0648\u062a<\/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\">\u0625\u0631\u0633\u0627\u0644 \u062a\u0633\u062c\u064a\u0644 \u0635\u0648\u062a\u064a<\/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\">\u0625\u0631\u0633\u0627\u0644 \u0641\u064a\u062f\u064a\u0648<\/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\">\u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637<\/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\">\u0625\u0631\u0633\u0627\u0644 \u062c\u0647\u0629 \u0627\u062a\u0635\u0627\u0644<\/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\">\u0625\u0631\u0633\u0627\u0644 \u0645\u0648\u0642\u0639 \u062c\u063a\u0631\u0627\u0641\u064a<\/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\">\u0625\u0631\u0633\u0627\u0644 Vcard<\/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>\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 \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u060c \u0633\u0646\u0646\u0634\u0626 \u0623\u0645\u062b\u0644\u0629 \u0628\u0633\u064a\u0637\u0629 \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 Powershell. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u0643\u064a\u0641\u064a\u0629 \u0625\u0631\u0633\u0627\u0644 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Powershell\" class=\"read-more button\" href=\"https:\/\/blog.ultramsg.com\/ar\/%d8%a5%d8%b1%d8%b3%d8%a7%d9%84-%d9%88%d8%a7%d8%aa%d8%b3-%d8%a7%d8%a8-api-%d9%85%d8%b9-powershellurl\/#more-844\" aria-label=\"Read more about \u0643\u064a\u0641\u064a\u0629 \u0625\u0631\u0633\u0627\u0644 WhatsApp API \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Powershell\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":729,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[43,40,38],"class_list":["post-844","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category---api","tag-powershell-ar","tag-40","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\/844","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=844"}],"version-history":[{"count":6,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts\/844\/revisions"}],"predecessor-version":[{"id":4059,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/posts\/844\/revisions\/4059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/media\/729"}],"wp:attachment":[{"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/media?parent=844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/categories?post=844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ultramsg.com\/ar\/wp-json\/wp\/v2\/tags?post=844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}