Viber REST API Docs | Summary
As you might now I have just started working at a chatbot developer company and as preparation besides many other things I was reading through Viber's REST API documentation. I made some notes for myself and then I realized I could share them with you, maybe for some people it could be quite useful to have a summary.
Getting started
To be able to implement the API you need the followings:
- Active Viber Account
- Active Public account/ bot --> you can register one here
- Authentication key retrieved from your Public Account
- Account webhook
Example for Authentication key, which should be included in the HTTP Header of the requests:
X-Viber-Auth-Token: 445da6az1s345z78-dazcczb2542zv51a-e0vc5fva17480im9
Setting a webhook
Basic Text Message Example
Possible message types
- Picture
- Video
- File
- Contact
- Location (latitude, longitude)
- Url
- Sticker
- Carousel → side-scrollable multi-option panel
- Keyboard → multi-choice answer possibility
Broadcast message
Broadcast message allows you to send message to multiple receivers up to 300 people.
Change the key “receiver” to “broadcast_list” in the JSON:
Other basic API features
- Get user details
- Check if the user is online
- Post to public chat
Callbacks:
- Subscribe
- Unsubscribe
- Conversation started → response can be a welcome message
- Status (delivered/seen/failed)
Receive message from user
This was a brief summary of the API, I just wanted to list the key features and give some code examples. The whole, detailed description can be reached here:
http://developers.viber.com/docs/api/rest-bot-api/
Thanks for passing by!
Follow Upvote Resteem @goodguymate
OP Gaming
<I suggest Partiko if you are browsing from Android/iOS and would like to earn extra $>
Leave Viber REST API Docs | Summary to:
Read more #programming posts
Best Posts From goodguymate
We have not curated any of goodguymate's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From goodguymate
- First run of 2022
- Spring is on the corner
- Wonderful Hiking - Hit 20k step yesterday
- NBA Top Shot "Seeing Stars" packs drop today at 10PM PST !!!
- My Actifit Report Card: March 4 2021
- Slowly getting more into crypto - My Actifit Report Card: March 3 2021
- My Actifit Report Card: March 1 2021
- Belated Stonesplitter Orc Challenge - From a Total Beginner's Point of View
- Still recovering from my last bigger run
- Valorant goes live TODAY!
- I had my first 15km run yesterday
- Running in the forest - My Actifit Report Card: May 18 2020
- I bought some magical-internet-cash-cats! CryptoKitties - First Impressions
- Posting from actifit.io would be a much appreciated feature
- My Actifit Report Card: May 12 2020
- Thank You For Your Support! - My Actifit Report Card: May 11 2020
- Saving a hedgehog - My Actifit Report Card: May 10 2020
- [VALORANT] - First Impressions Review
- My Actifit Report Card: May 8 2020
- Easy run with girlfriend and doggo - My Actifit Report Card: May 6 2020