# url
url = '[url]'
# headers
headers = {
'X-Auth-Token': accessKey
}
# param
data = {
'title': title,
'content': content
}
response = requests.post(url, headers=headers, data=data).text
참고 : https://itstudy402.tistory.com/35
'기록 > Python' 카테고리의 다른 글
[Python/Linux] 파이썬 로그 일별 생성 및 주기적으로 삭제 설정 방법 기록 (0) | 2022.10.20 |
---|---|
[Python] 파이썬 로그 찍는 방법 및 오류 해결 (0) | 2022.10.14 |
[Python] 파이썬 flask 서버에서 POST 방식으로 데이터 받기 (0) | 2022.10.14 |
[Pycharm] 파이참에서 원격서버 SSH 연결해서 코드 자동 반영하는 방법 (0) | 2022.10.06 |
[Python] 파이썬 flask api token 체크 - db 연결 & model & SQLAlchemy (0) | 2022.09.30 |