{"id":843,"date":"2022-11-08T20:14:14","date_gmt":"2022-11-08T20:14:14","guid":{"rendered":"https:\/\/alvochat.com\/blog\/inviare-unapi-di-whatsapp-usando-wget\/"},"modified":"2022-11-13T07:10:11","modified_gmt":"2022-11-13T07:10:11","slug":"inviare-whatsapp-api-usare-wget","status":"publish","type":"post","link":"https:\/\/alvochat.com\/blog\/it\/inviare-whatsapp-api-usare-wget\/","title":{"rendered":"Inviare un&#8217;API di WhatsApp usando Wget"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduzione<\/h2>\n\n<p>In questo snippet di codice, imparerete come inviare un&#8217;API di WhatsApp utilizzando Wget, per inviare un messaggio di testo, modelli di WhatsApp, media, pulsanti interattivi, liste, prodotti &#8230; ecc, l&#8217;account Alvochat \u00e8 necessario per eseguire i seguenti codici. <a href=\"http:\/\/alvochat.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Create un account<\/a> se non ne avete uno.<\/p>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"first-whatsapp-message-using-curl\">Inviare un modello utilizzando l&#8217;API di WhatsApp<\/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=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data 'token=YourToken&amp;to=16315555555&amp;name=hello_world&amp;language=en_us&amp;header=&amp;body=&amp;buttons=&amp;priority=' \\\n  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/template<\/code><\/code><\/pre>\n<\/div>\n<\/div>\n\n<h2 class=\"wp-block-heading\">Inviare un messaggio di testo utilizzando l&#8217;API di WhatsApp<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data 'token=YourToken&amp;to=16315555555&amp;body=WhatsApp API on alvochat.com works good&amp;priority=&amp;preview_url=&amp;message_id=' \\\n  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/chat<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Invia immagine<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/image<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Inviare l&#8217;audio<\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data 'token=YourToken&amp;to=16315555555&amp;audio=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/audio\/1.mp3&amp;priority=&amp;message_id=' \\\n  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/audio<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Invia il video<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/video<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Inviare il documento  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/document<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Invia l&#8217;adesivo<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data 'token=YourToken&amp;to=16315555555&amp;sticker=https:\/\/alvochat-example.s3-accelerate.amazonaws.com\/sticker\/1.webp&amp;priority=&amp;message_id=' \\\n  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/sticker<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Inviare il contatto<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data 'token=YourToken&amp;to=16315555555&amp;contact=&amp;priority=&amp;message_id=' \\\n  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/contact<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Invia posizione<\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/location<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Inviare l&#8217;elenco  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/list<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Pulsante di invio  <\/h2>\n\n<p><\/p>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/button<\/code><\/code><\/pre>\n\n<p><\/p>\n\n<h2 class=\"wp-block-heading\">Inviare i prodotti  <\/h2>\n\n<pre class=\"wp-block-code\"><code><code data-enlighter-language=\"powershell\" class=\"EnlighterJSRAW\">wget --quiet \\\n  --method POST \\\n  --header 'content-type:application\/x-www-form-urlencoded' \\\n  --body-data '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  --output-document \\\n  - https:\/\/api.alvochat.com\/instance1199\/messages\/product<\/code><\/code><\/pre>\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n<p>\u00c8 possibile consultare la documentazione completa dell&#8217;API di Whatsapp <a href=\"https:\/\/alvochat.com\/docs\/\" data-type=\"URL\" data-id=\"https:\/\/alvochat.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">qui<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduzione In questo snippet di codice, imparerete come inviare un&#8217;API di WhatsApp utilizzando Wget, per &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Inviare un&#8217;API di WhatsApp usando Wget\" class=\"read-more button\" href=\"https:\/\/alvochat.com\/blog\/it\/inviare-whatsapp-api-usare-wget\/#more-843\" aria-label=\"Per saperne di pi\u00f9 su Inviare un&#8217;API di WhatsApp usando Wget\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":457,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"%title% | %currentyear%","rank_math_description":"In questo frammento di codice, imparerete come inviare un'API di WhatsApp utilizzando Wget, per inviare un messaggio di testo, Modelli, media, pulsanti, liste, prodotti\n","rank_math_focus_keyword":"Wget, API WhatsApp","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[87,88],"tags":[89,90],"class_list":["post-843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-it","category-whatsappapi-it","tag-api-whatsapp-it","tag-tutorial-it","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-Wget.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/posts\/843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":1,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/posts\/843\/revisions\/844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/media\/457"}],"wp:attachment":[{"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvochat.com\/blog\/it\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}