반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 딥러닝
- ros
- 맛집
- GPT
- 스팸
- opencv
- error
- python
- humble
- string
- pytorch
- TTS
- ubuntu
- 터미널
- Torch
- linux
- 티스토리챌린지
- tensorflow
- ROS2
- socketio
- ChatGPT
- CLASS
- 오블완
- Android
- timm
- CUDA
- 판교
- 분당맛집
- openAI
- no space left on device
Archives
- Today
- Total
목록API (1)
RoBoLoG
[Python] LINE Notify를 사용하여 LINE에 사진 메시지 전송
로봇에서 찍은 사진을 LINE 메신저로 보내고 싶어져서 만들어 보았습니다. 아래는 파이썬에서 LINE Notify를 사용하여 이미지를 전송하는 예시 코드입니다. import requests # LINE Notify 액세스 토큰 TOKEN = "" # 이미지 파일 경로 image_path = "" # LINE Notify API 엔드포인트 URL url = "https://notify-api.line.me/api/notify" # 이미지 파일 열기 with open(image_path, 'rb') as file: # POST 요청 보내기 response = requests.post( url, headers={'Authorization': 'Bearer ' + TOKEN}, files={'imageFile'..
Study/Python
2023. 6. 21. 18:22