import requests import json import yaml with open(r'config.yaml', encoding='UTF-8') as f: _cfg = yaml.load(f, Loader=yaml.FullLoader) APP_KEY = _cfg['APP_KEY'] APP_SECRET = _cfg['APP_SECRET'] ACCESS_TOKEN = "" CANO = _cfg['CANO'] ACNT_PRDT_CD = _cfg['ACNT_PRDT_CD'] ACTUAL_DOMAIN = _cfg['ACTUAL_DOMAIN'] # ACCESS TOKEN 발급 def get_access_token(): url = 'oauth2/tokenP' request_url = f"{ACTUAL_DOMAIN..