Skip to content

feat: X engagement actions (repost, bookmark, follow, lookup, search) - #37

Merged
alihesari merged 5 commits into
mainfrom
feature/x-engagement
Oct 18, 2026
Merged

alihesari merged 5 commits into
mainfrom
feature/x-engagement

Conversation

@alihesari

Copy link
Copy Markdown
Member

What was added

  • inbox().repost / unrepost / bookmark / unbookmark (POST /v1/inbox/{id}/..., no body, InboxItem back), mirroring like/unlike.
  • InboxItem gains reposted, bookmarked, canRepost, canBookmark.
  • accounts().followXUser(accountId, userId) / unfollowXUser → XFollowResult, body { "user_id": ... }, mirroring the Reddit account extras.
  • accounts().getXPost(postId, accountId) → XPost and accounts().searchXPosts(XSearchParams) → XSearchPage (data + meta().nextToken()), on /v1/x/posts/{id} and /v1/x/search.
  • README (resource table, Inbox section, new "X engagement" subsection) and CHANGELOG Unreleased entry, including the reconnect and platform_balance_spent notes.

No version bump, no tag.

Testing

mvn -B verify: 177 tests, 0 failures, 0 errors (new XEngagementTest covers request method, path, query encoding, body and parsed response for every new method, through FakeTransport).

fopost-spring

Not touched: the starter does not surface the inbox or the account platform extras, so there is nothing to mirror there.

Depends on the API PR in fopost/fopost (feature/x-engagement-actions); merge after it.

@alihesari
alihesari merged commit 05a3530 into main Oct 18, 2026
3 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.

1 participant