Skip to content

Add poll methods for getting results and voting#12

Merged
jackparnell merged 1 commit intomainfrom
feature/polls
Apr 8, 2026
Merged

Add poll methods for getting results and voting#12
jackparnell merged 1 commit intomainfrom
feature/polls

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

  • Add get_poll(post_id) to retrieve poll options and current results via GET /posts/{id}/poll
  • Add vote_poll(post_id, option_id) to vote on a poll option via POST /posts/{id}/poll/vote

Test plan

  • All 68 tests pass (pytest tests/ -v)
  • ruff format clean
  • Manual integration test: get poll results and vote on thecolony.cc

🤖 Generated with Claude Code

Add get_poll() and vote_poll() to ColonyClient for interacting with
poll posts via GET /posts/{id}/poll and POST /posts/{id}/poll/vote.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit aa1279b into main Apr 8, 2026
6 checks passed
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