![]() ![]() To send a message, use the following code and replace the to parameter with the phone number for your personal WhatsApp account in the E.164 format. You can also create a QR code with the link format above that users can scan on their phone to opt-in to your sandbox. To invite someone else to your sandbox, create a link with the following format containing the opt-in message and send it to them: whatsapp://send?phone=&text= ![]() Inviting other users to your sandbox (OPTIONAL) To disconnect from the sandbox, you can reply to the message from WhatsApp with `sandbox stop`, or switch to a different sandbox by messaging ` join `. Once you join, you will only receive messages from your specific Sandbox. Your sandbox keyword can be found in the console. Send “ join ” to your Sandbox number in WhatsApp to join your Sandbox, and we’ll reply with a confirmation that you’ve joined. These limitations do not exist on your own business identity which you can request to be provisioned on WhatsApp. Once opted-in, you will only receive messages from your specific Sandbox. In order to use the Sandbox, you MUST start by opt-ing in to the sandbox by sending the phone number you chose a message from WhatsApp. The sandbox is pre-provisioned with three Twilio phone numbers that are shared across all sandbox users. We've written up development environment setup in Java, where you'll set up a dev environment and prepare to build a simple web app with Servlets.į you haven't yet set up your development environment to write some Java, head there first to get ready – and don't worry, Spark is just one step further. The next steps will involve writing some code. Auth Token - Used to authenticate REST API requestsįor all of our code snippets and curl examples, you will need to authenticate with the Account SID and Auth Token.Account SID - Used to authenticate REST API requests.You can find these in the Twilio Console. You will need this later when we're ready to send some messages.īefore you can send any messages, you'll need to gather your Twilio account credentials. To get started, select a number from the available sandbox numbers to activate your sandbox.īe sure to take note of the phone number you choose in the Sandbox. It allows you to prototype with WhatsApp immediately using a shared phone number, without waiting for a dedicated number to be approved by WhatsApp. Sign up for Twilio and activate the Sandboxīefore you can send a WhatsApp message from your web language, you'll need to sign up for a Twilio account or sign into your existing account and activate the Twilio Sandbox for WhatsApp. Set up your development environment to send and receive messages.Sign up for Twilio and activate the Sandbox.In this Quickstart, you will learn how to: This WhatsApp Quickstart will teach you how to do this using the Twilio Sandbox for WhatsApp, Java, the Twilio Java Twilio helper library, and the Spark web framework. With just a few lines of code, your application can send and receive messages with WhatsApp using the Twilio API for WhatsApp. We are working to update all screenshots to reflect the new Console experience. Some screenshots on this page may show the Legacy Console and therefore may no longer be accurate. List of Corresponding Twilio and WhatsApp Error CodesĪdvanced Opt-Out Keywords with Messaging Services The WhatsApp Business API with Twilio: Best Practices and FAQsįormatting, location, and other features in WhatsApp messaging Send and Receive Media Messages with the Twilio API for WhatsApp ![]() Send WhatsApp Notification Messages with Templates Using WhatsApp Business Accounts with Twilio Sign up for a WhatsApp Sender with the Twilio Console Key Concepts and Terms for the WhatsApp Business API with Twilio Get started with the Twilio Sandbox for WhatsApp Programmable Messaging for WhatsApp curl Quickstart Programmable Messaging for WhatsApp and Go Quickstart Programmable Messaging for WhatsApp and Java Quickstart Programmable Messaging for WhatsApp Ruby Quickstart Programmable Messaging for WhatsApp and Node.js Quickstart Programmable Messaging for WhatsApp and PHP Quickstart Programmable Messaging for WhatsApp and C#/.NET Quickstart Programmable Messaging for WhatsApp and Python Quickstart ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |