How to set kik bot webhook

自闭症网瘾萝莉.ら 提交于 2019-12-02 17:46:02

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/36717073/how-to-set-kik-bot-webhook

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!