파이썬 requests 라이브러리를 사용하면 REST API를 호출하는 코드를 비교적 간단하게 작성할 수 있다. import requests import json def send_api(path, method): API_HOST = "http://www.example.com" url = API_HOST + path headers = {'Content-Type': 'application/json', 'charset': 'UTF-8', 'Accept': '*/*'} body = { "key1": "value1":, "key2": "value2" } try: if method == 'GET': response = requests.get(url, headers=headers) elif method == 'POS..