Skip to content

feat(social): implement X API posting#258

Open
thejaytang wants to merge 2 commits into
profullstack:masterfrom
thejaytang:social-x-api-posting
Open

feat(social): implement X API posting#258
thejaytang wants to merge 2 commits into
profullstack:masterfrom
thejaytang:social-x-api-posting

Conversation

@thejaytang
Copy link
Copy Markdown

Summary

  • replace the X social adapter fake success path with official X API v2 Post creation for mode=api
  • post to /2/tweets with bearer user access tokens
  • support text posts, replies, quote IDs, and pre-uploaded media IDs
  • reject unsupported browser/raw media paths explicitly
  • add social contract coverage plus focused mocked API tests for success, media validation, and X error responses

Context

Closes #257
References #6

X API docs used:

Validation

  • corepack pnpm --filter @profullstack/sh1pt-social-x typecheck
  • corepack pnpm vitest run packages/social/x/src/index.test.ts
  • corepack pnpm --filter @profullstack/sh1pt-social-x build

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.

Implement X API social posting adapter

2 participants