Repository navigation
feat: add full XDK sample parity & CI for Java, C#, TypeScript, JavaScript, and Python - #215
Merged
Merged
Conversation
- Modernize java/ (80 samples + pom.xml + README.md) to official com.x:xdk (Java 17+), replacing legacy raw Apache HttpClient/TwitterCredentials demos - Add csharp/ (80 samples + XdkSamples.csproj + Program.cs CLI runner + README.md) powered by official XDevPlatform.Xdk (.NET 8+) - Backfill 25 missing JavaScript samples (activity, direct_messages, media, posts, users, webhooks) + package.json in javascript/ for full parity with python/ - Refresh root README.md, llms.txt, api-index.json, and .gitignore
tcaldwell-x
force-pushed
the
feat/java-csharp-js-xdk-samples
branch
from
November 24, 2026 01:23
7226536 to
157f35b
Compare
…ting Python/JS SDK calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings
xdevplatform/samplesto full 1-for-1 XDK sample parity and automated build/typecheck CI across all official XDK languages (Python, TypeScript, JavaScript, Java, and C#):Java 17+ (
java/— 80 samples +pom.xml+README.md)com.twitter.clientlibfiles with 80com.x:xdksamples across all 11 categories (activity,compliance,direct_messages,lists,media,posts,spaces,streams,usage,users,webhooks).mvn compile(--release 17, 0 errors across all 80 source files).C# / .NET 8+ (
csharp/— 80 samples +XdkSamples.csproj+Program.csCLI +README.md)XDevPlatform.Xdksamples (namespace Xdk) covering cursor pagination (await foreachon*Pages), SSE streaming (await usingonEventStream<T>), chunked v2 video upload, andHttpListener+HMACSHA256webhook CRC validation, plus adotnet run -- <category>/<sample>runner.dotnet build -warnaserror(0 warnings, 0 errors).TypeScript (
typescript/— 84 ESM.tssamples +package.json+tsconfig.json+README.md)import { Client, OAuth2, PostPaginator, ... } from '@xdevplatform/xdk') across all 84 workflows, runnable vianpx tsx <sample>.ts.tsc --noEmit("strict": true, 0 errors).JavaScript & Python Parity + Bug Fixes (
javascript/,python/)javascript/package.jsonand backfills all 25 missing JavaScript workflows (activity,direct_messages,media,webhooks, etc.).tscand AST checks injavascript/(e.g. legacy{ body: ... }wrappers,compliance.getJobs('tweets'), updated OpenAPI v2 field/expansion enums) andpython/(stream.activity(),compliance.create_jobs(),compliance.get_jobs_by_id(),lists.delete(),lists.remove_member_by_user_id(), and v2media.upload()).CI & Catalog (
ci.yml,README.md,llms.txt,api-index.json,.gitignore).github/workflows/cla.ymlaction (the org-levellicense/claapp is active) with.github/workflows/ci.ymlverifying Python (xdk+api-index.json), JavaScript & TypeScript (node --check+tsc --noEmit --strict), Java (mvn compile), and C# (dotnet build -warnaserror) on PRs, pushes tomain, and a weekly schedule.README.md,llms.txt,.gitignore, andapi-index.json(v3.0).