![]() ![]() The authentication token (also known as application key) is a unique and secret account identifier. All API requests and callbacks mentioned in the diagram will be explained later in this document. The following diagram describes the flow of sending and receiving messages by the account. Our partners will be able to provide you with further details about the service, such as pricing. You can see which partners cover your geographical area in their description in the link above. If you wish to message users based on their phone number and using an API, we offer a service called Business Messages that supports this.Īpplication to use this service is done via one of our official partners.Note that users’ first message to the bot will make them subscribed, but will not result in a Subscribed callback. You can see whether a user is subscribed in the subscribed parameter of the conversation_started callback. You can find the subscriber ID in the sender.id property of the Message callback, or the user.id property of the Subscribed callback. We recommend that you record the subscriber ID of each subscriber, as there’s no API for fetching all subscriber IDs for your bot.If you’re interested in discussing a partnership agreement or know more about the paid channels to promote your bot on Viber, please email and include your company details, including your company’s country. Likewise, after creating your bot it will not appear in search results in Viber, and enabling this also part of the paid services we offer to official partners. Enabling this URL is part of the paid services we offer to official partners. Please note that Viber is not responsible for promoting your bot, and that by default your bot will not have an active landing page under after creation. Once you’ve created your bot you are welcome to share it with your Viber contacts or promote it outside Viber on your website or social media channels using a deeplink. Viber’s bot platform is open and free for developers to create bots in our ecosystem.Setup account webhook – this needs to be done once during the account setup process to define your webhook and the type of responses you would like to receive.īots are currently supported on iOS and Android devices running Viber version 6.5 and above and on desktop from version 6.5.3.Each request posted to Viber by the account will need to contain the token. Once your account is created your authentication token will appear in the account’s “edit info” screen (for admins only). Account authentication token - unique account identifier used to validate your account in all API requests.Note: an active Viber account is needed to receive the login code to access the bot creation page. This account will automatically be set as the account administrator during the account creation process. An Active Viber account on a platform which supports bots (iOS/Android).In your case, instead of connecting your Youtube account, you would redirect to a page that displays the dropdown of regions, saving the region the user selects.In order to implement the API you will need the following: You OAuth with Zoom, then the redirect url takes you to OAuth with Youtube to connect your Youtube account. Again, saving the region the user selected, the access_token, refresh_token, accountID, and or userID (found by JWT parsing the access_token) in your database.Ī good example of this is the Zoom Youtube App. You create 1 Chatbot App, check the “Install” from marketplace option on the “Information” page, and after successful install the user will land on your redirect url where you display the dropdown of regions for the user to select. When a user calls your Chatbot via the Bot Endpoint Url, use their accountID/userID to lookup their region in your database and then based on the region, make calls to the respective data center. On successful OAuth, save the region the user selected, the access_token, refresh_token, accountID, and or userID (found by JWT parsing the access_token) in your database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |