Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
"dropdowns": [
{
"dropdown": "Overview",
"description": "Compare all 4 official SDKs",
"description": "Python, TypeScript, Java, C#",
"icon": "cubes",
"groups": [
{
Expand All @@ -1045,56 +1045,56 @@
]
},
{
"group": "Official Repositories",
"group": "GitHub",
"pages": [
{
"type": "link",
"title": "Python SDK (GitHub)",
"title": "xdk-python",
"href": "https://github.com/xdevplatform/xdk-python"
},
{
"type": "link",
"title": "TypeScript SDK (GitHub)",
"title": "xdk-typescript",
"href": "https://github.com/xdevplatform/xdk-typescript"
},
{
"type": "link",
"title": "Java SDK (GitHub)",
"title": "xdk-java",
"href": "https://github.com/xdevplatform/xdk-java"
},
{
"type": "link",
"title": "C# SDK (GitHub)",
"title": "xdk-csharp",
"href": "https://github.com/xdevplatform/xdk-csharp"
},
{
"type": "link",
"title": "SDK Generator (Rust)",
"title": "xdk (Generator)",
"href": "https://github.com/xdevplatform/xdk"
}
]
},
{
"group": "Package Registries",
"group": "Packages",
"pages": [
{
"type": "link",
"title": "PyPI — xdk",
"title": "PyPI (xdk)",
"href": "https://pypi.org/project/xdk/"
},
{
"type": "link",
"title": "npm — @xdevplatform/xdk",
"title": "npm (@xdevplatform/xdk)",
"href": "https://www.npmjs.com/package/@xdevplatform/xdk"
},
{
"type": "link",
"title": "Maven Central — com.x:xdk",
"title": "Maven Central (com.x:xdk)",
"href": "https://central.sonatype.com/artifact/com.x/xdk"
},
{
"type": "link",
"title": "NuGet — XDevPlatform.Xdk",
"title": "NuGet (XDevPlatform.Xdk)",
"href": "https://www.nuget.org/packages/XDevPlatform.Xdk"
}
]
Expand All @@ -1103,7 +1103,7 @@
},
{
"dropdown": "Python",
"description": "pip install xdk",
"description": "xdk",
"icon": "python",
"groups": [
{
Expand Down Expand Up @@ -1151,7 +1151,7 @@
},
{
"dropdown": "TypeScript",
"description": "npm i @xdevplatform/xdk",
"description": "@xdevplatform/xdk",
"icon": "js",
"groups": [
{
Expand Down Expand Up @@ -1199,7 +1199,7 @@
},
{
"dropdown": "Java",
"description": "com.x:xdk (Maven)",
"description": "com.x:xdk",
"icon": "java",
"groups": [
{
Expand Down Expand Up @@ -1247,7 +1247,7 @@
},
{
"dropdown": "C#",
"description": "XDevPlatform.Xdk (NuGet)",
"description": "XDevPlatform.Xdk",
"icon": "code",
"groups": [
{
Expand Down
18 changes: 9 additions & 9 deletions tools-and-libraries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ Speed up your development with official SDKs, CLI tools, AI agent integrations,

## Official SDKs (XDKs)

Generated directly from the X API v2 OpenAPI specification with built-in authentication, pagination, and real-time streaming.
Client libraries for the X API v2, generated from the OpenAPI spec with auth, pagination, and streaming built in.

<CardGroup cols={2}>
<Card title="Python SDK" icon="python" href="/xdks/python/overview">
`pip install xdk` — Pydantic models, iterator pagination, OAuth 2.0 PKCE, and streaming for Python 3.8+.
<Card title="Python" icon="python" href="/xdks/python/overview">
`pip install xdk` · Python 3.8+
</Card>
<Card title="TypeScript SDK" icon="js" href="/xdks/typescript/overview">
`npm install @xdevplatform/xdk` — Full TypeScript definitions, dual ESM/CJS builds, and event-driven streaming for Node.js 18+.
<Card title="TypeScript" icon="js" href="/xdks/typescript/overview">
`npm install @xdevplatform/xdk` · Node.js 18+
</Card>
<Card title="Java SDK" icon="java" href="/xdks/java/overview">
`com.x:xdk` on Maven Central — Fluent builders, `Paginator<T>`, and `AutoCloseable` `EventStream<T>` for Java 17+.
<Card title="Java" icon="java" href="/xdks/java/overview">
`com.x:xdk` · Java 17+
</Card>
<Card title="C# / .NET SDK" icon="code" href="/xdks/csharp/overview">
`XDevPlatform.Xdk` on NuGet — Zero external runtime dependencies, `async`/`await`, and `IAsyncEnumerable<T>` for .NET 8+.
<Card title="C# / .NET" icon="code" href="/xdks/csharp/overview">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
</Card>
</CardGroup>

Expand Down
26 changes: 13 additions & 13 deletions tools/csharp-xdk.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: C# / .NET XDK
sidebarTitle: C#
description: Install and use the official C# / .NET XDK client library (XDevPlatform.Xdk) for the X API v2 with async/await, IAsyncEnumerable pagination, and EventStream.
description: C# and .NET client library for the X API v2.
keywords: ["C# SDK", ".NET SDK", "XDK", "C#", "dotnet", "NuGet", "XDevPlatform.Xdk", "X API"]
---

The [C# / .NET XDK](https://github.com/xdevplatform/xdk-csharp) (`XDevPlatform.Xdk` on NuGet) is the official .NET client library for the X API v2, targeting .NET 8+ with zero external runtime dependencies (`System.Net.Http` and `System.Text.Json`), `CancellationToken` support on every call, `Paginator<T>`, and `EventStream<T>`.
`XDevPlatform.Xdk` ([GitHub](https://github.com/xdevplatform/xdk-csharp)) is the official C# / .NET client library for the X API v2 (.NET 8+).

<CardGroup cols={2}>
<Card title="NuGet Package" icon="code" href="https://www.nuget.org/packages/XDevPlatform.Xdk">
`dotnet add package XDevPlatform.Xdk` — .NET 8.0+.
<Card title="NuGet" icon="code" href="https://www.nuget.org/packages/XDevPlatform.Xdk">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
</Card>
<Card title="GitHub Repository" icon="github" href="https://github.com/xdevplatform/xdk-csharp">
Source code, runnable examples, and issue tracker.
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-csharp">
Source code and issues.
</Card>
</CardGroup>

Expand Down Expand Up @@ -125,22 +125,22 @@ using var client = new XClient(new XClientOptions { OAuth1 = oauth1 });
## Learn more

<CardGroup cols={2}>
<Card title="Installation" icon="download" href="/xdks/csharp/install">
.NET CLI, csproj configuration, and DI setup.
<Card title="Install" icon="download" href="/xdks/csharp/install">
Add `XDevPlatform.Xdk` from NuGet.
</Card>
<Card title="Quickstart" icon="/icons/xds/icon-rocket.svg" href="/xdks/csharp/quickstart">
Step-by-step first request walkthrough.
Make your first request.
</Card>
<Card title="Authentication" icon="/icons/xds/icon-key.svg" href="/xdks/csharp/authentication">
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.
</Card>
<Card title="Pagination" icon="arrows-left-right" href="/xdks/csharp/pagination">
`IAsyncEnumerable<T>` paging via `*Pages(...)` methods.
Iterate pages with `await foreach`.
</Card>
<Card title="Streaming" icon="satellite-dish" href="/xdks/csharp/streaming">
`await using` + `await foreach` on `EventStream<T>`.
Read live streams with `EventStream<T>`.
</Card>
<Card title="API Reference" icon="/icons/xds/icon-book.svg" href="/xdks/csharp/reference/overview">
Complete reference for all 24 resource clients.
Methods and parameters for each client.
</Card>
</CardGroup>
24 changes: 12 additions & 12 deletions tools/java-xdk.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: Java XDK
sidebarTitle: Java
description: Install and use the official Java XDK client library (com.x:xdk) for the X API v2 with fluent builders, OAuth 2.0 PKCE, Paginator, and EventStream.
description: Java client library for the X API v2.
keywords: ["Java SDK", "XDK", "Java", "Kotlin", "Maven", "Gradle", "com.x:xdk", "X API"]
---

The [Java XDK](https://github.com/xdevplatform/xdk-java) (`com.x:xdk` on Maven Central) is the official JVM client library for the X API v2, targeting Java 17+ (including Java 21, Kotlin, and Scala) with strongly typed Jackson models, `Paginator<T>`, and `AutoCloseable` `EventStream<T>`.
`com.x:xdk` ([GitHub](https://github.com/xdevplatform/xdk-java)) is the official Java client library for the X API v2 (Java 17+ and Kotlin).

<CardGroup cols={2}>
<Card title="Maven Central" icon="java" href="https://central.sonatype.com/artifact/com.x/xdk">
`com.x:xdk:0.1.2` — Java 17+.
`com.x:xdk:0.1.2` · Java 17+
</Card>
<Card title="GitHub Repository" icon="github" href="https://github.com/xdevplatform/xdk-java">
Source code, runnable examples, and issue tracker.
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-java">
Source code and issues.
</Card>
</CardGroup>

Expand Down Expand Up @@ -131,22 +131,22 @@ XClient client = XClient.builder().oauth1(oauth1).build();
## Learn more

<CardGroup cols={2}>
<Card title="Installation" icon="download" href="/xdks/java/install">
Maven, Gradle, JDK requirements, and build setup.
<Card title="Install" icon="download" href="/xdks/java/install">
Add `com.x:xdk` with Maven or Gradle.
</Card>
<Card title="Quickstart" icon="/icons/xds/icon-rocket.svg" href="/xdks/java/quickstart">
Step-by-step first request walkthrough.
Make your first request.
</Card>
<Card title="Authentication" icon="/icons/xds/icon-key.svg" href="/xdks/java/authentication">
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.
</Card>
<Card title="Pagination" icon="arrows-left-right" href="/xdks/java/pagination">
`Paginator<T>` cursor iteration via `*Pages(...)` methods.
Iterate pages with `Paginator<T>`.
</Card>
<Card title="Streaming" icon="satellite-dish" href="/xdks/java/streaming">
`EventStream<T>` with `try-with-resources` and auto-reconnect.
Read live streams with `EventStream<T>`.
</Card>
<Card title="API Reference" icon="/icons/xds/icon-book.svg" href="/xdks/java/reference/overview">
Complete reference for all 24 resource clients.
Methods and parameters for each client.
</Card>
</CardGroup>
26 changes: 13 additions & 13 deletions tools/python-xdk.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: Python XDK
sidebarTitle: Python
description: Install and use the official Python XDK client library for the X API v2, including authentication setup, paginated requests, and streaming examples.
description: Python client library for the X API v2.
keywords: ["Python SDK", "XDK", "Python", "X API", "client library", "pip", "xdk"]
---

The [Python XDK](https://github.com/xdevplatform/xdk-python) (`xdk` on PyPI) is the official Python client library for the X API v2, providing Pydantic v2 models, automatic pagination, OAuth helpers, and streaming.
`xdk` ([GitHub](https://github.com/xdevplatform/xdk-python)) is the official Python client library for the X API v2.

<CardGroup cols={2}>
<Card title="PyPI Package" icon="python" href="https://pypi.org/project/xdk/">
`pip install xdk` — Python 3.8+.
<Card title="PyPI" icon="python" href="https://pypi.org/project/xdk/">
`pip install xdk` · Python 3.8+
</Card>
<Card title="GitHub Repository" icon="github" href="https://github.com/xdevplatform/xdk-python">
Source code, release notes, and issue tracker.
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-python">
Source code and issues.
</Card>
</CardGroup>

Expand Down Expand Up @@ -106,22 +106,22 @@ client = Client(auth=oauth1)
## Learn more

<CardGroup cols={2}>
<Card title="Installation" icon="download" href="/xdks/python/install">
Virtual environments, editable installs, and verification.
<Card title="Install" icon="download" href="/xdks/python/install">
Install with pip, uv, or poetry.
</Card>
<Card title="Quickstart" icon="/icons/xds/icon-rocket.svg" href="/xdks/python/quickstart">
Step-by-step first request walkthrough.
Run your first search query.
</Card>
<Card title="Authentication" icon="/icons/xds/icon-key.svg" href="/xdks/python/authentication">
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.
</Card>
<Card title="Pagination" icon="arrows-left-right" href="/xdks/python/pagination">
Automatic iterator pagination and manual cursors.
Iterate across multi-page endpoints.
</Card>
<Card title="Streaming" icon="satellite-dish" href="/xdks/python/streaming">
Filtered stream, sample stream, and rule management.
Filtered streams and rule management.
</Card>
<Card title="API Reference" icon="/icons/xds/icon-book.svg" href="/xdks/python/reference/overview">
Complete reference for all 24 resource clients.
Methods and parameters for each client.
</Card>
</CardGroup>
26 changes: 13 additions & 13 deletions tools/typescript-xdk.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: TypeScript XDK
sidebarTitle: TypeScript
description: Install and use the official TypeScript XDK client library for the X API v2, with authentication, typed responses, pagination, and streaming examples.
description: TypeScript and JavaScript client library for the X API v2.
keywords: ["TypeScript SDK", "XDK", "TypeScript", "JavaScript", "X API", "client library", "npm", "@xdevplatform/xdk"]
---

The [TypeScript XDK](https://github.com/xdevplatform/xdk-typescript) (`@xdevplatform/xdk` on npm) is the official TypeScript and JavaScript client library for the X API v2, featuring full TypeScript types, dual ESM/CommonJS builds, async paginators, and event-driven streaming.
`@xdevplatform/xdk` ([GitHub](https://github.com/xdevplatform/xdk-typescript)) is the official TypeScript and JavaScript client library for the X API v2.

<CardGroup cols={2}>
<Card title="npm Package" icon="js" href="https://www.npmjs.com/package/@xdevplatform/xdk">
`npm install @xdevplatform/xdk` — Node.js 18+.
<Card title="npm" icon="js" href="https://www.npmjs.com/package/@xdevplatform/xdk">
`npm install @xdevplatform/xdk` · Node.js 18+
</Card>
<Card title="GitHub Repository" icon="github" href="https://github.com/xdevplatform/xdk-typescript">
Source code, release notes, and issue tracker.
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-typescript">
Source code and issues.
</Card>
</CardGroup>

Expand Down Expand Up @@ -117,22 +117,22 @@ const client = new Client({ oauth1 });
## Learn more

<CardGroup cols={2}>
<Card title="Installation" icon="download" href="/xdks/typescript/install">
Package managers, ESM/CommonJS usage, and requirements.
<Card title="Install" icon="download" href="/xdks/typescript/install">
Install with npm, pnpm, yarn, or bun.
</Card>
<Card title="Quickstart" icon="/icons/xds/icon-rocket.svg" href="/xdks/typescript/quickstart">
Step-by-step first request walkthrough.
Make your first request.
</Card>
<Card title="Authentication" icon="/icons/xds/icon-key.svg" href="/xdks/typescript/authentication">
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.
</Card>
<Card title="Pagination" icon="arrows-left-right" href="/xdks/typescript/pagination">
`UserPaginator`, `PostPaginator`, and async iteration.
Async iteration and manual paging.
</Card>
<Card title="Streaming" icon="satellite-dish" href="/xdks/typescript/streaming">
`EventDrivenStream` listeners and `for await` consumption.
Event listeners and async iteration.
</Card>
<Card title="API Reference" icon="/icons/xds/icon-book.svg" href="/xdks/typescript/reference/overview">
Complete reference for all 24 resource clients.
Methods and parameters for each client.
</Card>
</CardGroup>
Loading
Loading