IT

파이썬 슬랙 파일 업로드 Python slack file upload

노트에버 2020. 7. 8. 10:33

import requests

url = ''http://google.ca”

files = {'file': open('/home/one.png, 'rb')}

 

r = requests.post(url, files=files)

r.text

 


슬랙 설정

 

 

 

https://api.slack.com/methods/files.upload/test

files.upload method | Slack

View another...

api.slack.com

 

files.upload 설정을 하고 url 입력 값을 파이썬에 넣는다

 

 

저작자표시 (새창열림)