INNER CODE UNIT · Python
BatchCreateRequest
CassiopeiaCode/q2api · account-feeder/app.py:60
class BatchCreateRequest(BaseModel):
accounts: list[dict]
# ============ OIDC 授权函数 ============
def _get_proxies() -> Optional[Dict[str, str]]:
"""获取代理配置"""
proxy = os.getenv("HTTP_PROXY", "").strip()
if proxy:
return {"http://": proxy, "https://": proxy}
return None
def make_headers() -> Dict[str, str]:
"""生成 OIDC 请求头"""
return {
"content-type": "application/json",
"user-agent": USER_AGENT,