Skip to content

feat: add configurable Lark/Feishu region endpoints - #29

Merged
yjwong merged 1 commit into
mainfrom
feat/region-aware-endpoints
Mar 26, 2026
Merged

feat: add configurable Lark/Feishu region endpoints#29
yjwong merged 1 commit into
mainfrom
feat/region-aware-endpoints

Conversation

@yjwong

@yjwong yjwong commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds config-driven region selection (lark vs feishu) that switches OAuth and API base URLs dynamically
  • New region field in config (defaults to lark), with GetRegion() helper that validates input
  • All hardcoded larksuite.com URLs in API client and OAuth flow now use region-aware functions
  • Updates docs (README, USAGE, config example) to reference Feishu setup

Cherry-picked from #18 (by @c-w-xiaohei) to land the region support independently of the wiki command restructuring.

Test plan

  • Verify go build ./... passes
  • Test with region: "lark" (default) — existing behavior unchanged
  • Test with region: "feishu" — OAuth and API calls hit feishu.cn endpoints
  • Test with missing/invalid region — defaults to lark

cc @c-w-xiaohei

🤖 Generated with Claude Code

Use config.yaml region to switch auth and OpenAPI domains while keeping Lark as the default for backward compatibility, and document how to configure Feishu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants