feat: add get_trending_hashtags to discovery mixin #11

Merged
coding-agent-marvin8 merged 0 commits from refs/pull/11/head into main 2026-05-24 01:16:59 +00:00
coding-agent-marvin8 commented 2026-05-24 01:08:48 +00:00 (Migrated from codeberg.org)

Closes #10

What

Adds get_trending_hashtags()GET /api/v1/trends/tags — to _DiscoveryMixin, completing the four trending endpoints alongside statuses, accounts, and links.

  • Returns list[Tag] with limit/offset support
  • Tag is now exported from longwei __all__
  • Docs updated: api-methods.md, api-coverage.md, data-models.md

Tests

Three new tests in test_mixin_discovery.py: happy path, params, network error. Full suite: 677 passed, 99.66% coverage.

Closes #10 ## What Adds `get_trending_hashtags()` — `GET /api/v1/trends/tags` — to `_DiscoveryMixin`, completing the four trending endpoints alongside statuses, accounts, and links. - Returns `list[Tag]` with `limit`/`offset` support - `Tag` is now exported from `longwei` `__all__` - Docs updated: `api-methods.md`, `api-coverage.md`, `data-models.md` ## Tests Three new tests in `test_mixin_discovery.py`: happy path, params, network error. Full suite: 677 passed, 99.66% coverage.
Sign in to join this conversation.
No description provided.