Once your account is created your authentication token will appear in the account’s edit info screen (for admins only). Note: an active Viber account is needed to receive the login code to access the bot creation page.Ī unique account identifier used to validate your account in all API requests. This account will automatically be set as the account administrator during the account creation process.Ī Viber bot is required to use this integration. Gradle run -Pmain=.viber.An Active Viber account on a platform which supports bots (iOS/Android). Run the following gradle command to execute your application, replacing .viber with the package containing SendViberText: Update your adle with the following: apply plugin: 'application' mainClassName = project. We can use the application plugin for Gradle to simplify the running of our application. text ( "Don't miss out on our latest offers!" ). getMessagesClient () Īdd the following to the main method of the SendViberText class: var message = ViberTextRequest. build () MessagesClient messagesClient = client. privateKeyPath ( VONAGE_PRIVATE_KEY_PATH ). 447700900001Ĭreate a class named SendViberText and add the following code to the main method: VonageClient client = VonageClient. Replace with the number you are sending to. For sandbox testing the Messages API endpoint is or, depending on which version you have set in the sandbox dashboard. For production the previous Messages API endpoint was, the new one is. There are two versions of the API, each with their own endpoints. ![]() Real-time data feed into multiple channels using Messages APIġ0 DLC registration on the Vonage API Developer Dashboardįor production use the base URL is. Receive product information automatically via Facebook Messenger Working with WhatsApp Interactive MessagesĬreate a Vonage Messages and Dispatch Application
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |