Needs a helping hand setting up a kik bot with python -




need setting bot. i'm newbie in not familiar alot python perl , php.

a. created bot thru kik
b. ran pip install kik on server
c. created test code


          requests.post(             'https://api.kik.com/v1/config',             auth=('', ''),             headers={                 'content-type': 'application/json'             },             data=json.dumps({                 "webhook": "https://example.com/incoming",                 "features": {                     "manuallysendreadreceipts": false,                     "receivereadreceipts": false,                     "receivedeliveryreceipts": false,                     "receiveistyping": false                 }             })     )  

i filled in username, api key , created web hook test script in perl prints hello world.

work above code?

how run on server. have continually running , if how.

on server running python 2.6. ok.

thank-you
david strong text

i solved it:

i added @ beginning of code:

import requests; import json;


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -