I want to use Python for the first time in a long time I am making a LINE Bot with reference to this page.
https://blue-black.ink/?p=3935
What i did 1, in the terminal
pip install requests
I sent that.
2, Preparing to send a message to LINE with Python ””” token = "Enter me" payload = {"massage": "Hello World"} url = "http://notify-api.line.me/api/notify" headers = {"Authorizatino": "Bearer" + token} res = requests.post(url, data=payload, headers=headers) print(res) ”””
If you do this
Process finished with exit code 0
It was displayed like this and there was no message on the line. (This sentence seems to mean that it was sent normally)
python test.py
Enter
Response[200]
Is said to be successful when
python: can't open file 'test.py': [Errno 2] No such file or directory
Is displayed.
No message has come to the line yet. For some reason ... I wonder if I can find out in a day today ...
Recommended Posts