I am trying to setup my first test bot in kik messanger , tried to set up webhhok using php:
https://api.kik.com/v1/config?botname:token/?webhook=https://example.com
Please advise, how to set up webhook using php url (For Telegram bot such request works fine).
Thank you
You need to use a POST and not a GET. I used Postman. After setting Basic Auth header with your bot username and API key, then Content-type header to "application/json", I changed the body type to "raw" and just entered in the json data I wanted my config to be:
{
"webhook": [your webhook url here],
"features": {
"receiveReadReceipts": false,
"receiveIsTyping": false,
"manuallySendReadReceipts": false,
"receiveDeliveryReceipts": false
}
}
When I sent the request, the response had my config data returned in the response. This also worked when I needed to change one of the config parameters. Hope this helps.