diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml
index 0f8eedf15..280f1a604 100644
--- a/.github/workflows/update-docs.yml
+++ b/.github/workflows/update-docs.yml
@@ -2,6 +2,8 @@ name: Update Documentation
on:
workflow_dispatch:
+ repository_dispatch:
+ types: [xdk-released]
schedule:
- cron: '0 17 * * *' # 9am PT
- cron: '0 20 * * *' # 12pm PT
@@ -14,83 +16,57 @@ jobs:
permissions:
contents: write
steps:
- - name: Checkout Repository
- uses: actions/checkout@v3
+ - name: Checkout Docs Repository
+ uses: actions/checkout@v4
+
+ - name: Checkout XDK Generator
+ uses: actions/checkout@v4
+ with:
+ repository: xdevplatform/xdk
+ ref: main
+ path: .xdk-gen
- name: Set Up Node.js
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
node-version: '20'
+ - name: Set Up Rust
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Cache XDK Rust Build
+ uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: .xdk-gen
+
- name: Fetch Latest OpenAPI Specification
run: |
curl --fail --silent --show-error --location \
--retry 3 --retry-delay 5 --max-time 120 \
-o openapi.json \
https://api.x.com/2/openapi.json
- # Fail early if the response is not valid JSON (e.g. an error page)
jq -e .openapi openapi.json > /dev/null
- - name: Remove Existing api-reference Directory
- run: rm -rf api-reference
-
- - name: Generate MDX Files
- run: npx @mintlify/scraping@latest openapi-file ./openapi.json -o api-reference
-
- - name: Rename Subdirectories
+ - name: Sync XDK Reference, OpenAPI Code Samples Overlay, and Endpoint Stubs
run: |
- if [ -d "api-reference/tweets" ]; then
- mv api-reference/tweets api-reference/posts
- fi
- # Add more rename commands here if needed, e.g.:
- # if [ -d "api-reference/other" ]; then
- # mv api-reference/other api-reference/newname
- # fi
- - name: Rename Files Containing '%'
- run: |
- find api-reference -type f -name '*%*.mdx' -exec bash -c '
- new_name="${0//%/}"
- if [ ! -f "$new_name" ]; then
- mv "$0" "$new_name"
- else
- echo "Cannot rename $0 to $new_name: file already exists"
- fi
- ' {} \;
- - name: Move Files to x-api
- run: |
- # Function to move files from api-reference to x-api
- move_files() {
- local src_dir=$1
- local dest_dir=$2
- for item in "$src_dir"/*; do
- if [ -d "$item" ]; then
- # Handle subdirectories
- local base_name=$(basename "$item")
- local new_dest="$dest_dir/$base_name"
- mkdir -p "$new_dest" # Create subdirectory in x-api if it doesn’t exist
- move_files "$item" "$new_dest" # Recursively move contents
- elif [ -f "$item" ]; then
- # Move individual files
- local file_name=$(basename "$item")
- local dest_file="$dest_dir/$file_name"
- mv "$item" "$dest_file" # Move file to x-api subdirectory
- fi
- done
- }
-
- # Start moving files from api-reference to x-api
- move_files "api-reference" "x-api"
+ cargo run --manifest-path .xdk-gen/Cargo.toml --bin xdk-build -- \
+ docs --spec ./openapi.json --output . --sync-endpoint-stubs
+ rm -rf .xdk-gen
- - name: Remove api-reference Directory
- run: rm -rf api-reference
+ - name: Validate Mintlify Build & XDK Docs
+ run: |
+ npx --yes mint@latest validate --no-build --files "xdks/**" "tools/**" "tools-and-libraries.mdx"
+ npx --yes mint@latest validate --no-build --disable unknown-component
+ npx --yes mint@latest broken-links --files "xdks/**" "tools/**" "tools-and-libraries.mdx"
- name: Commit and Push Changes
run: |
- git config --local user.email "action@github.com"
- git config --local user.name "GitHub Action"
- git add openapi.json x-api
- if git commit -m "Update documentation with latest OpenAPI spec"; then
- git push
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add openapi.json overlays/xdk-code-samples.json docs.json xdks tools tools-and-libraries.mdx x-api
+ if git diff --cached --quiet; then
+ echo "No documentation changes to commit."
else
- echo "No changes to commit"
+ git commit -m "chore: sync OpenAPI spec, XDK reference, and code samples overlay"
+ git push
fi
diff --git a/.github/workflows/validate-docs.yml b/.github/workflows/validate-docs.yml
new file mode 100644
index 000000000..5e6580c19
--- /dev/null
+++ b/.github/workflows/validate-docs.yml
@@ -0,0 +1,27 @@
+name: Validate Docs
+
+on:
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+
+jobs:
+ validate:
+ name: Mintlify Validation
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set Up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ - name: Validate XDK & Tools Pages
+ run: npx --yes mint@latest validate --no-build --files "xdks/**" "tools/**" "tools-and-libraries.mdx"
+
+ - name: Validate OpenAPI Spec, Overlay, and Navigation
+ run: npx --yes mint@latest validate --no-build --disable unknown-component
+
+ - name: Check XDK & Tools Internal Links
+ run: npx --yes mint@latest broken-links --files "xdks/**" "tools/**" "tools-and-libraries.mdx"
diff --git a/.well-known/llms.txt b/.well-known/llms.txt
index f560f75ae..969ddc8eb 100644
--- a/.well-known/llms.txt
+++ b/.well-known/llms.txt
@@ -15,8 +15,8 @@
- [X API v2 — Full Index](https://docs.x.com/x-api/llms.txt): 370+ reference pages (Posts, Users, DMs, Lists, Spaces, Streams, Compliance, Webhooks, Media, etc.)
- [Enterprise APIs — Full Index](https://docs.x.com/enterprise-api/llms.txt): Account Activity, X Activity (XAA), Compliance, Chat, Communities, Direct Messages, News, Trends, Webhooks, and historical GNIP/PowerTrack
- [Ads API — Full Index](https://docs.x.com/x-ads-api/llms.txt): Campaign management, creatives, audiences, analytics, lead generation, measurement, and conversions
-- [Python SDK (XDK) — Full Index](https://docs.x.com/xdks/python/llms.txt): Complete Python client, models, paginators, and streaming reference
-- [TypeScript SDK (XDK) — Full Index](https://docs.x.com/xdks/typescript/llms.txt): Full TypeScript/JavaScript client and 300+ model/interface references
+- [SDKs (XDKs) — Full Index](https://docs.x.com/xdks/llms.txt): Official Python, TypeScript, Java, and C# (.NET) SDK clients, guides, and references
+- [Python XDK](https://docs.x.com/xdks/python/llms.txt) · [TypeScript XDK](https://docs.x.com/xdks/typescript/llms.txt) · [Java XDK](https://docs.x.com/xdks/java/llms.txt) · [C# XDK](https://docs.x.com/xdks/csharp/llms.txt)
## Key Fundamentals & Tools
diff --git a/AGENT.md b/AGENT.md
index 223d9e94a..af03861ee 100644
--- a/AGENT.md
+++ b/AGENT.md
@@ -12,7 +12,7 @@ This document provides guidance for AI agents, coding assistants, and LLM-based
- https://docs.x.com/x-api/llms.txt (X API v2 — 370+ pages)
- https://docs.x.com/enterprise-api/llms.txt
- https://docs.x.com/x-ads-api/llms.txt
- - https://docs.x.com/xdks/llms.txt (Python + TypeScript XDKs)
+ - https://docs.x.com/xdks/llms.txt (Official Python, TypeScript, Java, and C# XDKs)
2. **llms-full.txt** — Complete documentation as a single Markdown file for maximum context:
- https://docs.x.com/llms-full.txt
@@ -33,7 +33,7 @@ This document provides guidance for AI agents, coding assistants, and LLM-based
- **X API v2** (`/x-api/...`): Posts, Users, Direct Messages, Lists, Spaces, Media, Streams (filtered + volume), Compliance, Webhooks, Account Activity, Trends, News, Usage, Connections.
- **Enterprise APIs** (`/enterprise-api/...`): Account Activity (webhooks), X Activity (XAA), GNIP/PowerTrack historical & real-time, Compliance.
- **Ads API** (`/x-ads-api/...`): Campaign Management, Creatives, Audiences, Analytics, Measurement, Catalog, Lead Generation.
-- **SDKs (XDKs)** (`/xdks/python/...` and `/xdks/typescript/...`): Official client libraries with full type coverage, pagination, and streaming helpers.
+- **SDKs (XDKs)** (`/xdks/overview`, `/xdks/{python,typescript,java,csharp}/...`): Official client libraries in Python, TypeScript, Java, and C# with full type coverage, pagination, and streaming helpers.
- **Fundamentals**: Authentication, rate limits, data dictionary, expansions, fields, pagination, versioning, consistency.
- **AI & Agent Tools** (`/tools/ai`, `/tools/llms-txt`, `/tools/skill-md`, `/tools/mcp`).
@@ -54,7 +54,7 @@ All pages are available in the navigation tree defined in `docs.json`.
- For deep context on the entire platform, load `llms-full.txt`.
- For structured capabilities (what actions are possible), load `skill.md`.
- For live tool calling against the X API, use the MCP server.
-- When writing code, prefer the official Python or TypeScript XDKs (full references available in their `llms.txt` files).
+- When writing code, prefer the official Python, TypeScript, Java, or C# XDKs (full references available in `/xdks/llms.txt` and per-language `llms.txt` files).
## Do Not
diff --git a/AGENTS.md b/AGENTS.md
index 223d9e94a..af03861ee 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -12,7 +12,7 @@ This document provides guidance for AI agents, coding assistants, and LLM-based
- https://docs.x.com/x-api/llms.txt (X API v2 — 370+ pages)
- https://docs.x.com/enterprise-api/llms.txt
- https://docs.x.com/x-ads-api/llms.txt
- - https://docs.x.com/xdks/llms.txt (Python + TypeScript XDKs)
+ - https://docs.x.com/xdks/llms.txt (Official Python, TypeScript, Java, and C# XDKs)
2. **llms-full.txt** — Complete documentation as a single Markdown file for maximum context:
- https://docs.x.com/llms-full.txt
@@ -33,7 +33,7 @@ This document provides guidance for AI agents, coding assistants, and LLM-based
- **X API v2** (`/x-api/...`): Posts, Users, Direct Messages, Lists, Spaces, Media, Streams (filtered + volume), Compliance, Webhooks, Account Activity, Trends, News, Usage, Connections.
- **Enterprise APIs** (`/enterprise-api/...`): Account Activity (webhooks), X Activity (XAA), GNIP/PowerTrack historical & real-time, Compliance.
- **Ads API** (`/x-ads-api/...`): Campaign Management, Creatives, Audiences, Analytics, Measurement, Catalog, Lead Generation.
-- **SDKs (XDKs)** (`/xdks/python/...` and `/xdks/typescript/...`): Official client libraries with full type coverage, pagination, and streaming helpers.
+- **SDKs (XDKs)** (`/xdks/overview`, `/xdks/{python,typescript,java,csharp}/...`): Official client libraries in Python, TypeScript, Java, and C# with full type coverage, pagination, and streaming helpers.
- **Fundamentals**: Authentication, rate limits, data dictionary, expansions, fields, pagination, versioning, consistency.
- **AI & Agent Tools** (`/tools/ai`, `/tools/llms-txt`, `/tools/skill-md`, `/tools/mcp`).
@@ -54,7 +54,7 @@ All pages are available in the navigation tree defined in `docs.json`.
- For deep context on the entire platform, load `llms-full.txt`.
- For structured capabilities (what actions are possible), load `skill.md`.
- For live tool calling against the X API, use the MCP server.
-- When writing code, prefer the official Python or TypeScript XDKs (full references available in their `llms.txt` files).
+- When writing code, prefer the official Python, TypeScript, Java, or C# XDKs (full references available in `/xdks/llms.txt` and per-language `llms.txt` files).
## Do Not
diff --git a/docs.json b/docs.json
index 7f529a2d9..3f9d02630 100644
--- a/docs.json
+++ b/docs.json
@@ -51,7 +51,9 @@
"group": "SDKs (XDKs)",
"pages": [
"tools/python-xdk",
- "tools/typescript-xdk"
+ "tools/typescript-xdk",
+ "tools/java-xdk",
+ "tools/csharp-xdk"
]
}
]
@@ -1041,6 +1043,203 @@
}
]
},
+ {
+ "product": "XDKs",
+ "description": "Official Python, TypeScript, Java, and C# SDKs",
+ "icon": "cubes",
+ "tabs": [
+ {
+ "tab": "Overview",
+ "pages": [
+ "xdks/overview"
+ ]
+ },
+ {
+ "tab": "Python",
+ "groups": [
+ {
+ "group": "Guides",
+ "pages": [
+ "xdks/python/overview",
+ "xdks/python/install",
+ "xdks/python/quickstart",
+ "xdks/python/authentication",
+ "xdks/python/pagination",
+ "xdks/python/streaming"
+ ]
+ },
+ {
+ "group": "Client Reference",
+ "pages": [
+ "xdks/python/reference/overview",
+ "xdks/python/reference/clients/account",
+ "xdks/python/reference/clients/account-activity",
+ "xdks/python/reference/clients/activity",
+ "xdks/python/reference/clients/articles",
+ "xdks/python/reference/clients/bots",
+ "xdks/python/reference/clients/broadcasts",
+ "xdks/python/reference/clients/calls",
+ "xdks/python/reference/clients/chat",
+ "xdks/python/reference/clients/communities",
+ "xdks/python/reference/clients/community-notes",
+ "xdks/python/reference/clients/compliance",
+ "xdks/python/reference/clients/connections",
+ "xdks/python/reference/clients/direct-messages",
+ "xdks/python/reference/clients/general",
+ "xdks/python/reference/clients/lists",
+ "xdks/python/reference/clients/media",
+ "xdks/python/reference/clients/news",
+ "xdks/python/reference/clients/posts",
+ "xdks/python/reference/clients/spaces",
+ "xdks/python/reference/clients/stream",
+ "xdks/python/reference/clients/trends",
+ "xdks/python/reference/clients/usage",
+ "xdks/python/reference/clients/users",
+ "xdks/python/reference/clients/webhooks"
+ ]
+ }
+ ]
+ },
+ {
+ "tab": "TypeScript",
+ "groups": [
+ {
+ "group": "Guides",
+ "pages": [
+ "xdks/typescript/overview",
+ "xdks/typescript/install",
+ "xdks/typescript/quickstart",
+ "xdks/typescript/authentication",
+ "xdks/typescript/pagination",
+ "xdks/typescript/streaming"
+ ]
+ },
+ {
+ "group": "Client Reference",
+ "pages": [
+ "xdks/typescript/reference/overview",
+ "xdks/typescript/reference/clients/account",
+ "xdks/typescript/reference/clients/account-activity",
+ "xdks/typescript/reference/clients/activity",
+ "xdks/typescript/reference/clients/articles",
+ "xdks/typescript/reference/clients/bots",
+ "xdks/typescript/reference/clients/broadcasts",
+ "xdks/typescript/reference/clients/calls",
+ "xdks/typescript/reference/clients/chat",
+ "xdks/typescript/reference/clients/communities",
+ "xdks/typescript/reference/clients/community-notes",
+ "xdks/typescript/reference/clients/compliance",
+ "xdks/typescript/reference/clients/connections",
+ "xdks/typescript/reference/clients/direct-messages",
+ "xdks/typescript/reference/clients/general",
+ "xdks/typescript/reference/clients/lists",
+ "xdks/typescript/reference/clients/media",
+ "xdks/typescript/reference/clients/news",
+ "xdks/typescript/reference/clients/posts",
+ "xdks/typescript/reference/clients/spaces",
+ "xdks/typescript/reference/clients/stream",
+ "xdks/typescript/reference/clients/trends",
+ "xdks/typescript/reference/clients/usage",
+ "xdks/typescript/reference/clients/users",
+ "xdks/typescript/reference/clients/webhooks"
+ ]
+ }
+ ]
+ },
+ {
+ "tab": "Java",
+ "groups": [
+ {
+ "group": "Guides",
+ "pages": [
+ "xdks/java/overview",
+ "xdks/java/install",
+ "xdks/java/quickstart",
+ "xdks/java/authentication",
+ "xdks/java/pagination",
+ "xdks/java/streaming"
+ ]
+ },
+ {
+ "group": "Client Reference",
+ "pages": [
+ "xdks/java/reference/overview",
+ "xdks/java/reference/clients/account",
+ "xdks/java/reference/clients/account-activity",
+ "xdks/java/reference/clients/activity",
+ "xdks/java/reference/clients/articles",
+ "xdks/java/reference/clients/bots",
+ "xdks/java/reference/clients/broadcasts",
+ "xdks/java/reference/clients/calls",
+ "xdks/java/reference/clients/chat",
+ "xdks/java/reference/clients/communities",
+ "xdks/java/reference/clients/community-notes",
+ "xdks/java/reference/clients/compliance",
+ "xdks/java/reference/clients/connections",
+ "xdks/java/reference/clients/direct-messages",
+ "xdks/java/reference/clients/general",
+ "xdks/java/reference/clients/lists",
+ "xdks/java/reference/clients/media",
+ "xdks/java/reference/clients/news",
+ "xdks/java/reference/clients/posts",
+ "xdks/java/reference/clients/spaces",
+ "xdks/java/reference/clients/stream",
+ "xdks/java/reference/clients/trends",
+ "xdks/java/reference/clients/usage",
+ "xdks/java/reference/clients/users",
+ "xdks/java/reference/clients/webhooks"
+ ]
+ }
+ ]
+ },
+ {
+ "tab": "C#",
+ "groups": [
+ {
+ "group": "Guides",
+ "pages": [
+ "xdks/csharp/overview",
+ "xdks/csharp/install",
+ "xdks/csharp/quickstart",
+ "xdks/csharp/authentication",
+ "xdks/csharp/pagination",
+ "xdks/csharp/streaming"
+ ]
+ },
+ {
+ "group": "Client Reference",
+ "pages": [
+ "xdks/csharp/reference/overview",
+ "xdks/csharp/reference/clients/account",
+ "xdks/csharp/reference/clients/account-activity",
+ "xdks/csharp/reference/clients/activity",
+ "xdks/csharp/reference/clients/articles",
+ "xdks/csharp/reference/clients/bots",
+ "xdks/csharp/reference/clients/broadcasts",
+ "xdks/csharp/reference/clients/calls",
+ "xdks/csharp/reference/clients/chat",
+ "xdks/csharp/reference/clients/communities",
+ "xdks/csharp/reference/clients/community-notes",
+ "xdks/csharp/reference/clients/compliance",
+ "xdks/csharp/reference/clients/connections",
+ "xdks/csharp/reference/clients/direct-messages",
+ "xdks/csharp/reference/clients/general",
+ "xdks/csharp/reference/clients/lists",
+ "xdks/csharp/reference/clients/media",
+ "xdks/csharp/reference/clients/news",
+ "xdks/csharp/reference/clients/posts",
+ "xdks/csharp/reference/clients/spaces",
+ "xdks/csharp/reference/clients/stream",
+ "xdks/csharp/reference/clients/trends",
+ "xdks/csharp/reference/clients/usage",
+ "xdks/csharp/reference/clients/users",
+ "xdks/csharp/reference/clients/webhooks"
+ ]
+ }
+ ]
+ }
+ ]
+ },
{
"product": "Chat API",
"tabs": [
@@ -1378,892 +1577,33 @@
"pages": [
"livestream-api/chat/accessing-live-chat",
"livestream-api/chat/get-chat-history",
- "livestream-api/chat/send-chat-message",
- "livestream-api/chat/mute-user",
- "livestream-api/chat/unmute-user",
- "livestream-api/chat/list-muted-chat-users",
- "livestream-api/chat/mute-chat-user",
- "livestream-api/chat/unmute-chat-user",
- "livestream-api/chat/delete-chat-message",
- "livestream-api/chat/list-moderators",
- "livestream-api/chat/add-moderator",
- "livestream-api/chat/remove-moderator"
- ]
- }
- ]
- }
- ]
- },
- {
- "product": "Enterprise",
- "hidden": true,
- "groups": [
- {
- "group": "Overview",
- "pages": [
- "enterprise-api/introduction"
- ]
- }
- ]
- },
- {
- "product": "Python XDK",
- "hidden": true,
- "pages": [
- "xdks/python/overview",
- "xdks/python/install",
- "xdks/python/quickstart",
- "xdks/python/authentication",
- "xdks/python/pagination",
- "xdks/python/streaming",
- {
- "group": "API Reference",
- "pages": [
- "xdks/python/reference/modules",
- {
- "group": "Clients",
- "pages": [
- {
- "group": "Account Activity",
- "pages": [
- "xdks/python/reference/xdk.account_activity.client"
- ]
- },
- {
- "group": "Activity",
- "pages": [
- "xdks/python/reference/xdk.activity.client"
- ]
- },
- {
- "group": "Client",
- "pages": [
- "xdks/python/reference/xdk.client"
- ]
- },
- {
- "group": "Communities",
- "pages": [
- "xdks/python/reference/xdk.communities.client"
- ]
- },
- {
- "group": "Community Notes",
- "pages": [
- "xdks/python/reference/xdk.community_notes.client"
- ]
- },
- {
- "group": "Compliance",
- "pages": [
- "xdks/python/reference/xdk.compliance.client"
- ]
- },
- {
- "group": "Connections",
- "pages": [
- "xdks/python/reference/xdk.connections.client"
- ]
- },
- {
- "group": "Direct Messages",
- "pages": [
- "xdks/python/reference/xdk.direct_messages.client"
- ]
- },
- {
- "group": "General",
- "pages": [
- "xdks/python/reference/xdk.general.client"
- ]
- },
- {
- "group": "Lists",
- "pages": [
- "xdks/python/reference/xdk.lists.client"
- ]
- },
- {
- "group": "Media",
- "pages": [
- "xdks/python/reference/xdk.media.client"
- ]
- },
- {
- "group": "News",
- "pages": [
- "xdks/python/reference/xdk.news.client"
- ]
- },
- {
- "group": "Posts",
- "pages": [
- "xdks/python/reference/xdk.posts.client"
- ]
- },
- {
- "group": "Spaces",
- "pages": [
- "xdks/python/reference/xdk.spaces.client"
- ]
- },
- {
- "group": "Stream",
- "pages": [
- "xdks/python/reference/xdk.stream.client"
- ]
- },
- {
- "group": "Trends",
- "pages": [
- "xdks/python/reference/xdk.trends.client"
- ]
- },
- {
- "group": "Usage",
- "pages": [
- "xdks/python/reference/xdk.usage.client"
- ]
- },
- {
- "group": "Users",
- "pages": [
- "xdks/python/reference/xdk.users.client"
- ]
- },
- {
- "group": "Webhooks",
- "pages": [
- "xdks/python/reference/xdk.webhooks.client"
- ]
- }
- ]
- },
- {
- "group": "Models",
- "pages": [
- {
- "group": "Account Activity",
- "pages": [
- "xdks/python/reference/xdk.account_activity.models"
- ]
- },
- {
- "group": "Activity",
- "pages": [
- "xdks/python/reference/xdk.activity.models"
- ]
- },
- {
- "group": "Communities",
- "pages": [
- "xdks/python/reference/xdk.communities.models"
- ]
- },
- {
- "group": "Community Notes",
- "pages": [
- "xdks/python/reference/xdk.community_notes.models"
- ]
- },
- {
- "group": "Compliance",
- "pages": [
- "xdks/python/reference/xdk.compliance.models"
- ]
- },
- {
- "group": "Connections",
- "pages": [
- "xdks/python/reference/xdk.connections.models"
- ]
- },
- {
- "group": "Direct Messages",
- "pages": [
- "xdks/python/reference/xdk.direct_messages.models"
- ]
- },
- {
- "group": "General",
- "pages": [
- "xdks/python/reference/xdk.general.models"
- ]
- },
- {
- "group": "Lists",
- "pages": [
- "xdks/python/reference/xdk.lists.models"
- ]
- },
- {
- "group": "Media",
- "pages": [
- "xdks/python/reference/xdk.media.models"
- ]
- },
- {
- "group": "News",
- "pages": [
- "xdks/python/reference/xdk.news.models"
- ]
- },
- {
- "group": "Posts",
- "pages": [
- "xdks/python/reference/xdk.posts.models"
- ]
- },
- {
- "group": "Spaces",
- "pages": [
- "xdks/python/reference/xdk.spaces.models"
- ]
- },
- {
- "group": "Stream",
- "pages": [
- "xdks/python/reference/xdk.stream.models"
- ]
- },
- {
- "group": "Trends",
- "pages": [
- "xdks/python/reference/xdk.trends.models"
- ]
- },
- {
- "group": "Usage",
- "pages": [
- "xdks/python/reference/xdk.usage.models"
- ]
- },
- {
- "group": "Users",
- "pages": [
- "xdks/python/reference/xdk.users.models"
- ]
- },
- {
- "group": "Webhooks",
- "pages": [
- "xdks/python/reference/xdk.webhooks.models"
- ]
- }
- ]
- },
- {
- "group": "Core",
- "pages": [
- {
- "group": "Account Activity",
- "pages": [
- "xdks/python/reference/xdk.account_activity"
- ]
- },
- {
- "group": "Activity",
- "pages": [
- "xdks/python/reference/xdk.activity"
- ]
- },
- {
- "group": "Communities",
- "pages": [
- "xdks/python/reference/xdk.communities"
- ]
- },
- {
- "group": "Community Notes",
- "pages": [
- "xdks/python/reference/xdk.community_notes"
- ]
- },
- {
- "group": "Compliance",
- "pages": [
- "xdks/python/reference/xdk.compliance"
- ]
- },
- {
- "group": "Connections",
- "pages": [
- "xdks/python/reference/xdk.connections"
- ]
- },
- {
- "group": "Direct Messages",
- "pages": [
- "xdks/python/reference/xdk.direct_messages"
- ]
- },
- {
- "group": "General",
- "pages": [
- "xdks/python/reference/xdk.general"
- ]
- },
- {
- "group": "Lists",
- "pages": [
- "xdks/python/reference/xdk.lists"
- ]
- },
- {
- "group": "Media",
- "pages": [
- "xdks/python/reference/xdk.media"
- ]
- },
- {
- "group": "News",
- "pages": [
- "xdks/python/reference/xdk.news"
- ]
- },
- {
- "group": "Oauth1 Auth",
- "pages": [
- "xdks/python/reference/xdk.oauth1_auth"
- ]
- },
- {
- "group": "Oauth2 Auth",
- "pages": [
- "xdks/python/reference/xdk.oauth2_auth"
- ]
- },
- {
- "group": "Paginator",
- "pages": [
- "xdks/python/reference/xdk.paginator"
- ]
- },
- {
- "group": "Posts",
- "pages": [
- "xdks/python/reference/xdk.posts"
- ]
- },
- {
- "group": "Spaces",
- "pages": [
- "xdks/python/reference/xdk.spaces"
- ]
- },
- {
- "group": "Stream",
- "pages": [
- "xdks/python/reference/xdk.stream"
- ]
- },
- {
- "group": "Streaming",
- "pages": [
- "xdks/python/reference/xdk.streaming"
- ]
- },
- {
- "group": "Trends",
- "pages": [
- "xdks/python/reference/xdk.trends"
- ]
- },
- {
- "group": "Usage",
- "pages": [
- "xdks/python/reference/xdk.usage"
- ]
- },
- {
- "group": "Users",
- "pages": [
- "xdks/python/reference/xdk.users"
- ]
- },
- {
- "group": "Webhooks",
- "pages": [
- "xdks/python/reference/xdk.webhooks"
- ]
- },
- {
- "group": "Xdk",
- "pages": [
- "xdks/python/reference/xdk"
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "product": "TypeScript XDK",
- "hidden": true,
- "pages": [
- "xdks/typescript/overview",
- "xdks/typescript/install",
- "xdks/typescript/authentication",
- "xdks/typescript/pagination",
- "xdks/typescript/streaming",
- {
- "group": "API Reference",
- "pages": [
- "xdks/typescript/reference/modules",
- {
- "group": "Interfaces",
- "pages": [
- {
- "group": "Client",
- "pages": [
- "xdks/typescript/reference/interfaces/ClientConfig"
- ]
- },
- {
- "group": "Http",
- "pages": [
- "xdks/typescript/reference/interfaces/HttpClientRequestOptions",
- "xdks/typescript/reference/interfaces/HttpResponse"
- ]
- },
- {
- "group": "Misc",
- "pages": [
- "xdks/typescript/reference/interfaces/ApiResponse",
- "xdks/typescript/reference/interfaces/PaginatedResponse",
- "xdks/typescript/reference/interfaces/PaginationMeta",
- "xdks/typescript/reference/interfaces/RequestOptions",
- "xdks/typescript/reference/interfaces/Schemas.ActivityStreamingResponse",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscription",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionFilter",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionGetResponse",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionUpdateRequest",
- "xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionUpdateResponse",
- "xdks/typescript/reference/interfaces/Schemas.AddOrDeleteRulesResponse",
- "xdks/typescript/reference/interfaces/Schemas.AddRulesRequest",
- "xdks/typescript/reference/interfaces/Schemas.AllowDownloadStatus",
- "xdks/typescript/reference/interfaces/Schemas.AltText",
- "xdks/typescript/reference/interfaces/Schemas.Analytics",
- "xdks/typescript/reference/interfaces/Schemas.AppRulesCount",
- "xdks/typescript/reference/interfaces/Schemas.AudiencePolicy",
- "xdks/typescript/reference/interfaces/Schemas.BookmarkAddRequest",
- "xdks/typescript/reference/interfaces/Schemas.BookmarkFolderPostsResponse",
- "xdks/typescript/reference/interfaces/Schemas.BookmarkFoldersResponse",
- "xdks/typescript/reference/interfaces/Schemas.BookmarkMutationResponse",
- "xdks/typescript/reference/interfaces/Schemas.CashtagFields",
- "xdks/typescript/reference/interfaces/Schemas.ClientAppUsage",
- "xdks/typescript/reference/interfaces/Schemas.Community",
- "xdks/typescript/reference/interfaces/Schemas.ComplianceJob",
- "xdks/typescript/reference/interfaces/Schemas.Connection",
- "xdks/typescript/reference/interfaces/Schemas.ContentExpiration",
- "xdks/typescript/reference/interfaces/Schemas.ContextAnnotation",
- "xdks/typescript/reference/interfaces/Schemas.ContextAnnotationDomainFields",
- "xdks/typescript/reference/interfaces/Schemas.ContextAnnotationEntityFields",
- "xdks/typescript/reference/interfaces/Schemas.CreateAttachmentsMessageRequest",
- "xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobRequest",
- "xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobResponse",
- "xdks/typescript/reference/interfaces/Schemas.CreateDmConversationRequest",
- "xdks/typescript/reference/interfaces/Schemas.CreateDmEventResponse",
- "xdks/typescript/reference/interfaces/Schemas.CreateNoteRequest",
- "xdks/typescript/reference/interfaces/Schemas.CreateNoteResponse",
- "xdks/typescript/reference/interfaces/Schemas.CreateTextMessageRequest",
- "xdks/typescript/reference/interfaces/Schemas.DeleteDmResponse",
- "xdks/typescript/reference/interfaces/Schemas.DeleteNoteResponse",
- "xdks/typescript/reference/interfaces/Schemas.DeleteRulesRequest",
- "xdks/typescript/reference/interfaces/Schemas.DmEvent",
- "xdks/typescript/reference/interfaces/Schemas.DmMediaAttachment",
- "xdks/typescript/reference/interfaces/Schemas.DomainRestrictions",
- "xdks/typescript/reference/interfaces/Schemas.Engagement",
- "xdks/typescript/reference/interfaces/Schemas.EntityIndicesInclusiveExclusive",
- "xdks/typescript/reference/interfaces/Schemas.EntityIndicesInclusiveInclusive",
- "xdks/typescript/reference/interfaces/Schemas.Error",
- "xdks/typescript/reference/interfaces/Schemas.EvaluateNoteRequest",
- "xdks/typescript/reference/interfaces/Schemas.EvaluateNoteResponse",
- "xdks/typescript/reference/interfaces/Schemas.Expansions",
- "xdks/typescript/reference/interfaces/Schemas.FilteredStreamingTweetResponse",
- "xdks/typescript/reference/interfaces/Schemas.FollowActivityResponsePayload",
- "xdks/typescript/reference/interfaces/Schemas.FoundMediaOrigin",
- "xdks/typescript/reference/interfaces/Schemas.FullTextEntities",
- "xdks/typescript/reference/interfaces/Schemas.Geo",
- "xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesSearchResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ConnectionsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2DmConversationsIdDmEventsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2DmConversationsWithParticipantIdDmEventsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2DmEventsEventIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2DmEventsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidContactResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidPayment_networksResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidTransactionsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2FdxCustomersCurrentResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2Insights28hrResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2InsightsHistoricalResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2LikesFirehoseStreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2LikesSample10StreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ListsIdFollowersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ListsIdMembersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ListsIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2ListsIdTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2MediaAnalyticsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2MediaMediaKeyResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2MediaResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2NewsIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2NewsSearchResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2NotesSearchNotesWrittenResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2NotesSearchPostsEligibleForNotesResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesByCreatorIdsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdBuyersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2SpacesSearchResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TrendsByWoeidWoeidResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsAnalyticsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsAllResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsRecentResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangEnResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangJaResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangKoResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangPtResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdLikingUsersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdQuoteTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetedByResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSample10StreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSampleStreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchAllResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchRecentResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchStreamResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchStreamRulesCountsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsageTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersByResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersByUsernameUsernameResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdBlockingResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdBookmarksResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowedListsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowingResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdLikedTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdListMembershipsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdMentionsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdMutingResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdOwnedListsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdPinnedListsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdTimelinesReverseChronologicalResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersIdTweetsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersMeResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersPersonalizedTrendsResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersRepostsOfMeResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2UsersSearchResponse",
- "xdks/typescript/reference/interfaces/Schemas.Get2WebhooksResponse",
- "xdks/typescript/reference/interfaces/Schemas.HashtagFields",
- "xdks/typescript/reference/interfaces/Schemas.KillAllConnectionsResponse",
- "xdks/typescript/reference/interfaces/Schemas.LikeComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.LikeWithTweetAuthor",
- "xdks/typescript/reference/interfaces/Schemas.List",
- "xdks/typescript/reference/interfaces/Schemas.ListAddUserRequest",
- "xdks/typescript/reference/interfaces/Schemas.ListCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.ListCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListFollowedRequest",
- "xdks/typescript/reference/interfaces/Schemas.ListFollowedResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListMutateResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListPinnedRequest",
- "xdks/typescript/reference/interfaces/Schemas.ListPinnedResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListUnpinResponse",
- "xdks/typescript/reference/interfaces/Schemas.ListUpdateRequest",
- "xdks/typescript/reference/interfaces/Schemas.ListUpdateResponse",
- "xdks/typescript/reference/interfaces/Schemas.ManagementInfo",
- "xdks/typescript/reference/interfaces/Schemas.Media",
- "xdks/typescript/reference/interfaces/Schemas.MediaAnalytics",
- "xdks/typescript/reference/interfaces/Schemas.MediaMetrics",
- "xdks/typescript/reference/interfaces/Schemas.MediaTimestampedMetrics",
- "xdks/typescript/reference/interfaces/Schemas.MediaUploadAppendResponse",
- "xdks/typescript/reference/interfaces/Schemas.MediaUploadConfigRequest",
- "xdks/typescript/reference/interfaces/Schemas.MediaUploadRequestOneShot",
- "xdks/typescript/reference/interfaces/Schemas.MediaUploadResponse",
- "xdks/typescript/reference/interfaces/Schemas.MentionFields",
- "xdks/typescript/reference/interfaces/Schemas.MetadataCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.MetadataCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.Metrics",
- "xdks/typescript/reference/interfaces/Schemas.MuteUserMutationResponse",
- "xdks/typescript/reference/interfaces/Schemas.MuteUserRequest",
- "xdks/typescript/reference/interfaces/Schemas.News",
- "xdks/typescript/reference/interfaces/Schemas.NewsActivityResponsePayload",
- "xdks/typescript/reference/interfaces/Schemas.Note",
- "xdks/typescript/reference/interfaces/Schemas.NoteInfo",
- "xdks/typescript/reference/interfaces/Schemas.NoteTestResult",
- "xdks/typescript/reference/interfaces/Schemas.PersonalizedTrend",
- "xdks/typescript/reference/interfaces/Schemas.Place",
- "xdks/typescript/reference/interfaces/Schemas.PlaidAccount",
- "xdks/typescript/reference/interfaces/Schemas.PlaidAccountContact",
- "xdks/typescript/reference/interfaces/Schemas.PlaidAccountPaymentNetwork",
- "xdks/typescript/reference/interfaces/Schemas.PlaidAccountTransaction",
- "xdks/typescript/reference/interfaces/Schemas.PlaidAddress",
- "xdks/typescript/reference/interfaces/Schemas.PlaidCurrency",
- "xdks/typescript/reference/interfaces/Schemas.PlaidCustomer",
- "xdks/typescript/reference/interfaces/Schemas.PlaidName",
- "xdks/typescript/reference/interfaces/Schemas.PlaidTelephone",
- "xdks/typescript/reference/interfaces/Schemas.Point",
- "xdks/typescript/reference/interfaces/Schemas.Poll",
- "xdks/typescript/reference/interfaces/Schemas.PollOption",
- "xdks/typescript/reference/interfaces/Schemas.PreviewImage",
- "xdks/typescript/reference/interfaces/Schemas.Problem",
- "xdks/typescript/reference/interfaces/Schemas.ProcessingInfo",
- "xdks/typescript/reference/interfaces/Schemas.ProfileUpdateActivityResponsePayload",
- "xdks/typescript/reference/interfaces/Schemas.ReplayJobCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.Rule",
- "xdks/typescript/reference/interfaces/Schemas.RuleNoId",
- "xdks/typescript/reference/interfaces/Schemas.RulesCount",
- "xdks/typescript/reference/interfaces/Schemas.RulesLookupResponse",
- "xdks/typescript/reference/interfaces/Schemas.RulesResponseMetadata",
- "xdks/typescript/reference/interfaces/Schemas.SearchCount",
- "xdks/typescript/reference/interfaces/Schemas.SensitiveMediaWarning",
- "xdks/typescript/reference/interfaces/Schemas.SharedInfo",
- "xdks/typescript/reference/interfaces/Schemas.Space",
- "xdks/typescript/reference/interfaces/Schemas.Sticker",
- "xdks/typescript/reference/interfaces/Schemas.StickerInfo",
- "xdks/typescript/reference/interfaces/Schemas.StreamingLikeResponseV2",
- "xdks/typescript/reference/interfaces/Schemas.StreamingTweetResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubscriptionsCountGetResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubscriptionsCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubscriptionsDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubscriptionsGetResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubscriptionsListGetResponse",
- "xdks/typescript/reference/interfaces/Schemas.Subtitles",
- "xdks/typescript/reference/interfaces/Schemas.SubtitlesCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.SubtitlesCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.SubtitlesDeleteRequest",
- "xdks/typescript/reference/interfaces/Schemas.SubtitlesDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.TimestampedMetrics",
- "xdks/typescript/reference/interfaces/Schemas.Topic",
- "xdks/typescript/reference/interfaces/Schemas.Trend",
- "xdks/typescript/reference/interfaces/Schemas.Tweet",
- "xdks/typescript/reference/interfaces/Schemas.TweetComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.TweetCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.TweetDeleteComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.TweetDropComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetEditComplianceObjectSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetEditComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetHideRequest",
- "xdks/typescript/reference/interfaces/Schemas.TweetHideResponse",
- "xdks/typescript/reference/interfaces/Schemas.TweetNotice",
- "xdks/typescript/reference/interfaces/Schemas.TweetNoticeSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetTakedownComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetUndropComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetUnviewable",
- "xdks/typescript/reference/interfaces/Schemas.TweetUnviewableSchema",
- "xdks/typescript/reference/interfaces/Schemas.TweetWithheld",
- "xdks/typescript/reference/interfaces/Schemas.TweetWithheldComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UnlikeComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UploadSource",
- "xdks/typescript/reference/interfaces/Schemas.UrlFields",
- "xdks/typescript/reference/interfaces/Schemas.UrlImage",
- "xdks/typescript/reference/interfaces/Schemas.Usage",
- "xdks/typescript/reference/interfaces/Schemas.UsageFields",
- "xdks/typescript/reference/interfaces/Schemas.User",
- "xdks/typescript/reference/interfaces/Schemas.UserComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserDeleteComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserProfileModificationComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserProfileModificationObjectSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserProtectComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserScrubGeoObjectSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserScrubGeoSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserSuspendComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserTakedownComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserUndeleteComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserUnprotectComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserUnsuspendComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UserWithheld",
- "xdks/typescript/reference/interfaces/Schemas.UserWithheldComplianceSchema",
- "xdks/typescript/reference/interfaces/Schemas.UsersDMBlockCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersDMUnBlockCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersFollowingCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.UsersFollowingCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersFollowingDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersLikesCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.UsersLikesCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersLikesDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersRetweetsCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.UsersRetweetsCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.UsersRetweetsDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.Variant",
- "xdks/typescript/reference/interfaces/Schemas.WebhookConfig",
- "xdks/typescript/reference/interfaces/Schemas.WebhookConfigCreateRequest",
- "xdks/typescript/reference/interfaces/Schemas.WebhookConfigCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookConfigDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookConfigPutResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookLinksCreateResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookLinksDeleteResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookLinksGetResponse",
- "xdks/typescript/reference/interfaces/Schemas.WebhookReplayCreateRequest"
- ]
- }
- ]
- },
- {
- "group": "Classes",
- "pages": [
- {
- "group": "AccountActivity",
- "pages": [
- "xdks/typescript/reference/classes/AccountActivityClient"
- ]
- },
- {
- "group": "Activity",
- "pages": [
- "xdks/typescript/reference/classes/ActivityClient"
- ]
- },
- {
- "group": "Client",
- "pages": [
- "xdks/typescript/reference/classes/Client"
- ]
- },
- {
- "group": "Clients",
- "pages": [
- "xdks/typescript/reference/classes/NewsClient"
- ]
- },
- {
- "group": "Communities",
- "pages": [
- "xdks/typescript/reference/classes/CommunitiesClient"
- ]
- },
- {
- "group": "CommunityNotes",
- "pages": [
- "xdks/typescript/reference/classes/CommunityNotesClient"
- ]
- },
- {
- "group": "Compliance",
- "pages": [
- "xdks/typescript/reference/classes/ComplianceClient"
- ]
- },
- {
- "group": "Connections",
- "pages": [
- "xdks/typescript/reference/classes/ConnectionsClient"
- ]
- },
- {
- "group": "Core",
- "pages": [
- "xdks/typescript/reference/classes/ApiError"
- ]
- },
- {
- "group": "DirectMessages",
- "pages": [
- "xdks/typescript/reference/classes/DirectMessagesClient"
- ]
- },
- {
- "group": "General",
- "pages": [
- "xdks/typescript/reference/classes/GeneralClient"
- ]
- },
- {
- "group": "Http",
- "pages": [
- "xdks/typescript/reference/classes/HttpClient"
- ]
- },
- {
- "group": "Lists",
- "pages": [
- "xdks/typescript/reference/classes/ListsClient"
- ]
- },
- {
- "group": "Media",
- "pages": [
- "xdks/typescript/reference/classes/MediaClient"
- ]
- },
- {
- "group": "Pagination",
- "pages": [
- "xdks/typescript/reference/classes/EventPaginator",
- "xdks/typescript/reference/classes/PostPaginator",
- "xdks/typescript/reference/classes/UserPaginator"
- ]
- },
- {
- "group": "Paginator",
- "pages": [
- "xdks/typescript/reference/classes/Paginator"
- ]
- },
- {
- "group": "Posts",
- "pages": [
- "xdks/typescript/reference/classes/PostsClient"
- ]
- },
- {
- "group": "Spaces",
- "pages": [
- "xdks/typescript/reference/classes/SpacesClient"
- ]
- },
- {
- "group": "Stream",
- "pages": [
- "xdks/typescript/reference/classes/StreamClient"
- ]
- },
- {
- "group": "Trends",
- "pages": [
- "xdks/typescript/reference/classes/TrendsClient"
- ]
- },
- {
- "group": "Usage",
- "pages": [
- "xdks/typescript/reference/classes/UsageClient"
- ]
- },
- {
- "group": "Users",
- "pages": [
- "xdks/typescript/reference/classes/UsersClient"
- ]
- },
- {
- "group": "Webhooks",
- "pages": [
- "xdks/typescript/reference/classes/WebhooksClient"
- ]
- }
+ "livestream-api/chat/send-chat-message",
+ "livestream-api/chat/mute-user",
+ "livestream-api/chat/unmute-user",
+ "livestream-api/chat/list-muted-chat-users",
+ "livestream-api/chat/mute-chat-user",
+ "livestream-api/chat/unmute-chat-user",
+ "livestream-api/chat/delete-chat-message",
+ "livestream-api/chat/list-moderators",
+ "livestream-api/chat/add-moderator",
+ "livestream-api/chat/remove-moderator"
]
}
]
}
]
+ },
+ {
+ "product": "Enterprise",
+ "hidden": true,
+ "groups": [
+ {
+ "group": "Overview",
+ "pages": [
+ "enterprise-api/introduction"
+ ]
+ }
+ ]
}
],
"global": {
@@ -3220,6 +2560,466 @@
"source": "/forms/livestream-api-access",
"destination": "/livestream-api/getting-started",
"permanent": true
+ },
+ {
+ "source": "/xdks/python/reference/index",
+ "destination": "/xdks/python/reference/overview"
+ },
+ {
+ "source": "/xdks/python/reference/modules",
+ "destination": "/xdks/python/reference/overview"
+ },
+ {
+ "source": "/xdks/python/reference/xdk",
+ "destination": "/xdks/python/reference/overview"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.client",
+ "destination": "/xdks/python/reference/overview"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.schemas",
+ "destination": "/xdks/python/reference/overview"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.paginator",
+ "destination": "/xdks/python/pagination"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.streaming",
+ "destination": "/xdks/python/streaming"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.oauth1_auth",
+ "destination": "/xdks/python/authentication"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.oauth2_auth",
+ "destination": "/xdks/python/authentication"
+ },
+ {
+ "source": "/xdks/typescript/reference/index",
+ "destination": "/xdks/typescript/reference/overview"
+ },
+ {
+ "source": "/xdks/typescript/reference/modules",
+ "destination": "/xdks/typescript/reference/overview"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/Client",
+ "destination": "/xdks/typescript/reference/overview"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/Paginator",
+ "destination": "/xdks/typescript/pagination"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/EventDrivenStream",
+ "destination": "/xdks/typescript/streaming"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/OAuth1",
+ "destination": "/xdks/typescript/authentication"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/OAuth2",
+ "destination": "/xdks/typescript/authentication"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account",
+ "destination": "/xdks/python/reference/clients/account"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account.client",
+ "destination": "/xdks/python/reference/clients/account"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account.models",
+ "destination": "/xdks/python/reference/clients/account"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/AccountClient",
+ "destination": "/xdks/typescript/reference/clients/account"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account_activity",
+ "destination": "/xdks/python/reference/clients/account-activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account_activity.client",
+ "destination": "/xdks/python/reference/clients/account-activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.account_activity.models",
+ "destination": "/xdks/python/reference/clients/account-activity"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/AccountActivityClient",
+ "destination": "/xdks/typescript/reference/clients/account-activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.activity",
+ "destination": "/xdks/python/reference/clients/activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.activity.client",
+ "destination": "/xdks/python/reference/clients/activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.activity.models",
+ "destination": "/xdks/python/reference/clients/activity"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ActivityClient",
+ "destination": "/xdks/typescript/reference/clients/activity"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.articles",
+ "destination": "/xdks/python/reference/clients/articles"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.articles.client",
+ "destination": "/xdks/python/reference/clients/articles"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.articles.models",
+ "destination": "/xdks/python/reference/clients/articles"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ArticlesClient",
+ "destination": "/xdks/typescript/reference/clients/articles"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.bots",
+ "destination": "/xdks/python/reference/clients/bots"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.bots.client",
+ "destination": "/xdks/python/reference/clients/bots"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.bots.models",
+ "destination": "/xdks/python/reference/clients/bots"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/BotsClient",
+ "destination": "/xdks/typescript/reference/clients/bots"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.broadcasts",
+ "destination": "/xdks/python/reference/clients/broadcasts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.broadcasts.client",
+ "destination": "/xdks/python/reference/clients/broadcasts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.broadcasts.models",
+ "destination": "/xdks/python/reference/clients/broadcasts"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/BroadcastsClient",
+ "destination": "/xdks/typescript/reference/clients/broadcasts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.calls",
+ "destination": "/xdks/python/reference/clients/calls"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.calls.client",
+ "destination": "/xdks/python/reference/clients/calls"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.calls.models",
+ "destination": "/xdks/python/reference/clients/calls"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/CallsClient",
+ "destination": "/xdks/typescript/reference/clients/calls"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.chat",
+ "destination": "/xdks/python/reference/clients/chat"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.chat.client",
+ "destination": "/xdks/python/reference/clients/chat"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.chat.models",
+ "destination": "/xdks/python/reference/clients/chat"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ChatClient",
+ "destination": "/xdks/typescript/reference/clients/chat"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.communities",
+ "destination": "/xdks/python/reference/clients/communities"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.communities.client",
+ "destination": "/xdks/python/reference/clients/communities"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.communities.models",
+ "destination": "/xdks/python/reference/clients/communities"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/CommunitiesClient",
+ "destination": "/xdks/typescript/reference/clients/communities"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.community_notes",
+ "destination": "/xdks/python/reference/clients/community-notes"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.community_notes.client",
+ "destination": "/xdks/python/reference/clients/community-notes"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.community_notes.models",
+ "destination": "/xdks/python/reference/clients/community-notes"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/CommunityNotesClient",
+ "destination": "/xdks/typescript/reference/clients/community-notes"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.compliance",
+ "destination": "/xdks/python/reference/clients/compliance"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.compliance.client",
+ "destination": "/xdks/python/reference/clients/compliance"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.compliance.models",
+ "destination": "/xdks/python/reference/clients/compliance"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ComplianceClient",
+ "destination": "/xdks/typescript/reference/clients/compliance"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.connections",
+ "destination": "/xdks/python/reference/clients/connections"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.connections.client",
+ "destination": "/xdks/python/reference/clients/connections"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.connections.models",
+ "destination": "/xdks/python/reference/clients/connections"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ConnectionsClient",
+ "destination": "/xdks/typescript/reference/clients/connections"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.direct_messages",
+ "destination": "/xdks/python/reference/clients/direct-messages"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.direct_messages.client",
+ "destination": "/xdks/python/reference/clients/direct-messages"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.direct_messages.models",
+ "destination": "/xdks/python/reference/clients/direct-messages"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/DirectMessagesClient",
+ "destination": "/xdks/typescript/reference/clients/direct-messages"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.general",
+ "destination": "/xdks/python/reference/clients/general"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.general.client",
+ "destination": "/xdks/python/reference/clients/general"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.general.models",
+ "destination": "/xdks/python/reference/clients/general"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/GeneralClient",
+ "destination": "/xdks/typescript/reference/clients/general"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.lists",
+ "destination": "/xdks/python/reference/clients/lists"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.lists.client",
+ "destination": "/xdks/python/reference/clients/lists"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.lists.models",
+ "destination": "/xdks/python/reference/clients/lists"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/ListsClient",
+ "destination": "/xdks/typescript/reference/clients/lists"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.media",
+ "destination": "/xdks/python/reference/clients/media"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.media.client",
+ "destination": "/xdks/python/reference/clients/media"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.media.models",
+ "destination": "/xdks/python/reference/clients/media"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/MediaClient",
+ "destination": "/xdks/typescript/reference/clients/media"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.news",
+ "destination": "/xdks/python/reference/clients/news"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.news.client",
+ "destination": "/xdks/python/reference/clients/news"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.news.models",
+ "destination": "/xdks/python/reference/clients/news"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/NewsClient",
+ "destination": "/xdks/typescript/reference/clients/news"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.posts",
+ "destination": "/xdks/python/reference/clients/posts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.posts.client",
+ "destination": "/xdks/python/reference/clients/posts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.posts.models",
+ "destination": "/xdks/python/reference/clients/posts"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/PostsClient",
+ "destination": "/xdks/typescript/reference/clients/posts"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.spaces",
+ "destination": "/xdks/python/reference/clients/spaces"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.spaces.client",
+ "destination": "/xdks/python/reference/clients/spaces"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.spaces.models",
+ "destination": "/xdks/python/reference/clients/spaces"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/SpacesClient",
+ "destination": "/xdks/typescript/reference/clients/spaces"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.stream",
+ "destination": "/xdks/python/reference/clients/stream"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.stream.client",
+ "destination": "/xdks/python/reference/clients/stream"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.stream.models",
+ "destination": "/xdks/python/reference/clients/stream"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/StreamClient",
+ "destination": "/xdks/typescript/reference/clients/stream"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.trends",
+ "destination": "/xdks/python/reference/clients/trends"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.trends.client",
+ "destination": "/xdks/python/reference/clients/trends"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.trends.models",
+ "destination": "/xdks/python/reference/clients/trends"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/TrendsClient",
+ "destination": "/xdks/typescript/reference/clients/trends"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.usage",
+ "destination": "/xdks/python/reference/clients/usage"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.usage.client",
+ "destination": "/xdks/python/reference/clients/usage"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.usage.models",
+ "destination": "/xdks/python/reference/clients/usage"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/UsageClient",
+ "destination": "/xdks/typescript/reference/clients/usage"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.users",
+ "destination": "/xdks/python/reference/clients/users"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.users.client",
+ "destination": "/xdks/python/reference/clients/users"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.users.models",
+ "destination": "/xdks/python/reference/clients/users"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/UsersClient",
+ "destination": "/xdks/typescript/reference/clients/users"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.webhooks",
+ "destination": "/xdks/python/reference/clients/webhooks"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.webhooks.client",
+ "destination": "/xdks/python/reference/clients/webhooks"
+ },
+ {
+ "source": "/xdks/python/reference/xdk.webhooks.models",
+ "destination": "/xdks/python/reference/clients/webhooks"
+ },
+ {
+ "source": "/xdks/typescript/reference/classes/WebhooksClient",
+ "destination": "/xdks/typescript/reference/clients/webhooks"
+ },
+ {
+ "source": "/xdks/typescript/reference/interfaces/:slug*",
+ "destination": "/xdks/typescript/reference/overview"
+ },
+ {
+ "source": "/xdks/typescript/reference/functions/:slug*",
+ "destination": "/xdks/typescript/reference/overview"
+ },
+ {
+ "source": "/xdks/typescript/reference/variables/:slug*",
+ "destination": "/xdks/typescript/reference/overview"
}
],
"seo": {
@@ -3261,5 +3061,24 @@
}
}
]
+ },
+ "api": {
+ "openapi": {
+ "source": "openapi.json",
+ "overlays": [
+ "overlays/xdk-code-samples.json"
+ ]
+ },
+ "examples": {
+ "languages": [
+ "curl",
+ "python",
+ "typescript",
+ "java",
+ "csharp",
+ "bash"
+ ],
+ "defaults": "required"
+ }
}
}
diff --git a/enterprise-api/getting-started/important-resources.mdx b/enterprise-api/getting-started/important-resources.mdx
index b3b51ea6a..55955c48a 100644
--- a/enterprise-api/getting-started/important-resources.mdx
+++ b/enterprise-api/getting-started/important-resources.mdx
@@ -34,8 +34,10 @@ Bookmark these essential resources for X API development.
|:-----|:------------|
| [Developer Console](https://console.x.com) | Manage apps, credentials, and billing |
| [Postman Collection](https://www.postman.com/xapidevelopers/x-api-public-workspace/collection/34902927-2efc5689-99c6-4ab6-8091-996f35c2fd80) | Interactive API testing |
-| [Python SDK](/xdks/python/overview) | Official Python library |
-| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript library |
+| [Python SDK](/xdks/python/overview) | Official Python library (`xdk`) |
+| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript/JavaScript library (`@xdevplatform/xdk`) |
+| [Java SDK](/xdks/java/overview) | Official Java 17+ library (`com.x:xdk`) |
+| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ library (`XDevPlatform.Xdk`) |
| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable API specification |
---
diff --git a/enterprise-api/getting-started/make-your-first-request.mdx b/enterprise-api/getting-started/make-your-first-request.mdx
index 69f2a7596..2929c6bc3 100644
--- a/enterprise-api/getting-started/make-your-first-request.mdx
+++ b/enterprise-api/getting-started/make-your-first-request.mdx
@@ -164,8 +164,10 @@ fetch(url, {
For production use, we recommend the official SDKs:
-- [Python SDK](/xdks/python/overview)
-- [TypeScript SDK](/xdks/typescript/overview)
+- [Python SDK](/xdks/python/overview) (`pip install xdk`)
+- [TypeScript SDK](/xdks/typescript/overview) (`npm install @xdevplatform/xdk`)
+- [Java SDK](/xdks/java/overview) (`com.x:xdk` on Maven Central)
+- [C# / .NET SDK](/xdks/csharp/overview) (`dotnet add package XDevPlatform.Xdk`)
They handle authentication, pagination, and rate limiting automatically.
diff --git a/enterprise-api/introduction.mdx b/enterprise-api/introduction.mdx
index c2992e3f1..950880eeb 100644
--- a/enterprise-api/introduction.mdx
+++ b/enterprise-api/introduction.mdx
@@ -17,8 +17,8 @@ The X API Enterprise plan provides the highest level of access to X data. Get co
Explore all available endpoints, including Enterprise-exclusive ones.
-
- Official Python and TypeScript libraries.
+
+ Official Python, TypeScript, Java, and C# libraries.
@@ -219,15 +219,18 @@ Enterprise access powers the most demanding use cases on X.
## Tools & libraries
-
+
- Official Python library with async support.
+ Official Python library (`xdk`).
- Official TypeScript/JavaScript library.
+ Official TypeScript/JavaScript library (`@xdevplatform/xdk`).
+
+
+ Official Java 17+ library (`com.x:xdk`).
-
- Interactive API explorer.
+
+ Official .NET 8+ library (`XDevPlatform.Xdk`).
diff --git a/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange.mdx b/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange.mdx
index e71a51440..9b6fdc386 100644
--- a/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange.mdx
+++ b/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange.mdx
@@ -214,7 +214,7 @@ Authorization: Bearer
-With the [Python](/xdks/python/overview) or [TypeScript](/xdks/typescript/overview) XDK, pass the user's access token instead of an `OAuth1` object:
+With the [Python](/xdks/python/overview), [TypeScript](/xdks/typescript/overview), [Java](/xdks/java/overview), or [C#](/xdks/csharp/overview) XDK, pass the user's access token instead of an `OAuth1` object:
@@ -232,6 +232,20 @@ const client = new Client({ accessToken });
const me = await client.users.getMe();
```
+```java Java
+import com.x.xdk.XClient;
+
+XClient client = XClient.builder().accessToken(accessToken).build();
+var me = client.users().getMe();
+```
+
+```csharp C#
+using Xdk;
+
+using var client = new XClient(new XClientOptions { AccessToken = accessToken });
+var me = await client.Users.GetMeAsync();
+```
+
```bash cURL
curl "https://api.x.com/2/users/me" \
--header "Authorization: Bearer $ACCESS_TOKEN"
diff --git a/important-resources.mdx b/important-resources.mdx
index 1064eadbd..740402781 100644
--- a/important-resources.mdx
+++ b/important-resources.mdx
@@ -35,8 +35,10 @@ Bookmark these essential resources for X API development.
|:-----|:------------|
| [Developer Console](https://console.x.com) | Manage apps, credentials, and billing |
| [Postman Collection](https://www.postman.com/xapidevelopers/x-api-public-workspace/collection/34902927-2efc5689-99c6-4ab6-8091-996f35c2fd80) | Interactive API testing |
-| [Python SDK](/xdks/python/overview) | Official Python library |
-| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript library |
+| [Python SDK](/xdks/python/overview) | Official Python library (`xdk`) |
+| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript/JavaScript library (`@xdevplatform/xdk`) |
+| [Java SDK](/xdks/java/overview) | Official Java 17+ library (`com.x:xdk`) |
+| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ library (`XDevPlatform.Xdk`) |
| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable API specification |
---
diff --git a/llms.txt b/llms.txt
index 335cde567..52303d130 100644
--- a/llms.txt
+++ b/llms.txt
@@ -15,8 +15,8 @@
- [X API v2 — Full Index](https://docs.x.com/x-api/llms.txt): 370+ reference pages (Posts, Users, DMs, Lists, Spaces, Streams, Compliance, Webhooks, Media, etc.)
- [Enterprise APIs — Full Index](https://docs.x.com/enterprise-api/llms.txt): Account Activity, X Activity (XAA), Compliance, Chat, Communities, Direct Messages, News, Trends, Webhooks, and historical GNIP/PowerTrack
- [Ads API — Full Index](https://docs.x.com/x-ads-api/llms.txt): Campaign management, creatives, audiences, analytics, lead generation, measurement, and conversions
-- [SDKs (XDKs) — Full Index](https://docs.x.com/xdks/llms.txt): Python + TypeScript/JavaScript SDK clients, models, and references
-- [Python XDK Detail](https://docs.x.com/xdks/python/llms.txt) · [TypeScript XDK Detail](https://docs.x.com/xdks/typescript/llms.txt)
+- [SDKs (XDKs) — Full Index](https://docs.x.com/xdks/llms.txt): Official Python, TypeScript, Java, and C# (.NET) SDK clients, guides, and references
+- [Python XDK](https://docs.x.com/xdks/python/llms.txt) · [TypeScript XDK](https://docs.x.com/xdks/typescript/llms.txt) · [Java XDK](https://docs.x.com/xdks/java/llms.txt) · [C# XDK](https://docs.x.com/xdks/csharp/llms.txt)
## Key Fundamentals & Tools
diff --git a/make-your-first-request.mdx b/make-your-first-request.mdx
index 9809e96f0..cce227eb6 100644
--- a/make-your-first-request.mdx
+++ b/make-your-first-request.mdx
@@ -165,8 +165,10 @@ fetch(url, {
For production use, we recommend the official SDKs:
-- [Python SDK](/xdks/python/overview)
-- [TypeScript SDK](/xdks/typescript/overview)
+- [Python SDK](/xdks/python/overview) (`pip install xdk`)
+- [TypeScript SDK](/xdks/typescript/overview) (`npm install @xdevplatform/xdk`)
+- [Java SDK](/xdks/java/overview) (`com.x:xdk` on Maven Central)
+- [C# / .NET SDK](/xdks/csharp/overview) (`dotnet add package XDevPlatform.Xdk`)
They handle authentication, pagination, and rate limiting automatically.
diff --git a/overlays/xdk-code-samples.json b/overlays/xdk-code-samples.json
new file mode 100644
index 000000000..f659984bd
--- /dev/null
+++ b/overlays/xdk-code-samples.json
@@ -0,0 +1,8746 @@
+{
+ "overlay": "1.1.0",
+ "info": {
+ "title": "X API Official XDK & xurl Code Samples",
+ "version": "py-0.11.2_ts-0.7.2_java-0.1.2_cs-0.1.2"
+ },
+ "extends": "../openapi.json",
+ "actions": [
+ {
+ "target": "$.paths['/2/account'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.account.get_developer()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.account.getDeveloper();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.account().getDeveloper();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Account.GetDeveloperAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/account"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.account.models import EnsureRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.account.ensure(body=EnsureRequest(metadata=\"example\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.account.ensure({ metadata: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.account().ensure(new Schemas.EnsureAccountRequest().metadata(\"example\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Account.EnsureAsync(new EnsureAccountRequest { Metadata = \"example\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/account \\\n -d '{\"metadata\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account_activity/subscriptions/count'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.account_activity.get_subscription_count()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.accountActivity.getSubscriptionCount();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.accountActivity().getSubscriptionCount();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.AccountActivity.GetSubscriptionCountAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/account_activity/subscriptions/count"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account_activity/webhooks/{webhook_id}/subscriptions/all'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.account_activity.validate_subscription(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.accountActivity.validateSubscription(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.accountActivity().validateSubscription(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.AccountActivity.ValidateSubscriptionAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/account_activity/webhooks/1234567890/subscriptions/all"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account_activity/webhooks/{webhook_id}/subscriptions/all'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.account_activity.models import CreateSubscriptionRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.account_activity.create_subscription(webhook_id=\"1234567890\", body=CreateSubscriptionRequest())\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.accountActivity.createSubscription(\"1234567890\", {});\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.accountActivity().createSubscription(\"1234567890\", new Schemas.CreateAccountActivitySubscriptionRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.AccountActivity.CreateSubscriptionAsync(\"1234567890\", new CreateAccountActivitySubscriptionRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/account_activity/webhooks/1234567890/subscriptions/all \\\n -d '{}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account_activity/webhooks/{webhook_id}/subscriptions/all/list'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.account_activity.get_subscriptions(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.accountActivity.getSubscriptions(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.accountActivity().getSubscriptions(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.AccountActivity.GetSubscriptionsAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/account_activity/webhooks/1234567890/subscriptions/all/list"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.account_activity.delete_subscription(webhook_id=\"1234567890\", user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.accountActivity.deleteSubscription(\"1234567890\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.accountActivity().deleteSubscription(\"1234567890\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.AccountActivity.DeleteSubscriptionAsync(\"1234567890\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/account_activity/webhooks/1234567890/subscriptions/2244994945/all"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.activity():\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.activity();\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().activity()) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.ActivityStream();\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s /2/activity/stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/subscriptions'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.activity.delete_subscriptions_by_ids(ids=[\"1895000000000000000\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.activity.deleteSubscriptionsByIds([\"1895000000000000000\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.activity().deleteSubscriptionsByIds(List.of(\"1895000000000000000\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Activity.DeleteSubscriptionsByIdsAsync(new List { \"1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE \"/2/activity/subscriptions?ids=1895000000000000000\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/subscriptions'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.activity.get_subscriptions():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.activity.getSubscriptions();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.activity().getSubscriptionsPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Activity.GetSubscriptionsPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/activity/subscriptions"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/subscriptions'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.activity.models import CreateSubscriptionRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.activity.create_subscription(\n body=CreateSubscriptionRequest(event_type=\"profile.update.bio\", filter={\"user_id\": \"2244994945\"})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.activity.createSubscription(\n { \"event_type\": \"profile.update.bio\", filter: { \"user_id\": \"2244994945\" } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.activity().createSubscription(\n new Schemas.CreateActivitySubscriptionRequest().eventType(\"profile.update.bio\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Activity.CreateSubscriptionAsync(\n new CreateActivitySubscriptionRequest { EventType = \"profile.update.bio\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/activity/subscriptions \\\n -d '{\"event_type\":\"profile.update.bio\",\"filter\":{\"user_id\":\"2244994945\"}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/subscriptions/{subscription_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.activity.delete_subscription(subscription_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.activity.deleteSubscription(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.activity().deleteSubscription(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Activity.DeleteSubscriptionAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/activity/subscriptions/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/activity/subscriptions/{subscription_id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.activity.models import UpdateSubscriptionRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.activity.update_subscription(\n subscription_id=\"1895000000000000000\",\n body=UpdateSubscriptionRequest(tag=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.activity.updateSubscription(\"1895000000000000000\", { tag: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.activity().updateSubscription(\n \"1895000000000000000\",\n new Schemas.UpdateActivitySubscriptionRequest().tag(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Activity.UpdateSubscriptionAsync(\n \"1895000000000000000\",\n new UpdateActivitySubscriptionRequest { Tag = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/activity/subscriptions/1895000000000000000 \\\n -d '{\"tag\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/articles/draft'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.articles.models import ArticleCreateDraftRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.articles.article_create_draft(\n body=ArticleCreateDraftRequest(title=\"example\", content_state={\"blocks\": [{}], \"entities\": [{}]})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.articles.articleCreateDraft(\n { title: \"example\", \"content_state\": { blocks: [{}], entities: [{}] } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.articles().articleCreateDraft(new Schemas.ArticleCreateDraftRequest().title(\"example\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Articles.ArticleCreateDraftAsync(new ArticleCreateDraftRequest { Title = \"example\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/articles/draft \\\n -d '{\"title\":\"example\",\"content_state\":{\"blocks\":[{}],\"entities\":[{}]}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/articles/{article_id}/publish'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.articles.article_publish(article_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.articles.articlePublish(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.articles().articlePublish(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Articles.ArticlePublishAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/articles/1895000000000000000/publish"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.get()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.get();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().get();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.GetAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/bots"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.bots.models import CreateBotRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.create_bot(body=CreateBotRequest(handle=\"example\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.createBot({ handle: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().createBot(new Schemas.CreateBotRequest().handle(\"example\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.CreateBotAsync(new CreateBotRequest { Handle = \"example\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/bots \\\n -d '{\"handle\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.delete_bot(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.deleteBot(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().deleteBot(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.DeleteBotAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/bots/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.bots.models import UpdateBotRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.update_bot(id=\"1895000000000000000\", body=UpdateBotRequest(handle=\"example\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.updateBot(\"1895000000000000000\", { handle: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().updateBot(\n \"1895000000000000000\",\n new Schemas.UpdateBotRequest().handle(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.UpdateBotAsync(\"1895000000000000000\", new UpdateBotRequest { Handle = \"example\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/bots/1895000000000000000 \\\n -d '{\"handle\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots/{id}/token'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.revoke_bot_token(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.revokeBotToken(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().revokeBotToken(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.RevokeBotTokenAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/bots/1895000000000000000/token"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/bots/{id}/token'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.bots.models import RotateBotTokenRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.rotate_bot_token(\n id=\"1895000000000000000\",\n body=RotateBotTokenRequest(scopes=[\"example\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.rotateBotToken(\"1895000000000000000\", { scopes: [\"example\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().rotateBotToken(\n \"1895000000000000000\",\n new Schemas.RotateBotTokenRequest().scopes(List.of(\"example\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.RotateBotTokenAsync(\n \"1895000000000000000\",\n new RotateBotTokenRequest { Scopes = new List { \"example\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/bots/1895000000000000000/token \\\n -d '{\"scopes\":[\"example\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.broadcasts.list():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.list();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.broadcasts().listPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Broadcasts.ListPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import CreateBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.create_broadcast(body=CreateBroadcastRequest(source_id=\"1895000000000000000\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.createBroadcast({ \"source_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().createBroadcast(new Schemas.CreateBroadcastRequest().sourceId(\"1895000000000000000\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.CreateBroadcastAsync(new CreateBroadcastRequest { SourceId = \"1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts \\\n -d '{\"source_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/categories'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.broadcasts.list_live_categories()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.broadcasts.listLiveCategories();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().listLiveCategories();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.ListLiveCategoriesAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/categories"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/moderators'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_chat_moderators()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getChatModerators();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getChatModerators();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetChatModeratorsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/chat/moderators"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/moderators'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import AddChatModeratorRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.add_chat_moderator(body=AddChatModeratorRequest(user_id=\"2244994945\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.addChatModerator({ \"user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().addChatModerator(new Schemas.AddChatModeratorRequest().userId(\"2244994945\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.AddChatModeratorAsync(new AddChatModeratorRequest { UserId = \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/chat/moderators \\\n -d '{\"user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/moderators/{user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.remove_chat_moderator(user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.removeChatModerator(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().removeChatModerator(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.RemoveChatModeratorAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/chat/moderators/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/mutes'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.broadcasts.get_chat_muted_users():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getChatMutedUsers();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.broadcasts().getChatMutedUsersPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Broadcasts.GetChatMutedUsersPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/chat/mutes"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/mutes'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import MuteChatUserRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.mute_chat_user(body=MuteChatUserRequest(user_id=\"2244994945\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.muteChatUser({ \"user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().muteChatUser(new Schemas.MuteChatUserRequest().userId(\"2244994945\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.MuteChatUserAsync(new MuteChatUserRequest { UserId = \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/chat/mutes \\\n -d '{\"user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/chat/mutes/{user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.unmute_chat_user(user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.unmuteChatUser(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().unmuteChatUser(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UnmuteChatUserAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/chat/mutes/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.broadcasts.list_scheduled():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.listScheduled();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.broadcasts().listScheduledPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Broadcasts.ListScheduledPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/scheduled"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import CreateScheduledBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.create_scheduled_broadcast(\n body=CreateScheduledBroadcastRequest(source_id=\"1895000000000000000\", scheduled_start_ms=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.createScheduledBroadcast(\n { \"source_id\": \"1895000000000000000\", \"scheduled_start_ms\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().createScheduledBroadcast(\n new Schemas.CreateScheduledBroadcastRequest().sourceId(\"1895000000000000000\").scheduledStartMs(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.CreateScheduledBroadcastAsync(\n new CreateScheduledBroadcastRequest { SourceId = \"1895000000000000000\", ScheduledStartMs = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/scheduled \\\n -d '{\"source_id\":\"1895000000000000000\",\"scheduled_start_ms\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_scheduled_broadcast(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteScheduledBroadcast(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteScheduledBroadcast(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteScheduledBroadcastAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/scheduled/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_scheduled_broadcast(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getScheduledBroadcast(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getScheduledBroadcast(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetScheduledBroadcastAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/scheduled/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateScheduledBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_scheduled_broadcast(\n id=\"1895000000000000000\",\n body=UpdateScheduledBroadcastRequest(scheduled_broadcast_id=\"1895000000000000000\", scheduled_start_ms=\"example\", scheduled_end_ms=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateScheduledBroadcast(\n \"1895000000000000000\",\n { \"scheduled_broadcast_id\": \"1895000000000000000\", \"scheduled_start_ms\": \"example\", \"scheduled_end_ms\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateScheduledBroadcast(\n \"1895000000000000000\",\n new Schemas.UpdateScheduledBroadcastRequest().scheduledBroadcastId(\"1895000000000000000\").scheduledStartMs(\"example\").scheduledEndMs(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateScheduledBroadcastAsync(\n \"1895000000000000000\",\n new UpdateScheduledBroadcastRequest { ScheduledBroadcastId = \"1895000000000000000\", ScheduledStartMs = \"example\", ScheduledEndMs = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/broadcasts/scheduled/1895000000000000000 \\\n -d '{\"scheduled_broadcast_id\":\"1895000000000000000\",\"scheduled_start_ms\":\"example\",\"scheduled_end_ms\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/scheduled/{id}/live'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.go_live_scheduled_broadcast(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.goLiveScheduledBroadcast(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().goLiveScheduledBroadcast(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GoLiveScheduledBroadcastAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/scheduled/1895000000000000000/live"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_broadcast(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteBroadcast(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteBroadcast(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteBroadcastAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_broadcast(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getBroadcast(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getBroadcast(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetBroadcastAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_broadcast(\n id=\"1895000000000000000\",\n body=UpdateBroadcastRequest(live_category_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateBroadcast(\"1895000000000000000\", { \"live_category_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateBroadcast(\n \"1895000000000000000\",\n new Schemas.UpdateBroadcastRequest().liveCategoryId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateBroadcastAsync(\n \"1895000000000000000\",\n new UpdateBroadcastRequest { LiveCategoryId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/broadcasts/1895000000000000000 \\\n -d '{\"live_category_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/chat'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.broadcasts.get_broadcast_chat(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getBroadcastChat(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.broadcasts().getBroadcastChatPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Broadcasts.GetBroadcastChatPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/broadcasts/1895000000000000000/chat"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/chat'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import SendBroadcastChatRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.send_broadcast_chat(\n id=\"1895000000000000000\",\n body=SendBroadcastChatRequest(text=\"Hello from XDK!\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.sendBroadcastChat(\"1895000000000000000\", { text: \"Hello from XDK!\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().sendBroadcastChat(\n \"1895000000000000000\",\n new Schemas.SendBroadcastChatRequest().text(\"Hello from XDK!\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.SendBroadcastChatAsync(\n \"1895000000000000000\",\n new SendBroadcastChatRequest { Text = \"Hello from XDK!\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/1895000000000000000/chat \\\n -d '{\"text\":\"Hello from XDK!\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/chat/mutes'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import MuteBroadcastChatUserRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.mute_broadcast_chat_user(\n id=\"1895000000000000000\",\n body=MuteBroadcastChatUserRequest(user_id=\"2244994945\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.muteBroadcastChatUser(\"1895000000000000000\", { \"user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().muteBroadcastChatUser(\n \"1895000000000000000\",\n new Schemas.MuteBroadcastChatUserRequest().userId(\"2244994945\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.MuteBroadcastChatUserAsync(\n \"1895000000000000000\",\n new MuteBroadcastChatUserRequest { UserId = \"2244994945\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/broadcasts/1895000000000000000/chat/mutes \\\n -d '{\"user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/chat/mutes/{user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.unmute_broadcast_chat_user(id=\"1895000000000000000\", user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.unmuteBroadcastChatUser(\"1895000000000000000\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().unmuteBroadcastChatUser(\"1895000000000000000\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UnmuteBroadcastChatUserAsync(\"1895000000000000000\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/1895000000000000000/chat/mutes/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/chat/{message_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_broadcast_chat_message(id=\"1895000000000000000\", message_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteBroadcastChatMessage(\"1895000000000000000\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteBroadcastChatMessage(\"1895000000000000000\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteBroadcastChatMessageAsync(\"1895000000000000000\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/broadcasts/1895000000000000000/chat/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/broadcasts/{id}/state'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateBroadcastStateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_broadcast_state(\n id=\"1895000000000000000\",\n body=UpdateBroadcastStateRequest(state=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateBroadcastState(\"1895000000000000000\", { state: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateBroadcastState(\n \"1895000000000000000\",\n new Schemas.UpdateBroadcastStateRequest().state(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateBroadcastStateAsync(\n \"1895000000000000000\",\n new UpdateBroadcastStateRequest { State = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/broadcasts/1895000000000000000/state \\\n -d '{\"state\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import CreateCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.create_call(body=CreateCallRequest(conversation_id=\"1500000000000000000\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.createCall({ \"conversation_id\": \"1500000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().createCall(\n new Schemas.CreateCallRequest().conversationId(\"1500000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.CreateCallAsync(new CreateCallRequest { ConversationId = \"1500000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/calls \\\n -d '{\"conversation_id\":\"1500000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.list_scheduled()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.listScheduled();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().listScheduled();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.ListScheduledAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/calls/scheduled"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import ScheduleCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.schedule_call(body=ScheduleCallRequest(start_time=\"2026-01-01T00:00:00Z\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.scheduleCall({ \"start_time\": \"2026-01-01T00:00:00Z\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().scheduleCall(new Schemas.ScheduleCallRequest().startTime(\"2026-01-01T00:00:00Z\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.ScheduleCallAsync(new ScheduleCallRequest { StartTime = \"2026-01-01T00:00:00Z\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/calls/scheduled \\\n -d '{\"start_time\":\"2026-01-01T00:00:00Z\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.cancel_scheduled_call(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.cancelScheduledCall(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().cancelScheduledCall(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.CancelScheduledCallAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/calls/scheduled/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.get_scheduled_call(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.getScheduledCall(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().getScheduledCall(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.GetScheduledCallAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/calls/scheduled/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import UpdateScheduledCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.update_scheduled_call(\n id=\"1895000000000000000\",\n body=UpdateScheduledCallRequest(occurrence_start_time=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.updateScheduledCall(\"1895000000000000000\", { \"occurrence_start_time\": \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().updateScheduledCall(\n \"1895000000000000000\",\n new Schemas.UpdateScheduledCallRequest().occurrenceStartTime(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.UpdateScheduledCallAsync(\n \"1895000000000000000\",\n new UpdateScheduledCallRequest { OccurrenceStartTime = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/calls/scheduled/1895000000000000000 \\\n -d '{\"occurrence_start_time\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/scheduled/{id}/rsvp'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import RespondToScheduledCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.respond_to_scheduled_call(\n id=\"1895000000000000000\",\n body=RespondToScheduledCallRequest(response=\"accepted\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.respondToScheduledCall(\"1895000000000000000\", { response: \"accepted\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().respondToScheduledCall(\n \"1895000000000000000\",\n new Schemas.RespondToScheduledCallRequest().response(\"accepted\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.RespondToScheduledCallAsync(\n \"1895000000000000000\",\n new RespondToScheduledCallRequest { Response = \"accepted\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/calls/scheduled/1895000000000000000/rsvp \\\n -d '{\"response\":\"accepted\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.get_call(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.getCall(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().getCall(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.GetCallAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/calls/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/{id}/join'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import JoinCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.join_call(\n id=\"1895000000000000000\",\n body=JoinCallRequest(media={\"type\": \"websocket\"})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.joinCall(\"1895000000000000000\", { media: { type: \"websocket\" } });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().joinCall(\"1895000000000000000\", new Schemas.JoinCallRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.JoinCallAsync(\"1895000000000000000\", new JoinCallRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/calls/1895000000000000000/join \\\n -d '{\"media\":{\"type\":\"websocket\"}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/calls/{id}/leave'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.leave_call(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.leaveCall(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().leaveCall(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.LeaveCallAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/calls/1895000000000000000/leave"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.chat.get_conversations():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getConversations();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.chat().getConversationsPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Chat.GetConversationsPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/group'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import CreateConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.create_conversation(\n body=CreateConversationRequest(conversation_id=\"1500000000000000000\", conversation_key_version=\"example\", conversation_participant_keys=[{\"user_id\": \"2244994945\", \"encrypted_conversation_key\": \"example\", \"public_key_version\": \"example\"}], group_members=[\"example\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.createConversation(\n { \"conversation_id\": \"1500000000000000000\", \"conversation_key_version\": \"example\", \"conversation_participant_keys\": [{ \"user_id\": \"2244994945\", \"encrypted_conversation_key\": \"example\", \"public_key_version\": \"example\" }], \"group_members\": [\"example\"] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().createConversation(\n new Schemas.CreateChatConversationRequest().conversationId(\"1500000000000000000\").conversationKeyVersion(\"example\").groupMembers(List.of(\"example\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.CreateConversationAsync(\n new CreateChatConversationRequest { ConversationId = \"1500000000000000000\", ConversationKeyVersion = \"example\", GroupMembers = new List { \"example\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/group \\\n -d '{\"conversation_id\":\"1500000000000000000\",\"conversation_key_version\":\"example\",\"conversation_participant_keys\":[{\"user_id\":\"2244994945\",\"encrypted_conversation_key\":\"example\",\"public_key_version\":\"example\"}],\"group_members\":[\"example\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/group/initialize'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.initialize_group()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.initializeGroup();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().initializeGroup();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.InitializeGroupAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/group/initialize"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import DeleteConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.delete_conversation(\n id=\"1895000000000000000\",\n body=DeleteConversationRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.deleteConversation(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().deleteConversation(\"1895000000000000000\", new Schemas.DeleteChatConversationRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.DeleteConversationAsync(\"1895000000000000000\", new DeleteChatConversationRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/chat/conversations/1895000000000000000 \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.get_conversation(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getConversation(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().getConversation(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.GetConversationAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateGroupRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_group(\n id=\"1895000000000000000\",\n body=UpdateGroupRequest(modified_fields=[\"group_name\"], conversation_key_version=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateGroup(\n \"1895000000000000000\",\n { \"modified_fields\": [\"group_name\"], \"conversation_key_version\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateGroup(\n \"1895000000000000000\",\n new Schemas.UpdateChatGroupRequest().modifiedFields(List.of(\"group_name\")).conversationKeyVersion(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateGroupAsync(\n \"1895000000000000000\",\n new UpdateChatGroupRequest { ModifiedFields = new List { \"group_name\" }, ConversationKeyVersion = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/chat/conversations/1895000000000000000 \\\n -d '{\"modified_fields\":[\"group_name\"],\"conversation_key_version\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admin_requests'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.chat.get_group_admin_requests(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getGroupAdminRequests(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.chat().getGroupAdminRequestsPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Chat.GetGroupAdminRequestsPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations/1895000000000000000/admin_requests"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admin_requests'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import CreateGroupAdminRequestRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.create_group_admin_request(\n id=\"1895000000000000000\",\n body=CreateGroupAdminRequestRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.createGroupAdminRequest(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().createGroupAdminRequest(\n \"1895000000000000000\",\n new Schemas.CreateChatGroupAdminRequestRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.CreateGroupAdminRequestAsync(\"1895000000000000000\", new CreateChatGroupAdminRequestRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/admin_requests \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admin_requests/{user_id}/approve'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import ApproveGroupAdminRequestRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.approve_group_admin_request(\n id=\"1895000000000000000\",\n user_id=\"2244994945\",\n body=ApproveGroupAdminRequestRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.approveGroupAdminRequest(\n \"1895000000000000000\",\n \"2244994945\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().approveGroupAdminRequest(\n \"1895000000000000000\",\n \"2244994945\",\n new Schemas.ApproveChatGroupAdminRequestRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.ApproveGroupAdminRequestAsync(\n \"1895000000000000000\",\n \"2244994945\",\n new ApproveChatGroupAdminRequestRequest()\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/admin_requests/2244994945/approve \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admin_requests/{user_id}/reject'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import RejectGroupAdminRequestRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.reject_group_admin_request(\n id=\"1895000000000000000\",\n user_id=\"2244994945\",\n body=RejectGroupAdminRequestRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.rejectGroupAdminRequest(\n \"1895000000000000000\",\n \"2244994945\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().rejectGroupAdminRequest(\n \"1895000000000000000\",\n \"2244994945\",\n new Schemas.RejectChatGroupAdminRequestRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.RejectGroupAdminRequestAsync(\n \"1895000000000000000\",\n \"2244994945\",\n new RejectChatGroupAdminRequestRequest()\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/admin_requests/2244994945/reject \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admin_settings'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateGroupAdminSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_group_admin_settings(\n id=\"1895000000000000000\",\n body=UpdateGroupAdminSettingsRequest(block_screen_capture=True)\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateGroupAdminSettings(\"1895000000000000000\", { \"block_screen_capture\": true });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateGroupAdminSettings(\n \"1895000000000000000\",\n new Schemas.UpdateChatGroupAdminSettingsRequest().blockScreenCapture(true)\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateGroupAdminSettingsAsync(\n \"1895000000000000000\",\n new UpdateChatGroupAdminSettingsRequest { BlockScreenCapture = true }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/admin_settings \\\n -d '{\"block_screen_capture\":true}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admins'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddGroupAdminsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_group_admins(\n id=\"1895000000000000000\",\n body=AddGroupAdminsRequest(user_ids=[\"2244994945\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addGroupAdmins(\"1895000000000000000\", { \"user_ids\": [\"2244994945\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().addGroupAdmins(\n \"1895000000000000000\",\n new Schemas.AddChatGroupAdminsRequest().userIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.AddGroupAdminsAsync(\n \"1895000000000000000\",\n new AddChatGroupAdminsRequest { UserIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/admins \\\n -d '{\"user_ids\":[\"2244994945\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/admins/remove'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import RemoveGroupAdminsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.remove_group_admins(\n id=\"1895000000000000000\",\n body=RemoveGroupAdminsRequest(user_ids=[\"2244994945\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.removeGroupAdmins(\"1895000000000000000\", { \"user_ids\": [\"2244994945\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().removeGroupAdmins(\n \"1895000000000000000\",\n new Schemas.RemoveChatGroupAdminsRequest().userIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.RemoveGroupAdminsAsync(\n \"1895000000000000000\",\n new RemoveChatGroupAdminsRequest { UserIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/admins/remove \\\n -d '{\"user_ids\":[\"2244994945\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/archive'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UnarchiveConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.unarchive_conversation(\n id=\"1895000000000000000\",\n body=UnarchiveConversationRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.unarchiveConversation(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().unarchiveConversation(\n \"1895000000000000000\",\n new Schemas.UnarchiveChatConversationRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UnarchiveConversationAsync(\"1895000000000000000\", new UnarchiveChatConversationRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/chat/conversations/1895000000000000000/archive \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/archive'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import ArchiveConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.archive_conversation(\n id=\"1895000000000000000\",\n body=ArchiveConversationRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.archiveConversation(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().archiveConversation(\"1895000000000000000\", new Schemas.ArchiveChatConversationRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.ArchiveConversationAsync(\"1895000000000000000\", new ArchiveChatConversationRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/archive \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/events'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.chat.get_conversation_events(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getConversationEvents(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.chat().getConversationEventsPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Chat.GetConversationEventsPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations/1895000000000000000/events"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/invite'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import DisableGroupInviteRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.disable_group_invite(\n id=\"1895000000000000000\",\n body=DisableGroupInviteRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.disableGroupInvite(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().disableGroupInvite(\"1895000000000000000\", new Schemas.DisableChatGroupInviteRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.DisableGroupInviteAsync(\"1895000000000000000\", new DisableChatGroupInviteRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/chat/conversations/1895000000000000000/invite \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/invite'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import EnableGroupInviteRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.enable_group_invite(\n id=\"1895000000000000000\",\n body=EnableGroupInviteRequest(affiliate_user_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.enableGroupInvite(\n \"1895000000000000000\",\n { \"affiliate_user_id\": \"1895000000000000000\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().enableGroupInvite(\n \"1895000000000000000\",\n new Schemas.EnableChatGroupInviteRequest().affiliateUserId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.EnableGroupInviteAsync(\n \"1895000000000000000\",\n new EnableChatGroupInviteRequest { AffiliateUserId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/invite \\\n -d '{\"affiliate_user_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/invites/{token}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.get_group_invite(id=\"1895000000000000000\", token=\"example\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getGroupInvite(\"1895000000000000000\", \"example\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().getGroupInvite(\"1895000000000000000\", \"example\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.GetGroupInviteAsync(\"1895000000000000000\", \"example\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations/1895000000000000000/invites/example"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/join_requests'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import CreateGroupJoinRequestRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.create_group_join_request(\n id=\"1895000000000000000\",\n body=CreateGroupJoinRequestRequest(token=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.createGroupJoinRequest(\"1895000000000000000\", { token: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().createGroupJoinRequest(\n \"1895000000000000000\",\n new Schemas.CreateChatGroupJoinRequestRequest().token(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.CreateGroupJoinRequestAsync(\n \"1895000000000000000\",\n new CreateChatGroupJoinRequestRequest { Token = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/join_requests \\\n -d '{\"token\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/join_requests/reject'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import RejectGroupJoinRequestsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.reject_group_join_requests(\n id=\"1895000000000000000\",\n body=RejectGroupJoinRequestsRequest(user_ids=[\"2244994945\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.rejectGroupJoinRequests(\"1895000000000000000\", { \"user_ids\": [\"2244994945\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().rejectGroupJoinRequests(\n \"1895000000000000000\",\n new Schemas.RejectChatGroupJoinRequestsRequest().userIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.RejectGroupJoinRequestsAsync(\n \"1895000000000000000\",\n new RejectChatGroupJoinRequestsRequest { UserIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/join_requests/reject \\\n -d '{\"user_ids\":[\"2244994945\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/keys'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddConversationKeysRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_conversation_keys(\n id=\"1895000000000000000\",\n body=AddConversationKeysRequest(conversation_key_version=\"example\", conversation_participant_keys=[{\"user_id\": \"2244994945\", \"encrypted_conversation_key\": \"example\", \"public_key_version\": \"example\"}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addConversationKeys(\n \"1895000000000000000\",\n { \"conversation_key_version\": \"example\", \"conversation_participant_keys\": [{ \"user_id\": \"2244994945\", \"encrypted_conversation_key\": \"example\", \"public_key_version\": \"example\" }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().addConversationKeys(\n \"1895000000000000000\",\n new Schemas.AddConversationKeysRequest().conversationKeyVersion(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.AddConversationKeysAsync(\n \"1895000000000000000\",\n new AddConversationKeysRequest { ConversationKeyVersion = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/keys \\\n -d '{\"conversation_key_version\":\"example\",\"conversation_participant_keys\":[{\"user_id\":\"2244994945\",\"encrypted_conversation_key\":\"example\",\"public_key_version\":\"example\"}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/members'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddGroupMembersRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_group_members(\n id=\"1895000000000000000\",\n body=AddGroupMembersRequest(user_ids=[\"2244994945\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addGroupMembers(\"1895000000000000000\", { \"user_ids\": [\"2244994945\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().addGroupMembers(\n \"1895000000000000000\",\n new Schemas.AddChatGroupMembersRequest().userIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.AddGroupMembersAsync(\n \"1895000000000000000\",\n new AddChatGroupMembersRequest { UserIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/members \\\n -d '{\"user_ids\":[\"2244994945\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/members/remove'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import RemoveGroupMembersRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.remove_group_members(\n id=\"1895000000000000000\",\n body=RemoveGroupMembersRequest(user_ids=[\"2244994945\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.removeGroupMembers(\"1895000000000000000\", { \"user_ids\": [\"2244994945\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().removeGroupMembers(\n \"1895000000000000000\",\n new Schemas.RemoveChatGroupMembersRequest().userIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.RemoveGroupMembersAsync(\n \"1895000000000000000\",\n new RemoveChatGroupMembersRequest { UserIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/members/remove \\\n -d '{\"user_ids\":[\"2244994945\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/message_ttl'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import DeleteConversationMessageTtlRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.delete_conversation_message_ttl(\n id=\"1895000000000000000\",\n body=DeleteConversationMessageTtlRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.deleteConversationMessageTtl(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().deleteConversationMessageTtl(\n \"1895000000000000000\",\n new Schemas.DeleteChatConversationMessageTtlRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.DeleteConversationMessageTtlAsync(\"1895000000000000000\", new DeleteChatConversationMessageTtlRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/chat/conversations/1895000000000000000/message_ttl \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/message_ttl'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateConversationMessageTtlRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_conversation_message_ttl(\n id=\"1895000000000000000\",\n body=UpdateConversationMessageTtlRequest(message_ttl_ms=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateConversationMessageTtl(\"1895000000000000000\", { \"message_ttl_ms\": \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateConversationMessageTtl(\n \"1895000000000000000\",\n new Schemas.UpdateChatConversationMessageTtlRequest().messageTtlMs(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateConversationMessageTtlAsync(\n \"1895000000000000000\",\n new UpdateChatConversationMessageTtlRequest { MessageTtlMs = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/message_ttl \\\n -d '{\"message_ttl_ms\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/messages'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import SendMessageRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.send_message(\n id=\"1895000000000000000\",\n body=SendMessageRequest(message_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.sendMessage(\"1895000000000000000\", { \"message_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().sendMessage(\n \"1895000000000000000\",\n new Schemas.SendChatMessageRequest().messageId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.SendMessageAsync(\n \"1895000000000000000\",\n new SendChatMessageRequest { MessageId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/messages \\\n -d '{\"message_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/messages/delete'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import DeleteMessagesRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.delete_messages(\n id=\"1895000000000000000\",\n body=DeleteMessagesRequest(sequence_ids=[\"1895000000000000000\"], delete_message_action=\"delete_for_all\", action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.deleteMessages(\n \"1895000000000000000\",\n { \"sequence_ids\": [\"1895000000000000000\"], \"delete_message_action\": \"delete_for_all\", \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().deleteMessages(\n \"1895000000000000000\",\n new Schemas.DeleteChatMessagesRequest().sequenceIds(List.of(\"1895000000000000000\")).deleteMessageAction(\"delete_for_all\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.DeleteMessagesAsync(\n \"1895000000000000000\",\n new DeleteChatMessagesRequest { SequenceIds = new List { \"1895000000000000000\" }, DeleteMessageAction = \"delete_for_all\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/messages/delete \\\n -d '{\"sequence_ids\":[\"1895000000000000000\"],\"delete_message_action\":\"delete_for_all\",\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/mute'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UnmuteConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.unmute_conversation(\n id=\"1895000000000000000\",\n body=UnmuteConversationRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.unmuteConversation(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().unmuteConversation(\"1895000000000000000\", new Schemas.UnmuteChatConversationRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UnmuteConversationAsync(\"1895000000000000000\", new UnmuteChatConversationRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/chat/conversations/1895000000000000000/mute \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/mute'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import MuteConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.mute_conversation(\n id=\"1895000000000000000\",\n body=MuteConversationRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.muteConversation(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().muteConversation(\"1895000000000000000\", new Schemas.MuteChatConversationRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MuteConversationAsync(\"1895000000000000000\", new MuteChatConversationRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/mute \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/pinned_messages'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.chat.get_conversation_pinned_messages(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getConversationPinnedMessages(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.chat().getConversationPinnedMessagesPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Chat.GetConversationPinnedMessagesPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/conversations/1895000000000000000/pinned_messages"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/read'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import MarkConversationReadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.mark_conversation_read(\n id=\"1895000000000000000\",\n body=MarkConversationReadRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.markConversationRead(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().markConversationRead(\"1895000000000000000\", new Schemas.MarkChatConversationReadRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MarkConversationReadAsync(\"1895000000000000000\", new MarkChatConversationReadRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/read \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/screen_capture'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateConversationScreenCaptureRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_conversation_screen_capture(\n id=\"1895000000000000000\",\n body=UpdateConversationScreenCaptureRequest(blocking_action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateConversationScreenCapture(\n \"1895000000000000000\",\n { \"blocking_action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateConversationScreenCapture(\n \"1895000000000000000\",\n new Schemas.UpdateChatConversationScreenCaptureRequest()\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateConversationScreenCaptureAsync(\n \"1895000000000000000\",\n new UpdateChatConversationScreenCaptureRequest()\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/screen_capture \\\n -d '{\"blocking_action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/typing'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.send_typing_indicator(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.sendTypingIndicator(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().sendTypingIndicator(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.SendTypingIndicatorAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/typing"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/conversations/{id}/unread'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.mark_conversation_unread(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.markConversationUnread(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().markConversationUnread(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MarkConversationUnreadAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/conversations/1895000000000000000/unread"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/media/upload/initialize'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import MediaUploadInitializeRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.media_upload_initialize(\n body=MediaUploadInitializeRequest(conversation_id=\"1500000000000000000\", total_bytes=1)\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.mediaUploadInitialize({ \"conversation_id\": \"1500000000000000000\", \"total_bytes\": 1 });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().mediaUploadInitialize(\n new Schemas.ChatMediaUploadInitializeRequest().conversationId(\"1500000000000000000\").totalBytes(1)\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MediaUploadInitializeAsync(\n new ChatMediaUploadInitializeRequest { ConversationId = \"1500000000000000000\", TotalBytes = 1 }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/media/upload/initialize \\\n -d '{\"conversation_id\":\"1500000000000000000\",\"total_bytes\":1}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/media/upload/{id}/append'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import MediaUploadAppendRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.media_upload_append(\n id=\"1895000000000000000\",\n body=MediaUploadAppendRequest(media=\"example\", segment_index=1, conversation_id=\"1500000000000000000\", media_hash_key=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.mediaUploadAppend(\n \"1895000000000000000\",\n { media: \"example\", \"segment_index\": 1, \"conversation_id\": \"1500000000000000000\", \"media_hash_key\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().mediaUploadAppend(\n \"1895000000000000000\",\n new Schemas.ChatMediaUploadAppendRequest().media(\"example\").segmentIndex(1).conversationId(\"1500000000000000000\").mediaHashKey(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MediaUploadAppendAsync(\n \"1895000000000000000\",\n new ChatMediaUploadAppendRequest { Media = \"example\", SegmentIndex = 1, ConversationId = \"1500000000000000000\", MediaHashKey = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/media/upload/1895000000000000000/append \\\n -d '{\"media\":\"example\",\"segment_index\":1,\"conversation_id\":\"1500000000000000000\",\"media_hash_key\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/media/upload/{id}/finalize'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import MediaUploadFinalizeRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.media_upload_finalize(\n id=\"1895000000000000000\",\n body=MediaUploadFinalizeRequest(conversation_id=\"1500000000000000000\", media_hash_key=\"example\", num_parts=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.mediaUploadFinalize(\n \"1895000000000000000\",\n { \"conversation_id\": \"1500000000000000000\", \"media_hash_key\": \"example\", \"num_parts\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().mediaUploadFinalize(\n \"1895000000000000000\",\n new Schemas.ChatMediaUploadFinalizeRequest().conversationId(\"1500000000000000000\").mediaHashKey(\"example\").numParts(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MediaUploadFinalizeAsync(\n \"1895000000000000000\",\n new ChatMediaUploadFinalizeRequest { ConversationId = \"1500000000000000000\", MediaHashKey = \"example\", NumParts = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/media/upload/1895000000000000000/finalize \\\n -d '{\"conversation_id\":\"1500000000000000000\",\"media_hash_key\":\"example\",\"num_parts\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/media/{id}/{media_hash_key}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.media_download(id=\"1895000000000000000\", media_hash_key=\"example\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.mediaDownload(\"1895000000000000000\", \"example\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().mediaDownload(\"1895000000000000000\", \"example\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.MediaDownloadAsync(\"1895000000000000000\", \"example\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/media/1895000000000000000/example"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/message_requests'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.chat.get_message_requests():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getMessageRequests();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.chat().getMessageRequestsPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Chat.GetMessageRequestsPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/message_requests"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/message_requests/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.get_message_request(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getMessageRequest(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().getMessageRequest(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.GetMessageRequestAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/message_requests/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/message_requests/{id}/accept'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.accept_message_request(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.acceptMessageRequest(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().acceptMessageRequest(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.AcceptMessageRequestAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/chat/message_requests/1895000000000000000/accept"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/settings'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.get_settings()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.getSettings();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().getSettings();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.GetSettingsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/chat/settings"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/chat/settings'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_settings(body=UpdateSettingsRequest(always_allow_dms_from_subscribers=True))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateSettings({ \"always_allow_dms_from_subscribers\": true });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateSettings(\n new Schemas.UpdateChatSettingsRequest().alwaysAllowDmsFromSubscribers(true)\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateSettingsAsync(\n new UpdateChatSettingsRequest { AlwaysAllowDmsFromSubscribers = true }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/chat/settings \\\n -d '{\"always_allow_dms_from_subscribers\":true}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/communities/search'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.communities.search(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communities.search(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.communities().searchPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Communities.SearchPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/communities/search?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/communities/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.communities.get_by_id(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.communities.getById(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.communities().getById(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Communities.GetByIdAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/communities/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.get_jobs(type=\"tweets\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.getJobs(\"tweets\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().getJobs(\"tweets\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.GetJobsAsync(\"tweets\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/compliance/jobs?type=tweets\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.compliance.models import CreateJobsRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.create_jobs(body=CreateJobsRequest(type=\"tweets\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.createJobs({ type: \"tweets\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().createJobs(new Schemas.CreateComplianceJobsRequest().type(\"tweets\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.CreateJobsAsync(new CreateComplianceJobsRequest { Type = \"tweets\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/compliance/jobs \\\n -d '{\"type\":\"tweets\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.delete_jobs_by_id(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.deleteJobsById(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().deleteJobsById(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.DeleteJobsByIdAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/compliance/jobs/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.get_jobs_by_id(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.getJobsById(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().getJobsById(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.GetJobsByIdAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/compliance/jobs/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs/{id}/download'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.download_job_results(id=\"1895000000000000000\", token=\"example\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.downloadJobResults(\"1895000000000000000\", \"example\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().downloadJobResults(\"1895000000000000000\", \"example\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.DownloadJobResultsAsync(\"1895000000000000000\", \"example\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/compliance/jobs/1895000000000000000/download?token=example\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/compliance/jobs/{id}/upload'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.compliance.upload_job_submission(id=\"1895000000000000000\", token=\"example\", body=b\"...\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.compliance.uploadJobSubmission(\"1895000000000000000\", \"example\", new Uint8Array());\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.compliance().uploadJobSubmission(\"1895000000000000000\", \"example\", new byte[0]);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Compliance.UploadJobSubmissionAsync(\"1895000000000000000\", \"example\", Array.Empty());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT \"/2/compliance/jobs/1895000000000000000/upload?token=example\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/connections'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.connections.models import DeleteByUuidsRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.connections.delete_by_uuids(body=DeleteByUuidsRequest(uuids=[\"example\"]))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.connections.deleteByUuids({ uuids: [\"example\"] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.connections().deleteByUuids(\n new Schemas.DeleteConnectionsByUuidsRequest().uuids(List.of(\"example\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Connections.DeleteByUuidsAsync(\n new DeleteConnectionsByUuidsRequest { Uuids = new List { \"example\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/connections \\\n -d '{\"uuids\":[\"example\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/connections'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.connections.get_connection_history():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.connections.getConnectionHistory();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.connections().getConnectionHistoryPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Connections.GetConnectionHistoryPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/connections"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/connections/all'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.connections.delete_all()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.connections.deleteAll();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.connections().deleteAll();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Connections.DeleteAllAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/connections/all"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/connections/{endpoint_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.connections.delete_by_endpoint(endpoint_id=\"filtered_stream\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.connections.deleteByEndpoint(\"filtered_stream\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.connections().deleteByEndpoint(\"filtered_stream\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Connections.DeleteByEndpointAsync(\"filtered_stream\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/connections/filtered_stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.direct_messages.models import CreateConversationRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.create_conversation(\n body=CreateConversationRequest(conversation_type=\"Group\", participant_ids=[\"2244994945\"], message={\"text\": \"Hello from XDK!\"})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.createConversation(\n { \"conversation_type\": \"Group\", \"participant_ids\": [\"2244994945\"], message: { text: \"Hello from XDK!\" } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().createConversation(\n new Schemas.CreateDirectMessagesConversationRequest().conversationType(\"Group\").participantIds(List.of(\"2244994945\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.CreateConversationAsync(\n new CreateDirectMessagesConversationRequest { ConversationType = \"Group\", ParticipantIds = new List { \"2244994945\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/dm_conversations \\\n -d '{\"conversation_type\":\"Group\",\"participant_ids\":[\"2244994945\"],\"message\":{\"text\":\"Hello from XDK!\"}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations/media/{dm_id}/{media_id}/{resource_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.dm_conversations_media_download(\n dm_id=\"1895000000000000000\",\n media_id=\"3_1895000000000000000\",\n resource_id=\"1895000000000000000\"\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.dmConversationsMediaDownload(\n \"1895000000000000000\",\n \"3_1895000000000000000\",\n \"1895000000000000000\"\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().dmConversationsMediaDownload(\n \"1895000000000000000\",\n \"3_1895000000000000000\",\n \"1895000000000000000\"\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.DmConversationsMediaDownloadAsync(\n \"1895000000000000000\",\n \"3_1895000000000000000\",\n \"1895000000000000000\"\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/dm_conversations/media/1895000000000000000/3_1895000000000000000/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations/with/{participant_id}/dm_events'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.direct_messages.get_events_by_participant_id(participant_id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.getEventsByParticipantId(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.directMessages().getEventsByParticipantIdPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.DirectMessages.GetEventsByParticipantIdPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/dm_conversations/with/2244994945/dm_events"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations/with/{participant_id}/messages'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.direct_messages.models import CreateByParticipantIdRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.create_by_participant_id(\n participant_id=\"2244994945\",\n body=CreateByParticipantIdRequest(text=\"Hello from XDK!\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.createByParticipantId(\"2244994945\", { text: \"Hello from XDK!\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().createByParticipantId(\n \"2244994945\",\n new Schemas.CreateDirectMessagesByParticipantIdRequest().text(\"Hello from XDK!\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.CreateByParticipantIdAsync(\n \"2244994945\",\n new CreateDirectMessagesByParticipantIdRequest { Text = \"Hello from XDK!\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/dm_conversations/with/2244994945/messages \\\n -d '{\"text\":\"Hello from XDK!\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations/{dm_conversation_id}/messages'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.direct_messages.models import CreateByConversationIdRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.create_by_conversation_id(\n dm_conversation_id=\"1500000000000000000\",\n body=CreateByConversationIdRequest(text=\"Hello from XDK!\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.createByConversationId(\"1500000000000000000\", { text: \"Hello from XDK!\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().createByConversationId(\n \"1500000000000000000\",\n new Schemas.CreateDirectMessagesByConversationIdRequest().text(\"Hello from XDK!\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.CreateByConversationIdAsync(\n \"1500000000000000000\",\n new CreateDirectMessagesByConversationIdRequest { Text = \"Hello from XDK!\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/dm_conversations/1500000000000000000/messages \\\n -d '{\"text\":\"Hello from XDK!\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_conversations/{id}/dm_events'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.direct_messages.get_events_by_conversation_id(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.getEventsByConversationId(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.directMessages().getEventsByConversationIdPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.DirectMessages.GetEventsByConversationIdPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/dm_conversations/1895000000000000000/dm_events"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_events'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.direct_messages.get_events():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.getEvents();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.directMessages().getEventsPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.DirectMessages.GetEventsPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/dm_events"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_events/{event_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.delete_events(event_id=\"1600000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.deleteEvents(\"1600000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().deleteEvents(\"1600000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.DeleteEventsAsync(\"1600000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/dm_events/1600000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/dm_events/{event_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.direct_messages.get_events_by_id(event_id=\"1600000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.directMessages.getEventsById(\"1600000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.directMessages().getEventsById(\"1600000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.DirectMessages.GetEventsByIdAsync(\"1600000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/dm_events/1600000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/likes/compliance/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.likes_compliance():\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.likesCompliance();\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().likesCompliance()) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.LikesComplianceStream();\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s /2/likes/compliance/stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/likes/firehose/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.likes_firehose(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.likesFirehose(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().likesFirehose(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.LikesFirehoseStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/likes/firehose/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/likes/sample10/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.likes_sample10(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.likesSample10(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().likesSample10(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.LikesSample10Stream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/likes/sample10/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.lists.models import CreateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.lists.create(body=CreateRequest(name=\"My List\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.lists.create({ name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.lists().create(new Schemas.CreateListsRequest().name(\"My List\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Lists.CreateAsync(new CreateListsRequest { Name = \"My List\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/lists \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.lists.delete(id=\"1450000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.lists.delete(\"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.lists().delete(\"1450000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Lists.DeleteAsync(\"1450000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/lists/1450000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.lists.get_by_id(id=\"1450000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.lists.getById(\"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.lists().getById(\"1450000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Lists.GetByIdAsync(\"1450000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/lists/1450000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.lists.models import UpdateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.lists.update(id=\"1450000000000000000\", body=UpdateRequest(name=\"My List\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.lists.update(\"1450000000000000000\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.lists().update(\n \"1450000000000000000\",\n new Schemas.UpdateListsRequest().name(\"My List\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Lists.UpdateAsync(\"1450000000000000000\", new UpdateListsRequest { Name = \"My List\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/lists/1450000000000000000 \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}/followers'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.lists.get_followers(id=\"1450000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.lists.getFollowers(\"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.lists().getFollowersPages(\"1450000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Lists.GetFollowersPages(\"1450000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/lists/1450000000000000000/followers"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}/members'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.lists.get_members(id=\"1450000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.lists.getMembers(\"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.lists().getMembersPages(\"1450000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Lists.GetMembersPages(\"1450000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/lists/1450000000000000000/members"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}/members'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.lists.models import AddMemberRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.lists.add_member(\n id=\"1450000000000000000\",\n body=AddMemberRequest(user_id=\"2244994945\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.lists.addMember(\"1450000000000000000\", { \"user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.lists().addMember(\n \"1450000000000000000\",\n new Schemas.AddListsMemberRequest().userId(\"2244994945\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Lists.AddMemberAsync(\n \"1450000000000000000\",\n new AddListsMemberRequest { UserId = \"2244994945\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/lists/1450000000000000000/members \\\n -d '{\"user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}/members/{user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.lists.remove_member_by_user_id(id=\"1450000000000000000\", user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.lists.removeMemberByUserId(\"1450000000000000000\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.lists().removeMemberByUserId(\"1450000000000000000\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Lists.RemoveMemberByUserIdAsync(\"1450000000000000000\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/lists/1450000000000000000/members/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/lists/{id}/tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.lists.get_posts(id=\"1450000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.lists.getPosts(\"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.lists().getPostsPages(\"1450000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Lists.GetPostsPages(\"1450000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/lists/1450000000000000000/tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.media.get_by_keys(media_keys=[\"3_1895000000000000000\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.media.getByKeys([\"3_1895000000000000000\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.media().getByKeys(List.of(\"3_1895000000000000000\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Media.GetByKeysAsync(new List { \"3_1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/media?media_keys=3_1895000000000000000\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/amplify/posts'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import AddPostToAmplifyProgramsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.add_post_to_amplify_programs(\n body=AddPostToAmplifyProgramsRequest(post_id=\"1895000000000000000\", program_ids=[\"1895000000000000000\"])\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.addPostToAmplifyPrograms(\n { \"post_id\": \"1895000000000000000\", \"program_ids\": [\"1895000000000000000\"] }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().addPostToAmplifyPrograms(\n new Schemas.AddPostToAmplifyProgramsRequest().postId(\"1895000000000000000\").programIds(List.of(\"1895000000000000000\"))\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.AddPostToAmplifyProgramsAsync(\n new AddPostToAmplifyProgramsRequest { PostId = \"1895000000000000000\", ProgramIds = new List { \"1895000000000000000\" } }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/amplify/posts \\\n -d '{\"post_id\":\"1895000000000000000\",\"program_ids\":[\"1895000000000000000\"]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/amplify/programs'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_amplify_programs()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getAmplifyPrograms();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getAmplifyPrograms();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetAmplifyProgramsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/media/amplify/programs"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/amplify/programs/{program_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_amplify_program(program_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getAmplifyProgram(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getAmplifyProgram(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetAmplifyProgramAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/media/amplify/programs/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/amplify/programs/{program_id}/posts'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_amplify_program_posts(program_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getAmplifyProgramPosts(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getAmplifyProgramPosts(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetAmplifyProgramPostsAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/media/amplify/programs/1895000000000000000/posts"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/analytics'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_analytics(\n media_keys=[\"3_1895000000000000000\"],\n start_time=\"2026-01-01T00:00:00Z\",\n end_time=\"2026-01-02T00:00:00Z\"\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getAnalytics(\n [\"3_1895000000000000000\"],\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getAnalytics(\n List.of(\"3_1895000000000000000\"),\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetAnalyticsAsync(\n new List { \"3_1895000000000000000\" },\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/media/analytics?media_keys=3_1895000000000000000&start_time=2026-01-01T00%3A00%3A00Z&end_time=2026-01-02T00%3A00%3A00Z\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/library'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import AddToLibraryRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.add_to_library(body=AddToLibraryRequest(media_key=\"3_1895000000000000000\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.addToLibrary({ \"media_key\": \"3_1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().addToLibrary(\n new Schemas.AddMediaToLibraryRequest().mediaKey(\"3_1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.AddToLibraryAsync(new AddMediaToLibraryRequest { MediaKey = \"3_1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/library \\\n -d '{\"media_key\":\"3_1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/library/categories'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_library_categories()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getLibraryCategories();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getLibraryCategories();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetLibraryCategoriesAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/media/library/categories"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/library/{media_key}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import RemoveFromLibraryRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.remove_from_library(media_key=\"3_1895000000000000000\", body=RemoveFromLibraryRequest())\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.removeFromLibrary(\"3_1895000000000000000\", {});\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().removeFromLibrary(\"3_1895000000000000000\", new Schemas.RemoveMediaFromLibraryRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.RemoveFromLibraryAsync(\"3_1895000000000000000\", new RemoveMediaFromLibraryRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/media/library/3_1895000000000000000 \\\n -d '{}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/library/{media_key}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import UpdateInLibraryRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.update_in_library(\n media_key=\"3_1895000000000000000\",\n body=UpdateInLibraryRequest(name=\"My List\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.updateInLibrary(\"3_1895000000000000000\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().updateInLibrary(\n \"3_1895000000000000000\",\n new Schemas.UpdateMediaInLibraryRequest().name(\"My List\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.UpdateInLibraryAsync(\n \"3_1895000000000000000\",\n new UpdateMediaInLibraryRequest { Name = \"My List\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/media/library/3_1895000000000000000 \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/metadata'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateMetadataRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_metadata(\n body=CreateMetadataRequest(id=\"1895000000000000000\", metadata={\"shared_info\": {\"shared\": \"example\"}})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createMetadata(\n { id: \"1895000000000000000\", metadata: { \"shared_info\": { shared: \"example\" } } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().createMetadata(new Schemas.CreateMediaMetadataRequest().id(\"1895000000000000000\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.CreateMetadataAsync(new CreateMediaMetadataRequest { Id = \"1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/metadata \\\n -d '{\"id\":\"1895000000000000000\",\"metadata\":{\"shared_info\":{\"shared\":\"example\"}}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/subtitles'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import DeleteSubtitlesRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.delete_subtitles(\n body=DeleteSubtitlesRequest(id=\"1895000000000000000\", media_category=\"example\", language_code=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.deleteSubtitles(\n { id: \"1895000000000000000\", \"media_category\": \"example\", \"language_code\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().deleteSubtitles(\n new Schemas.DeleteMediaSubtitlesRequest().id(\"1895000000000000000\").mediaCategory(\"example\").languageCode(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.DeleteSubtitlesAsync(\n new DeleteMediaSubtitlesRequest { Id = \"1895000000000000000\", MediaCategory = \"example\", LanguageCode = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/media/subtitles \\\n -d '{\"id\":\"1895000000000000000\",\"media_category\":\"example\",\"language_code\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/subtitles'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateSubtitlesRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_subtitles(\n body=CreateSubtitlesRequest(id=\"1895000000000000000\", media_category=\"AmplifyVideo\", subtitles={\"language_code\": \"example\"})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createSubtitles(\n { id: \"1895000000000000000\", \"media_category\": \"AmplifyVideo\", subtitles: { \"language_code\": \"example\" } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().createSubtitles(\n new Schemas.CreateMediaSubtitlesRequest().id(\"1895000000000000000\").mediaCategory(\"AmplifyVideo\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.CreateSubtitlesAsync(\n new CreateMediaSubtitlesRequest { Id = \"1895000000000000000\", MediaCategory = \"AmplifyVideo\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/subtitles \\\n -d '{\"id\":\"1895000000000000000\",\"media_category\":\"AmplifyVideo\",\"subtitles\":{\"language_code\":\"example\"}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/upload'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.get_upload_status(media_id=\"3_1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.getUploadStatus(\"3_1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().getUploadStatus(\"3_1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.GetUploadStatusAsync(\"3_1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/media/upload?media_id=3_1895000000000000000\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/upload'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import UploadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.upload(body=UploadRequest(media=\"example\", media_category=\"tweet_image\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.upload({ media: \"example\", \"media_category\": \"tweet_image\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().upload(\n new Schemas.MediaUploadRequest().media(\"example\").mediaCategory(\"tweet_image\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.UploadAsync(\n new MediaUploadRequest { Media = \"example\", MediaCategory = \"tweet_image\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/upload \\\n -d '{\"media\":\"example\",\"media_category\":\"tweet_image\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/upload/initialize'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import InitializeUploadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.initialize_upload(body=InitializeUploadRequest(media_category=\"amplify_video\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.initializeUpload({ \"media_category\": \"amplify_video\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().initializeUpload(\n new Schemas.InitializeMediaUploadRequest().mediaCategory(\"amplify_video\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.InitializeUploadAsync(new InitializeMediaUploadRequest { MediaCategory = \"amplify_video\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/upload/initialize \\\n -d '{\"media_category\":\"amplify_video\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/upload/{id}/append'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import AppendUploadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.append_upload(\n id=\"1895000000000000000\",\n body=AppendUploadRequest(media=\"example\", segment_index=1)\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.appendUpload(\"1895000000000000000\", { media: \"example\", \"segment_index\": 1 });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().appendUpload(\n \"1895000000000000000\",\n new Schemas.AppendMediaUploadRequest().media(\"example\").segmentIndex(1)\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.AppendUploadAsync(\n \"1895000000000000000\",\n new AppendMediaUploadRequest { Media = \"example\", SegmentIndex = 1 }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/upload/1895000000000000000/append \\\n -d '{\"media\":\"example\",\"segment_index\":1}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/upload/{id}/finalize'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.finalize_upload(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.finalizeUpload(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().finalizeUpload(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.FinalizeUploadAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/media/upload/1895000000000000000/finalize"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/media/{media_key}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.media.get_by_key(media_key=\"3_1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.media.getByKey(\"3_1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.media().getByKey(\"3_1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Media.GetByKeyAsync(\"3_1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/media/3_1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/news/search'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.news.search(query=\"from:XDevelopers\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.news.search(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.news().search(\"from:XDevelopers\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.News.SearchAsync(\"from:XDevelopers\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/news/search?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/news/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.news.get(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.news.get(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.news().get(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.News.GetAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/news/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/notes'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.community_notes.models import CreateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.community_notes.create(\n body=CreateRequest(test_mode=True, post_id=\"1895000000000000000\", info={\"text\": \"Hello from XDK!\", \"classification\": \"misinformed_or_potentially_misleading\", \"misleading_tags\": [\"disputed_claim_as_fact\"], \"trustworthy_sources\": True})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communityNotes.create(\n { \"test_mode\": true, \"post_id\": \"1895000000000000000\", info: { text: \"Hello from XDK!\", classification: \"misinformed_or_potentially_misleading\", \"misleading_tags\": [\"disputed_claim_as_fact\"], \"trustworthy_sources\": true } }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.communityNotes().create(\n new Schemas.CreateCommunityNotesRequest().testMode(true).postId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.CommunityNotes.CreateAsync(\n new CreateCommunityNotesRequest { TestMode = true, PostId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/notes \\\n -d '{\"test_mode\":true,\"post_id\":\"1895000000000000000\",\"info\":{\"text\":\"Hello from XDK!\",\"classification\":\"misinformed_or_potentially_misleading\",\"misleading_tags\":[\"disputed_claim_as_fact\"],\"trustworthy_sources\":true}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/notes/evaluate'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.community_notes.models import EvaluateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.community_notes.evaluate(\n body=EvaluateRequest(post_id=\"1895000000000000000\", note_text=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communityNotes.evaluate({ \"post_id\": \"1895000000000000000\", \"note_text\": \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.communityNotes().evaluate(\n new Schemas.EvaluateCommunityNotesRequest().postId(\"1895000000000000000\").noteText(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.CommunityNotes.EvaluateAsync(\n new EvaluateCommunityNotesRequest { PostId = \"1895000000000000000\", NoteText = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/notes/evaluate \\\n -d '{\"post_id\":\"1895000000000000000\",\"note_text\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/notes/search/notes_written'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.community_notes.search_written(test_mode=True):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communityNotes.searchWritten(true);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.communityNotes().searchWrittenPages(true)) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.CommunityNotes.SearchWrittenPages(true))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/notes/search/notes_written?test_mode=true\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/notes/search/posts_eligible_for_notes'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.community_notes.search_eligible_posts(test_mode=True):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communityNotes.searchEligiblePosts(true);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.communityNotes().searchEligiblePostsPages(true)) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.CommunityNotes.SearchEligiblePostsPages(true))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/notes/search/posts_eligible_for_notes?test_mode=true\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/notes/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.community_notes.delete(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.communityNotes.delete(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.communityNotes().delete(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.CommunityNotes.DeleteAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/notes/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/openapi.json'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.general.get_open_api_spec()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.general.getOpenApiSpec();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.general().getOpenApiSpec();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.General.GetOpenApiSpecAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/openapi.json"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/posts/drafts'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.posts.get_post_drafts():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.getPostDrafts();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getPostDraftsPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetPostDraftsPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/posts/drafts"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/posts/drafts'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.posts.models import CreatePostDraftRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.create_post_draft(body=CreatePostDraftRequest(text=\"Hello from XDK!\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.createPostDraft({ text: \"Hello from XDK!\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().createPostDraft(new Schemas.CreatePostDraftRequest().text(\"Hello from XDK!\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.CreatePostDraftAsync(new CreatePostDraftRequest { Text = \"Hello from XDK!\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/posts/drafts \\\n -d '{\"text\":\"Hello from XDK!\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/posts/drafts/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.delete_post_draft(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.deletePostDraft(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().deletePostDraft(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.DeletePostDraftAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/posts/drafts/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/region'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_region()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getRegion();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getRegion();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetRegionAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/region"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.list_sources()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.listSources();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().listSources();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.ListSourcesAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/sources"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import CreateSourceRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.create_source(body=CreateSourceRequest(name=\"My List\", region=\"example\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.createSource({ name: \"My List\", region: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().createSource(new Schemas.CreateSourceRequest().name(\"My List\").region(\"example\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.CreateSourceAsync(new CreateSourceRequest { Name = \"My List\", Region = \"example\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/sources \\\n -d '{\"name\":\"My List\",\"region\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_source(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteSource(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteSource(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteSourceAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/sources/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_source(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getSource(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getSource(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetSourceAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/sources/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources/{id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateSourceRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_source(id=\"1895000000000000000\", body=UpdateSourceRequest(name=\"My List\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateSource(\"1895000000000000000\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateSource(\n \"1895000000000000000\",\n new Schemas.UpdateSourceRequest().name(\"My List\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateSourceAsync(\"1895000000000000000\", new UpdateSourceRequest { Name = \"My List\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/sources/1895000000000000000 \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/sources/{id}/stream_key'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_source_stream_key(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getSourceStreamKey(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getSourceStreamKey(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetSourceStreamKeyAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/sources/1895000000000000000/stream_key"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.spaces.get_by_ids(ids=[\"1YqKDqWLPPlGV\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.spaces.getByIds([\"1YqKDqWLPPlGV\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.spaces().getByIds(List.of(\"1YqKDqWLPPlGV\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Spaces.GetByIdsAsync(new List { \"1YqKDqWLPPlGV\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/spaces?ids=1YqKDqWLPPlGV\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces/by/creator_ids'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.spaces.get_by_creator_ids(user_ids=[\"2244994945\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.spaces.getByCreatorIds([\"2244994945\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.spaces().getByCreatorIds(List.of(\"2244994945\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Spaces.GetByCreatorIdsAsync(new List { \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/spaces/by/creator_ids?user_ids=2244994945\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces/search'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.spaces.search(query=\"from:XDevelopers\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.spaces.search(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.spaces().search(\"from:XDevelopers\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Spaces.SearchAsync(\"from:XDevelopers\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/spaces/search?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.spaces.get_by_id(id=\"1YqKDqWLPPlGV\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.spaces.getById(\"1YqKDqWLPPlGV\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.spaces().getById(\"1YqKDqWLPPlGV\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Spaces.GetByIdAsync(\"1YqKDqWLPPlGV\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/spaces/1YqKDqWLPPlGV"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces/{id}/buyers'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.spaces.get_buyers(id=\"1YqKDqWLPPlGV\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.spaces.getBuyers(\"1YqKDqWLPPlGV\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.spaces().getBuyersPages(\"1YqKDqWLPPlGV\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Spaces.GetBuyersPages(\"1YqKDqWLPPlGV\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/spaces/1YqKDqWLPPlGV/buyers"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/spaces/{id}/tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.spaces.get_posts(id=\"1YqKDqWLPPlGV\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.spaces.getPosts(\"1YqKDqWLPPlGV\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.spaces().getPostsPages(\"1YqKDqWLPPlGV\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Spaces.GetPostsPages(\"1YqKDqWLPPlGV\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/spaces/1YqKDqWLPPlGV/tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/trends/by/woeid/{woeid}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.trends.get_by_woeid(woeid=1)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.trends.getByWoeid(1);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.trends().getByWoeid(1);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Trends.GetByWoeidAsync(1);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/trends/by/woeid/1"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/trends/locations'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.trends.get_locations()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.trends.getLocations();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.trends().getLocations();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Trends.GetLocationsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/trends/locations"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.posts.get_by_ids(ids=[\"1895000000000000000\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getByIds([\"1895000000000000000\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.posts().getByIds(List.of(\"1895000000000000000\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Posts.GetByIdsAsync(new List { \"1895000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets?ids=1895000000000000000\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.posts.models import CreateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.create(body=CreateRequest(text=\"Hello from XDK!\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.create({ text: \"Hello from XDK!\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().create(new Schemas.CreatePostsRequest().text(\"Hello from XDK!\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.CreateAsync(new CreatePostsRequest { Text = \"Hello from XDK!\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/tweets \\\n -d '{\"text\":\"Hello from XDK!\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/analytics'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.get_analytics(\n ids=[\"1895000000000000000\"],\n start_time=\"2026-01-01T00:00:00Z\",\n end_time=\"2026-01-02T00:00:00Z\"\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.getAnalytics(\n [\"1895000000000000000\"],\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().getAnalytics(\n List.of(\"1895000000000000000\"),\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.GetAnalyticsAsync(\n new List { \"1895000000000000000\" },\n \"2026-01-01T00:00:00Z\",\n \"2026-01-02T00:00:00Z\"\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets/analytics?ids=1895000000000000000&start_time=2026-01-01T00%3A00%3A00Z&end_time=2026-01-02T00%3A00%3A00Z\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/compliance/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_compliance(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsCompliance(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsCompliance(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsComplianceStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/compliance/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/counts/all'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.get_counts_all(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getCountsAll(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getCountsAllPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetCountsAllPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets/counts/all?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/counts/recent'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.get_counts_recent(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getCountsRecent(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getCountsRecentPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetCountsRecentPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets/counts/recent?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/firehose/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_firehose(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsFirehose(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsFirehose(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsFirehoseStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/firehose/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/firehose/stream/lang/en'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_firehose_en(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsFirehoseEn(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsFirehoseEn(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsFirehoseEnStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/firehose/stream/lang/en?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/firehose/stream/lang/ja'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_firehose_ja(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsFirehoseJa(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsFirehoseJa(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsFirehoseJaStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/firehose/stream/lang/ja?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/firehose/stream/lang/ko'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_firehose_ko(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsFirehoseKo(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsFirehoseKo(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsFirehoseKoStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/firehose/stream/lang/ko?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/firehose/stream/lang/pt'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_firehose_pt(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsFirehosePt(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsFirehosePt(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsFirehosePtStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/firehose/stream/lang/pt?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/label/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.labels_compliance():\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.labelsCompliance();\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().labelsCompliance()) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.LabelsComplianceStream();\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s /2/tweets/label/stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/sample/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_sample():\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsSample();\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsSample()) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsSampleStream();\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s /2/tweets/sample/stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/sample10/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts_sample10(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.postsSample10(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().postsSample10(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsSample10Stream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/tweets/sample10/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/all'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.search_all(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.searchAll(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().searchAllPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.SearchAllPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets/search/all?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/recent'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.search_recent(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.searchRecent(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().searchRecentPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.SearchRecentPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/tweets/search/recent?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.posts():\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.posts();\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().posts()) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.PostsStream();\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s /2/tweets/search/stream"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/stream/rules'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.stream.get_rules():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.stream.getRules();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.stream().getRulesPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Stream.GetRulesPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/search/stream/rules"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/stream/rules'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.stream.models import UpdateRulesRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.stream.update_rules(body=UpdateRulesRequest(add=[{\"value\": \"from:XDevelopers\"}]))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.stream.updateRules({ add: [{ value: \"from:XDevelopers\" }] });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.stream().updateRules(new Schemas.UpdateRulesRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Stream.UpdateRulesAsync(new UpdateRulesRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/tweets/search/stream/rules \\\n -d '{\"add\":[{\"value\":\"from:XDevelopers\"}]}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/stream/rules/counts'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.stream.get_rule_counts()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.stream.getRuleCounts();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.stream().getRuleCounts();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Stream.GetRuleCountsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/search/stream/rules/counts"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/webhooks'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.get_stream_links()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.getStreamLinks();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().getStreamLinks();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.GetStreamLinksAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/search/webhooks"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/webhooks/{webhook_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.delete_stream_link(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.deleteStreamLink(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().deleteStreamLink(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.DeleteStreamLinkAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/tweets/search/webhooks/1234567890"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/search/webhooks/{webhook_id}'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.create_stream_link(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.createStreamLink(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().createStreamLink(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.CreateStreamLinkAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/tweets/search/webhooks/1234567890"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.delete(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.delete(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().delete(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.DeleteAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/tweets/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.posts.get_by_id(id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getById(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.posts().getById(\"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Posts.GetByIdAsync(\"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}/liking_users'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.posts.get_liking_users(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.getLikingUsers(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getLikingUsersPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetLikingUsersPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/1895000000000000000/liking_users"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}/quote_tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.get_quoted(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getQuoted(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getQuotedPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetQuotedPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/1895000000000000000/quote_tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}/retweeted_by'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.get_reposted_by(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getRepostedBy(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getRepostedByPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetRepostedByPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/1895000000000000000/retweeted_by"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{id}/retweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.posts.get_reposts(id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.posts.getReposts(\"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.posts().getRepostsPages(\"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Posts.GetRepostsPages(\"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/tweets/1895000000000000000/retweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/tweets/{tweet_id}/hidden'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.posts.models import HideReplyRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.posts.hide_reply(tweet_id=\"1895000000000000000\", body=HideReplyRequest(hidden=True))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.posts.hideReply(\"1895000000000000000\", { hidden: true });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.posts().hideReply(\n \"1895000000000000000\",\n new Schemas.HidePostsReplyRequest().hidden(true)\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Posts.HideReplyAsync(\"1895000000000000000\", new HidePostsReplyRequest { Hidden = true });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/tweets/1895000000000000000/hidden \\\n -d '{\"hidden\":true}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/usage/credits'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.usage.get_credits()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.usage.getCredits();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.usage().getCredits();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Usage.GetCreditsAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/usage/credits"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/usage/tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.usage.get()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.usage.get();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.usage().get();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Usage.GetAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/usage/tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.users.get_by_ids(ids=[\"2244994945\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getByIds([\"2244994945\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.users().getByIds(List.of(\"2244994945\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Users.GetByIdsAsync(new List { \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/users?ids=2244994945\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/by'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.users.get_by_usernames(usernames=[\"XDevelopers\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getByUsernames([\"XDevelopers\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.users().getByUsernames(List.of(\"XDevelopers\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Users.GetByUsernamesAsync(new List { \"XDevelopers\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/users/by?usernames=XDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/by/username/{username}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.users.get_by_username(username=\"XDevelopers\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getByUsername(\"XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.users().getByUsername(\"XDevelopers\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Users.GetByUsernameAsync(\"XDevelopers\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/by/username/XDevelopers"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/compliance/stream'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor event in client.stream.users_compliance(partition=1):\n print(event)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst stream = await client.stream.usersCompliance(1);\nfor await (const event of stream) {\n console.log(event);\n}"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\ntry (var stream = client.stream().usersCompliance(1)) {\n for (var event : stream) {\n System.out.println(event);\n }\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait using var stream = await client.Stream.UsersComplianceStream(1);\nawait foreach (var item in stream)\n{\n Console.WriteLine(item);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -s \"/2/users/compliance/stream?partition=1\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/me'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.get_me()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getMe();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().getMe();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.GetMeAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/me"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/me/followers'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_me_followers():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getMeFollowers();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getMeFollowersPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetMeFollowersPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/me/followers"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/me/following'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_me_following():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getMeFollowing();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getMeFollowingPages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetMeFollowingPages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/me/following"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/personalized_trends'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.trends.get_personalized()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.trends.getPersonalized();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.trends().getPersonalized();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Trends.GetPersonalizedAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/personalized_trends"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/public_keys'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.get_public_keys(ids=[\"2244994945\"])\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getPublicKeys([\"2244994945\"]);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().getPublicKeys(List.of(\"2244994945\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.GetPublicKeysAsync(new List { \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/users/public_keys?ids=2244994945\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/reposts_of_me'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_reposts_of_me():\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getRepostsOfMe();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getRepostsOfMePages()) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetRepostsOfMePages())\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/reposts_of_me"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/search'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.search(query=\"from:XDevelopers\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.search(\"from:XDevelopers\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().searchPages(\"from:XDevelopers\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.SearchPages(\"from:XDevelopers\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl \"/2/users/search?query=from%3AXDevelopers\""
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.users.get_by_id(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getById(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.users().getById(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Users.GetByIdAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/affiliates'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_affiliates(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getAffiliates(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getAffiliatesPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetAffiliatesPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/affiliates"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/blocking'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_blocking(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getBlocking(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getBlockingPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetBlockingPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/blocking"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/blocking'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import IdBlockRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.id_block(id=\"2244994945\", body=IdBlockRequest(target_user_id=\"2244994945\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.idBlock(\"2244994945\", { \"target_user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().idBlock(\n \"2244994945\",\n new Schemas.UsersIdBlockRequest().targetUserId(\"2244994945\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.IdBlockAsync(\n \"2244994945\",\n new UsersIdBlockRequest { TargetUserId = \"2244994945\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/blocking \\\n -d '{\"target_user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_bookmarks(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getBookmarks(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getBookmarksPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetBookmarksPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/bookmarks"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import CreateBookmarkRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.create_bookmark(\n id=\"2244994945\",\n body=CreateBookmarkRequest(tweet_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.createBookmark(\"2244994945\", { \"tweet_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().createBookmark(\n \"2244994945\",\n new Schemas.CreateUsersBookmarkRequest().tweetId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.CreateBookmarkAsync(\n \"2244994945\",\n new CreateUsersBookmarkRequest { TweetId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/bookmarks \\\n -d '{\"tweet_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks/folders'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_bookmark_folders(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getBookmarkFolders(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getBookmarkFoldersPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetBookmarkFoldersPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/bookmarks/folders"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks/folders'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import CreateBookmarkFolderRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.create_bookmark_folder(id=\"2244994945\", body=CreateBookmarkFolderRequest(name=\"My List\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.createBookmarkFolder(\"2244994945\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().createBookmarkFolder(\n \"2244994945\",\n new Schemas.CreateUsersBookmarkFolderRequest().name(\"My List\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.CreateBookmarkFolderAsync(\n \"2244994945\",\n new CreateUsersBookmarkFolderRequest { Name = \"My List\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/bookmarks/folders \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks/folders/{folder_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_bookmarks_by_folder_id(id=\"2244994945\", folder_id=\"1895000000000000000\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getBookmarksByFolderId(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getBookmarksByFolderIdPages(\"2244994945\", \"1895000000000000000\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetBookmarksByFolderIdPages(\"2244994945\", \"1895000000000000000\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/bookmarks/folders/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/bookmarks/{tweet_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.delete_bookmark(id=\"2244994945\", tweet_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.deleteBookmark(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().deleteBookmark(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.DeleteBookmarkAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/bookmarks/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/broadcasts'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.broadcasts.list_user(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.listUser(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.broadcasts().listUserPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Broadcasts.ListUserPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/broadcasts"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/broadcasts'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import CreateUserBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.create_user_broadcast(\n id=\"2244994945\",\n body=CreateUserBroadcastRequest(source_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.createUserBroadcast(\"2244994945\", { \"source_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().createUserBroadcast(\n \"2244994945\",\n new Schemas.CreateUserBroadcastRequest().sourceId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.CreateUserBroadcastAsync(\n \"2244994945\",\n new CreateUserBroadcastRequest { SourceId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/broadcasts \\\n -d '{\"source_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/broadcasts/{broadcast_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_user_broadcast(id=\"2244994945\", broadcast_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteUserBroadcast(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteUserBroadcast(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteUserBroadcastAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/broadcasts/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/broadcasts/{broadcast_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_user_broadcast(id=\"2244994945\", broadcast_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getUserBroadcast(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getUserBroadcast(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetUserBroadcastAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/broadcasts/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/broadcasts/{broadcast_id}/state'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateUserBroadcastStateRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_user_broadcast_state(\n id=\"2244994945\",\n broadcast_id=\"1895000000000000000\",\n body=UpdateUserBroadcastStateRequest(state=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateUserBroadcastState(\"2244994945\", \"1895000000000000000\", { state: \"example\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateUserBroadcastState(\n \"2244994945\",\n \"1895000000000000000\",\n new Schemas.UpdateUserBroadcastStateRequest().state(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateUserBroadcastStateAsync(\n \"2244994945\",\n \"1895000000000000000\",\n new UpdateUserBroadcastStateRequest { State = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/users/2244994945/broadcasts/1895000000000000000/state \\\n -d '{\"state\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/dm/block'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.block_dms(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.blockDms(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().blockDms(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.BlockDmsAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/dm/block"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/dm/unblock'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unblock_dms(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unblockDms(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unblockDms(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnblockDmsAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/dm/unblock"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/followed_lists'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_followed_lists(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getFollowedLists(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getFollowedListsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetFollowedListsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/followed_lists"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/followed_lists'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import FollowListRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.follow_list(\n id=\"2244994945\",\n body=FollowListRequest(list_id=\"1450000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.followList(\"2244994945\", { \"list_id\": \"1450000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().followList(\n \"2244994945\",\n new Schemas.FollowListRequest().listId(\"1450000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.FollowListAsync(\n \"2244994945\",\n new FollowListRequest { ListId = \"1450000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/followed_lists \\\n -d '{\"list_id\":\"1450000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/followed_lists/{list_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unfollow_list(id=\"2244994945\", list_id=\"1450000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unfollowList(\"2244994945\", \"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unfollowList(\"2244994945\", \"1450000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnfollowListAsync(\"2244994945\", \"1450000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/followed_lists/1450000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/followers'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_followers(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getFollowers(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getFollowersPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetFollowersPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/followers"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/following'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_following(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getFollowing(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getFollowingPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetFollowingPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/following"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/following'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import FollowUserRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.follow_user(id=\"2244994945\", body=FollowUserRequest(target_user_id=\"2244994945\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.followUser(\"2244994945\", { \"target_user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().followUser(\n \"2244994945\",\n new Schemas.FollowUserRequest().targetUserId(\"2244994945\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.FollowUserAsync(\"2244994945\", new FollowUserRequest { TargetUserId = \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/following \\\n -d '{\"target_user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/liked_tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_liked_posts(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getLikedPosts(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getLikedPostsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetLikedPostsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/liked_tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/likes'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import LikePostRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.like_post(\n id=\"2244994945\",\n body=LikePostRequest(tweet_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.likePost(\"2244994945\", { \"tweet_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().likePost(\n \"2244994945\",\n new Schemas.LikePostRequest().tweetId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.LikePostAsync(\n \"2244994945\",\n new LikePostRequest { TweetId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/likes \\\n -d '{\"tweet_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/likes/{tweet_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unlike_post(id=\"2244994945\", tweet_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unlikePost(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unlikePost(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnlikePostAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/likes/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/list_memberships'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_list_memberships(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getListMemberships(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getListMembershipsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetListMembershipsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/list_memberships"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/mentions'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_mentions(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getMentions(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getMentionsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetMentionsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/mentions"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/muting'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_muting(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getMuting(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getMutingPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetMutingPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/muting"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/muting'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import MuteUserRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.mute_user(id=\"2244994945\", body=MuteUserRequest(target_user_id=\"2244994945\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.muteUser(\"2244994945\", { \"target_user_id\": \"2244994945\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().muteUser(\n \"2244994945\",\n new Schemas.MuteUserRequest().targetUserId(\"2244994945\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.MuteUserAsync(\"2244994945\", new MuteUserRequest { TargetUserId = \"2244994945\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/muting \\\n -d '{\"target_user_id\":\"2244994945\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/owned_lists'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_owned_lists(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getOwnedLists(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getOwnedListsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetOwnedListsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/owned_lists"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/pinned_lists'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.get_pinned_lists(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getPinnedLists(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().getPinnedLists(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.GetPinnedListsAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/pinned_lists"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/pinned_lists'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import PinListRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.pin_list(id=\"2244994945\", body=PinListRequest(list_id=\"1450000000000000000\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.pinList(\"2244994945\", { \"list_id\": \"1450000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().pinList(\n \"2244994945\",\n new Schemas.PinListRequest().listId(\"1450000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.PinListAsync(\"2244994945\", new PinListRequest { ListId = \"1450000000000000000\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/pinned_lists \\\n -d '{\"list_id\":\"1450000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/pinned_lists/{list_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unpin_list(id=\"2244994945\", list_id=\"1450000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unpinList(\"2244994945\", \"1450000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unpinList(\"2244994945\", \"1450000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnpinListAsync(\"2244994945\", \"1450000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/pinned_lists/1450000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/public_keys'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.get_public_key(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getPublicKey(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().getPublicKey(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.GetPublicKeyAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/public_keys"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/public_keys'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddUserPublicKeyRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_user_public_key(\n id=\"2244994945\",\n body=AddUserPublicKeyRequest(public_key={\"public_key\": \"example\"})\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addUserPublicKey(\"2244994945\", { \"public_key\": { \"public_key\": \"example\" } });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().addUserPublicKey(\"2244994945\", new Schemas.AddUserPublicKeyRequest());\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.AddUserPublicKeyAsync(\"2244994945\", new AddUserPublicKeyRequest());\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/public_keys \\\n -d '{\"public_key\":{\"public_key\":\"example\"}}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/retweets'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.users.models import RepostPostRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.repost_post(\n id=\"2244994945\",\n body=RepostPostRequest(tweet_id=\"1895000000000000000\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.repostPost(\"2244994945\", { \"tweet_id\": \"1895000000000000000\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().repostPost(\n \"2244994945\",\n new Schemas.RepostPostRequest().tweetId(\"1895000000000000000\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.RepostPostAsync(\n \"2244994945\",\n new RepostPostRequest { TweetId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/retweets \\\n -d '{\"tweet_id\":\"1895000000000000000\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/retweets/{source_tweet_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unrepost_post(id=\"2244994945\", source_tweet_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unrepostPost(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unrepostPost(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnrepostPostAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/retweets/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/sources'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.list_user_sources(id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.listUserSources(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().listUserSources(\"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.ListUserSourcesAsync(\"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/sources"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/sources'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import CreateUserSourceRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.create_user_source(id=\"2244994945\", body=CreateUserSourceRequest(name=\"My List\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.createUserSource(\"2244994945\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().createUserSource(\"2244994945\", new Schemas.CreateUserSourceRequest().name(\"My List\"));\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.CreateUserSourceAsync(\"2244994945\", new CreateUserSourceRequest { Name = \"My List\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/users/2244994945/sources \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/sources/{source_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.delete_user_source(id=\"2244994945\", source_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.deleteUserSource(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().deleteUserSource(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.DeleteUserSourceAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/sources/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/sources/{source_id}'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.get_user_source(id=\"2244994945\", source_id=\"1895000000000000000\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.getUserSource(\"2244994945\", \"1895000000000000000\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().getUserSource(\"2244994945\", \"1895000000000000000\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.GetUserSourceAsync(\"2244994945\", \"1895000000000000000\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/sources/1895000000000000000"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/sources/{source_id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateUserSourceRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_user_source(\n id=\"2244994945\",\n source_id=\"1895000000000000000\",\n body=UpdateUserSourceRequest(name=\"My List\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateUserSource(\"2244994945\", \"1895000000000000000\", { name: \"My List\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateUserSource(\n \"2244994945\",\n \"1895000000000000000\",\n new Schemas.UpdateUserSourceRequest().name(\"My List\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateUserSourceAsync(\n \"2244994945\",\n \"1895000000000000000\",\n new UpdateUserSourceRequest { Name = \"My List\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/users/2244994945/sources/1895000000000000000 \\\n -d '{\"name\":\"My List\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/timelines/reverse_chronological'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nfor page in client.users.get_timeline(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.getTimeline(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nfor (var page : client.users().getTimelinePages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetTimelinePages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/timelines/reverse_chronological"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{id}/tweets'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nfor page in client.users.get_posts(id=\"2244994945\"):\n print(page.data)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.users.getPosts(\"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nfor (var page : client.users().getPostsPages(\"2244994945\")) {\n System.out.println(page);\n}"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nawait foreach (var page in client.Users.GetPostsPages(\"2244994945\"))\n{\n Console.WriteLine(page);\n}"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/users/2244994945/tweets"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{source_user_id}/blocking/{target_user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.id_unblock(source_user_id=\"2244994945\", target_user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.idUnblock(\"2244994945\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().idUnblock(\"2244994945\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.IdUnblockAsync(\"2244994945\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/blocking/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{source_user_id}/following/{target_user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unfollow_user(source_user_id=\"2244994945\", target_user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unfollowUser(\"2244994945\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unfollowUser(\"2244994945\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnfollowUserAsync(\"2244994945\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/following/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/users/{source_user_id}/muting/{target_user_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.users.unmute_user(source_user_id=\"2244994945\", target_user_id=\"2244994945\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.users.unmuteUser(\"2244994945\", \"2244994945\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.users().unmuteUser(\"2244994945\", \"2244994945\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Users.UnmuteUserAsync(\"2244994945\", \"2244994945\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/users/2244994945/muting/2244994945"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/webhooks'].get",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.get()\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.get();\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().get();\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.GetAsync();\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl /2/webhooks"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/webhooks'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.webhooks.models import CreateRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.create(body=CreateRequest(url=\"https://example.com/webhook\"))\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.create({ url: \"https://example.com/webhook\" });\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().create(\n new Schemas.CreateWebhooksRequest().url(\"https://example.com/webhook\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.CreateAsync(new CreateWebhooksRequest { Url = \"https://example.com/webhook\" });\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/webhooks \\\n -d '{\"url\":\"https://example.com/webhook\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/webhooks/replay'].post",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\nfrom xdk.webhooks.models import CreateWebhookReplayJobRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.create_webhook_replay_job(\n body=CreateWebhookReplayJobRequest(webhook_id=\"1234567890\", from_date=\"example\", to_date=\"example\")\n)\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.createWebhookReplayJob(\n { \"webhook_id\": \"1234567890\", \"from_date\": \"example\", \"to_date\": \"example\" }\n);\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().createWebhookReplayJob(\n new Schemas.CreateWebhookReplayJobRequest().webhookId(\"1234567890\").fromDate(\"example\").toDate(\"example\")\n);\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.CreateWebhookReplayJobAsync(\n new CreateWebhookReplayJobRequest { WebhookId = \"1234567890\", FromDate = \"example\", ToDate = \"example\" }\n);\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X POST /2/webhooks/replay \\\n -d '{\"webhook_id\":\"1234567890\",\"from_date\":\"example\",\"to_date\":\"example\"}'"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/webhooks/{webhook_id}'].delete",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.delete(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.delete(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().delete(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.DeleteAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X DELETE /2/webhooks/1234567890"
+ }
+ ]
+ }
+ },
+ {
+ "target": "$.paths['/2/webhooks/{webhook_id}'].put",
+ "update": {
+ "x-codeSamples": [
+ {
+ "lang": "python",
+ "label": "Python (XDK)",
+ "source": "import os\nfrom xdk import Client\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.webhooks.validate(webhook_id=\"1234567890\")\nprint(response)"
+ },
+ {
+ "lang": "typescript",
+ "label": "TypeScript (XDK)",
+ "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.webhooks.validate(\"1234567890\");\nconsole.log(response);"
+ },
+ {
+ "lang": "java",
+ "label": "Java (XDK)",
+ "source": "import com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.webhooks().validate(\"1234567890\");\nSystem.out.println(response);"
+ },
+ {
+ "lang": "csharp",
+ "label": "C# (XDK)",
+ "source": "using System;\nusing Xdk;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Webhooks.ValidateAsync(\"1234567890\");\nConsole.WriteLine(response);"
+ },
+ {
+ "lang": "bash",
+ "label": "xurl",
+ "source": "xurl -X PUT /2/webhooks/1234567890"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/overview.mdx b/overview.mdx
index 232dbb9ca..0bca3c789 100644
--- a/overview.mdx
+++ b/overview.mdx
@@ -70,8 +70,8 @@ New pay-per-use accounts can earn up to **$70** in free X API credits: &d
Explore endpoints for posts, users, spaces, DMs, lists, and more.
-
- Official Python and TypeScript SDKs for faster development.
+
+ Official Python, TypeScript, Java, and C# SDKs for faster development.
diff --git a/tools-and-libraries.mdx b/tools-and-libraries.mdx
index 77b18d0c1..18fc561c5 100644
--- a/tools-and-libraries.mdx
+++ b/tools-and-libraries.mdx
@@ -1,24 +1,32 @@
---
title: Tools & Libraries
sidebarTitle: Overview
-description: Official X API SDKs in Python and TypeScript, CLI tools like xurl, the playground server, MCP servers for AI, and community client libraries.
-keywords: ["tools", "libraries", "SDK", "XDK", "client libraries", "Postman", "xurl", "playground", "XMCP", "developer tools", "API tools", "code libraries", "Python SDK", "TypeScript SDK", "AI tools", "MCP"]
+description: Official X API SDKs in Python, TypeScript, Java, and C#, CLI tools like xurl, the API playground server, MCP servers for AI agents, and community libraries.
+keywords: ["tools", "libraries", "SDK", "XDK", "client libraries", "Postman", "xurl", "playground", "XMCP", "developer tools", "Python SDK", "TypeScript SDK", "Java SDK", "C# SDK", ".NET SDK", "AI tools", "MCP"]
---
import { Button } from '/snippets/button.mdx';
-Speed up your development with official SDKs, developer tools, and community libraries.
+Speed up your development with official SDKs, CLI tools, AI agent integrations, and community libraries.
---
-## Official SDKs
+## Official SDKs (XDKs)
+
+Generated directly from the X API v2 OpenAPI specification with built-in authentication, pagination, and real-time streaming.
- Async support, type hints, and automatic token refresh. Perfect for data analysis and automation.
+ `pip install xdk` — Pydantic models, iterator pagination, OAuth 2.0 PKCE, and streaming for Python 3.8+.
- Full type safety and ESM support. Works in Node.js and modern bundlers.
+ `npm install @xdevplatform/xdk` — Full TypeScript definitions, dual ESM/CJS builds, and event-driven streaming for Node.js 18+.
+
+
+ `com.x:xdk` on Maven Central — Fluent builders, `Paginator`, and `AutoCloseable` `EventStream` for Java 17+.
+
+
+ `XDevPlatform.Xdk` on NuGet — Zero external runtime dependencies, `async`/`await`, and `IAsyncEnumerable` for .NET 8+.
@@ -31,14 +39,15 @@ pip install xdk
```
```python
+import os
from xdk import Client
-client = Client(bearer_token="YOUR_BEARER_TOKEN")
+client = Client(bearer_token=os.environ["X_BEARER_TOKEN"])
-for page in client.posts.search_recent(query="api", max_results=10):
- if page.data and len(page.data) > 0:
+for page in client.posts.search_recent(query="from:XDevelopers", max_results=10):
+ if page.data:
print(page.data[0].text)
- break
+ break
```
@@ -51,13 +60,55 @@ npm install @xdevplatform/xdk
```typescript
import { Client } from '@xdevplatform/xdk';
-const client = new Client({ bearerToken: 'YOUR_BEARER_TOKEN' });
+const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });
const userResponse = await client.users.getByUsername('XDevelopers');
console.log(userResponse.data?.username);
```
+
+```xml
+
+ com.x
+ xdk
+ 0.1.2
+
+```
+
+```java
+import com.x.xdk.XClient;
+
+XClient client = XClient.builder()
+ .bearerToken(System.getenv("X_BEARER_TOKEN"))
+ .build();
+
+var response = client.users().getByUsername("XDevelopers");
+System.out.println(response.getData());
+```
+
+
+
+
+```bash
+dotnet add package XDevPlatform.Xdk
+```
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Users.GetByUsernameAsync("XDevelopers");
+Console.WriteLine(response.Data);
+```
+
+
+
---
@@ -65,17 +116,23 @@ console.log(userResponse.data?.username);
## Developer tools
-
- Interactive API testing for all v2 endpoints.
-
- curl-like CLI for the X API with built-in OAuth authentication. No manual token management.
+ `curl`-like CLI for the X API with built-in OAuth 2.0, OAuth 1.0a, and app-only authentication.
+
+
+ Client-side encryption, key management, and signing toolkit for X Chat in Python, TS, Java, C#, Go, and Rust.
-
- Local mock server for testing X API v2 endpoints without using real credits.
+
+ Interactive API testing for X API v2 endpoints.
+
+
+ Local mock server for testing X API v2 endpoints without spending credits.
- XMCP, llms.txt, skill.md, docs MCP server, and resources for AI-powered development.
+ XMCP, `llms.txt`, `skill.md`, docs MCP server, and resources for AI-powered development.
+
+
+ Open-source Rust code generator powering all four official XDKs.
@@ -83,8 +140,8 @@ console.log(userResponse.data?.username);
| Tool | Description |
|:-----|:------------|
-| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable API specification |
-| [twitter-text](https://github.com/twitter/twitter-text) | Parse and validate post text, count characters |
+| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable X API v2 specification |
+| [twitter-text](https://github.com/twitter/twitter-text) | Parse and validate post text and character counts |
| [Embed Generator](https://publish.x.com/#) | Build embeddable posts, timelines, or buttons for your site |
---
@@ -157,9 +214,9 @@ Community libraries are not maintained by X. Check their repositories for suppor
## Code samples
-- [X API v2 Sample Code](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Examples in Python, JavaScript, Ruby, and more
-- [Code Samples Repo](https://github.com/xdevplatform/samples) — Examples using the official XDKs
-- [X Developer GitHub](https://github.com/xdevplatform) — Official repos and tools
+- [XDK Code Samples Repo](https://github.com/xdevplatform/samples) — Runnable examples using the official XDKs
+- [X API v2 Sample Code](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Standalone HTTP examples across languages
+- [X Developer GitHub](https://github.com/xdevplatform) — Official repositories and developer tools
---
diff --git a/tools/csharp-xdk.mdx b/tools/csharp-xdk.mdx
new file mode 100644
index 000000000..302398821
--- /dev/null
+++ b/tools/csharp-xdk.mdx
@@ -0,0 +1,146 @@
+---
+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.
+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`, and `EventStream`.
+
+
+
+ `dotnet add package XDevPlatform.Xdk` — .NET 8.0+.
+
+
+ Source code, runnable examples, and issue tracker.
+
+
+
+---
+
+## Installation
+
+
+
+```bash .NET CLI
+dotnet add package XDevPlatform.Xdk
+```
+
+```xml PackageReference
+
+
+
+```
+
+
+
+Requires .NET 8.0+.
+
+---
+
+## Quick start
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var user = await client.Users.GetByUsernameAsync("XDevelopers");
+Console.WriteLine(user.Data);
+```
+
+---
+
+## Authentication
+
+
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+```
+
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Auth;
+
+var oauth2 = new OAuth2Pkce(
+ clientId: Environment.GetEnvironmentVariable("X_CLIENT_ID")!,
+ clientSecret: Environment.GetEnvironmentVariable("X_CLIENT_SECRET"),
+ redirectUri: "http://localhost:8080/callback",
+ scopes: new[] { "tweet.read", "tweet.write", "users.read", "offline.access" }
+);
+
+string authUrl = oauth2.GetAuthorizationUrl("state-token");
+OAuth2Token token = await oauth2.ExchangeCodeAsync(authCode);
+
+using var client = new XClient(new XClientOptions { OAuth2 = oauth2 });
+```
+
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Auth;
+
+var oauth1 = new OAuth1(
+ apiKey: Environment.GetEnvironmentVariable("X_API_KEY")!,
+ apiSecret: Environment.GetEnvironmentVariable("X_API_SECRET")!,
+ callback: "oob",
+ accessToken: Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+ accessTokenSecret: Environment.GetEnvironmentVariable("X_ACCESS_TOKEN_SECRET")
+);
+
+using var client = new XClient(new XClientOptions { OAuth1 = oauth1 });
+```
+
+
+
+---
+
+## Common methods
+
+| Category | Method |
+|:---------|:-------|
+| **Posts** | `client.Posts.SearchRecentPages(query, opts)`, `client.Posts.CreateAsync(body)` |
+| **Users** | `client.Users.GetMeAsync()`, `client.Users.GetByUsernameAsync(username)` |
+| **Streams** | `client.Stream.PostsStream()`, `client.Stream.PostsSampleStream()` |
+| **Spaces** | `client.Spaces.GetByIdAsync(id)` |
+| **Lists** | `client.Lists.GetByIdAsync(id)` |
+| **Direct Messages** | `client.DirectMessages.GetEventsPages()` |
+
+---
+
+## Learn more
+
+
+
+ .NET CLI, csproj configuration, and DI setup.
+
+
+ Step-by-step first request walkthrough.
+
+
+ Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
+
+
+ `IAsyncEnumerable` paging via `*Pages(...)` methods.
+
+
+ `await using` + `await foreach` on `EventStream`.
+
+
+ Complete reference for all 24 resource clients.
+
+
diff --git a/tools/java-xdk.mdx b/tools/java-xdk.mdx
new file mode 100644
index 000000000..d0099d249
--- /dev/null
+++ b/tools/java-xdk.mdx
@@ -0,0 +1,152 @@
+---
+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.
+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`, and `AutoCloseable` `EventStream`.
+
+
+
+ `com.x:xdk:0.1.2` — Java 17+.
+
+
+ Source code, runnable examples, and issue tracker.
+
+
+
+---
+
+## Installation
+
+
+
+```xml Maven
+
+ com.x
+ xdk
+ 0.1.2
+
+```
+
+```kotlin Gradle (Kotlin DSL)
+dependencies {
+ implementation("com.x:xdk:0.1.2")
+}
+```
+
+```groovy Gradle (Groovy)
+dependencies {
+ implementation 'com.x:xdk:0.1.2'
+}
+```
+
+
+
+Requires JDK 17+.
+
+---
+
+## Quick start
+
+```java
+import com.x.xdk.XClient;
+
+XClient client = XClient.builder()
+ .bearerToken(System.getenv("X_BEARER_TOKEN"))
+ .build();
+
+var user = client.users().getByUsername("XDevelopers");
+System.out.println(user.getData());
+```
+
+---
+
+## Authentication
+
+
+
+```java
+import com.x.xdk.XClient;
+
+XClient client = XClient.builder()
+ .bearerToken(System.getenv("X_BEARER_TOKEN"))
+ .build();
+```
+
+
+```java
+import com.x.xdk.XClient;
+import com.x.xdk.auth.OAuth2Pkce;
+import com.x.xdk.auth.OAuth2Token;
+import java.util.List;
+
+OAuth2Pkce oauth2 = new OAuth2Pkce(
+ System.getenv("X_CLIENT_ID"),
+ System.getenv("X_CLIENT_SECRET"),
+ "http://localhost:8080/callback",
+ List.of("tweet.read", "tweet.write", "users.read", "offline.access")
+);
+
+String authUrl = oauth2.getAuthorizationUrl("state-token");
+OAuth2Token token = oauth2.exchangeCode(authCode);
+
+XClient client = XClient.builder().oauth2(oauth2).build();
+```
+
+
+```java
+import com.x.xdk.XClient;
+import com.x.xdk.auth.OAuth1;
+
+OAuth1 oauth1 = new OAuth1(
+ System.getenv("X_API_KEY"),
+ System.getenv("X_API_SECRET"),
+ "oob",
+ System.getenv("X_ACCESS_TOKEN"),
+ System.getenv("X_ACCESS_TOKEN_SECRET")
+);
+
+XClient client = XClient.builder().oauth1(oauth1).build();
+```
+
+
+
+---
+
+## Common methods
+
+| Category | Method |
+|:---------|:-------|
+| **Posts** | `client.posts().searchRecentPages(query, opts)`, `client.posts().create(body)` |
+| **Users** | `client.users().getMe()`, `client.users().getByUsername(username)` |
+| **Streams** | `client.stream().posts()`, `client.stream().postsSample()` |
+| **Spaces** | `client.spaces().getById(id)` |
+| **Lists** | `client.lists().getById(id)` |
+| **Direct Messages** | `client.directMessages().getEventsPages()` |
+
+---
+
+## Learn more
+
+
+
+ Maven, Gradle, JDK requirements, and build setup.
+
+
+ Step-by-step first request walkthrough.
+
+
+ Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
+
+
+ `Paginator` cursor iteration via `*Pages(...)` methods.
+
+
+ `EventStream` with `try-with-resources` and auto-reconnect.
+
+
+ Complete reference for all 24 resource clients.
+
+
diff --git a/tools/llms-txt.mdx b/tools/llms-txt.mdx
index d759c0988..e112b14dd 100644
--- a/tools/llms-txt.mdx
+++ b/tools/llms-txt.mdx
@@ -17,7 +17,7 @@ The [`llms.txt` standard](https://llmstxt.org) is like a sitemap for AI. It help
| [`x-api/llms.txt`](https://docs.x.com/x-api/llms.txt) | 370+ X API v2 reference pages | Posts, Users, DMs, Streams, Compliance, etc. |
| [`enterprise-api/llms.txt`](https://docs.x.com/enterprise-api/llms.txt) | Enterprise, Account Activity, GNIP, Webhooks | Historical + real-time enterprise data |
| [`x-ads-api/llms.txt`](https://docs.x.com/x-ads-api/llms.txt) | Ads API (campaigns, creatives, audiences, analytics) | Advertising and measurement |
-| [`xdks/python/llms.txt`](https://docs.x.com/xdks/python/llms.txt) + [`xdks/typescript/llms.txt`](https://docs.x.com/xdks/typescript/llms.txt) | Full SDK client & model references | Python and TypeScript/JavaScript developers |
+| [`xdks/llms.txt`](https://docs.x.com/xdks/llms.txt) | Official Python, TypeScript, Java, and C# SDK indexes ([Python](https://docs.x.com/xdks/python/llms.txt), [TypeScript](https://docs.x.com/xdks/typescript/llms.txt), [Java](https://docs.x.com/xdks/java/llms.txt), [C#](https://docs.x.com/xdks/csharp/llms.txt)) | Python, TypeScript/JS, Java, and .NET developers |
| [`llms-full.txt`](https://docs.x.com/llms-full.txt) | Entire docs as one Markdown file | Maximum context for deep reasoning |
These files (plus section-specific indexes under `/x-api/llms.txt`, `/enterprise-api/llms.txt`, `/x-ads-api/llms.txt`, and the XDKs) are available at the root and under `/.well-known/`. Every documentation page supports the `.md` suffix for clean Markdown (example: `https://docs.x.com/x-api/posts/get-post-by-id.md`).
diff --git a/tools/python-xdk.mdx b/tools/python-xdk.mdx
index a319219f6..9a41f6614 100644
--- a/tools/python-xdk.mdx
+++ b/tools/python-xdk.mdx
@@ -5,11 +5,16 @@ description: Install and use the official Python XDK client library for the X AP
keywords: ["Python SDK", "XDK", "Python", "X API", "client library", "pip", "xdk"]
---
-The [Python XDK](https://github.com/xdevplatform/xdk-python) is the official client library for the X API v2. It handles authentication, pagination, and streaming so you can focus on building.
+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.
-
- Source code, issues, and releases.
-
+
+
+ `pip install xdk` — Python 3.8+.
+
+
+ Source code, release notes, and issue tracker.
+
+
---
@@ -26,54 +31,44 @@ Requires Python 3.8+.
## Quick start
```python
+import os
from xdk import Client
-client = Client(bearer_token="YOUR_BEARER_TOKEN")
+client = Client(bearer_token=os.environ["X_BEARER_TOKEN"])
-# Search for posts
-for page in client.posts.search_recent(query="X API", max_results=10):
- if page.data and len(page.data) > 0:
+for page in client.posts.search_recent(query="from:XDevelopers", max_results=10):
+ if page.data:
print(page.data[0].text)
- break
+ break
```
---
-## Key features
-
-| Feature | Description |
-|:--------|:------------|
-| **OAuth support** | Bearer Token, OAuth 2.0 with PKCE, and OAuth 1.0a |
-| **Automatic pagination** | Iterate through results without manual `next_token` handling |
-| **Streaming** | Real-time data via persistent connections (filtered stream, etc.) |
-| **Full API coverage** | All X API v2 endpoints — search, timelines, filtered stream, and more |
-
----
-
## Authentication
```python
+import os
from xdk import Client
-client = Client(bearer_token="YOUR_BEARER_TOKEN")
+client = Client(bearer_token=os.environ["X_BEARER_TOKEN"])
```
-
-```python title="Example" lines wrap icon="python"
+
+```python
from xdk import Client
from xdk.oauth2_auth import OAuth2PKCEAuth
auth = OAuth2PKCEAuth(
client_id="YOUR_CLIENT_ID",
- redirect_uri="YOUR_CALLBACK_URL",
- scope="tweet.read users.read offline.access"
+ redirect_uri="http://localhost:8080/callback",
+ scope="tweet.read tweet.write users.read offline.access",
)
auth_url = auth.get_authorization_url()
tokens = auth.fetch_token(authorization_response=callback_url)
-client = Client(bearer_token=tokens["access_token"])
+client = Client(access_token=tokens["access_token"])
```
@@ -85,7 +80,7 @@ oauth1 = OAuth1(
api_key="YOUR_API_KEY",
api_secret="YOUR_API_SECRET",
access_token="YOUR_ACCESS_TOKEN",
- access_token_secret="YOUR_ACCESS_TOKEN_SECRET"
+ access_token_secret="YOUR_ACCESS_TOKEN_SECRET",
)
client = Client(auth=oauth1)
@@ -99,11 +94,12 @@ client = Client(auth=oauth1)
| Category | Method |
|:---------|:-------|
-| **Posts** | `client.posts.search_recent()` |
-| **Users** | `client.users.get_me()` |
-| **Spaces** | `client.spaces.get()` |
-| **Lists** | `client.lists.get()` |
-| **DMs** | `client.direct_messages.get()` |
+| **Posts** | `client.posts.search_recent(query="...")`, `client.posts.create(body=...)` |
+| **Users** | `client.users.get_me()`, `client.users.get_by_username(username="...")` |
+| **Streams** | `client.stream.posts()`, `client.stream.update_rules(body=...)` |
+| **Spaces** | `client.spaces.get_by_id(id="...")` |
+| **Lists** | `client.lists.get_by_id(id="...")` |
+| **Direct Messages** | `client.direct_messages.get_events()` |
---
@@ -111,23 +107,21 @@ client = Client(auth=oauth1)
- Development install, prerequisites, and verification.
+ Virtual environments, editable installs, and verification.
Step-by-step first request walkthrough.
- Detailed guide for all auth methods.
+ Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
- Automatic pagination and iterators.
+ Automatic iterator pagination and manual cursors.
- Real-time data via filtered stream.
+ Filtered stream, sample stream, and rule management.
-
- Complete client and model reference.
+
+ Complete reference for all 24 resource clients.
-
-For code examples, see the [samples repo](https://github.com/xdevplatform/samples/tree/main/python).
\ No newline at end of file
diff --git a/tools/typescript-xdk.mdx b/tools/typescript-xdk.mdx
index da6e00bf5..b2ebd5914 100644
--- a/tools/typescript-xdk.mdx
+++ b/tools/typescript-xdk.mdx
@@ -2,14 +2,19 @@
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.
-keywords: ["TypeScript SDK", "XDK", "TypeScript", "JavaScript", "X API", "client library", "npm", "xdk"]
+keywords: ["TypeScript SDK", "XDK", "TypeScript", "JavaScript", "X API", "client library", "npm", "@xdevplatform/xdk"]
---
-The [TypeScript XDK](https://github.com/xdevplatform/twitter-api-typescript-sdk) is the official client library for the X API v2. Full type safety, automatic pagination, and event-driven streaming.
+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.
-
- Source code, issues, and releases.
-
+
+
+ `npm install @xdevplatform/xdk` — Node.js 18+.
+
+
+ Source code, release notes, and issue tracker.
+
+
---
@@ -21,70 +26,58 @@ The [TypeScript XDK](https://github.com/xdevplatform/twitter-api-typescript-sdk)
npm install @xdevplatform/xdk
```
-```bash yarn
-yarn add @xdevplatform/xdk
-```
-
```bash pnpm
pnpm add @xdevplatform/xdk
```
+```bash yarn
+yarn add @xdevplatform/xdk
+```
+
-Requires Node.js 16+ and TypeScript 4.5+ (if using TypeScript).
+Requires Node.js 18+ (built-in `fetch` and Web Crypto).
---
## Quick start
```typescript
-import { Client } from '@xdevplatform/xdk';
+import { Client } from "@xdevplatform/xdk";
-const client = new Client({ bearerToken: 'YOUR_BEARER_TOKEN' });
+const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });
-const userResponse = await client.users.getByUsername('XDevelopers');
+const userResponse = await client.users.getByUsername("XDevelopers");
console.log(userResponse.data?.username);
```
---
-## Key features
-
-| Feature | Description |
-|:--------|:------------|
-| **Type safety** | Complete TypeScript definitions for all endpoints and parameters |
-| **Authentication** | Bearer Token, OAuth 2.0 with PKCE, and OAuth 1.0a |
-| **Automatic pagination** | Async iteration support for paginated endpoints |
-| **Streaming** | Event-driven streaming with automatic reconnection |
-| **Full API coverage** | Users, Posts, Lists, Bookmarks, Communities, and more |
-
----
-
## Authentication
```typescript
-import { Client } from '@xdevplatform/xdk';
+import { Client } from "@xdevplatform/xdk";
-const client = new Client({ bearerToken: 'YOUR_BEARER_TOKEN' });
+const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });
```
-
-```typescript title="Example" lines wrap icon="square-js"
-import { Client, OAuth2, generateCodeVerifier, generateCodeChallenge } from '@xdevplatform/xdk';
+
+```typescript
+import { Client, OAuth2, generateCodeVerifier, generateCodeChallenge } from "@xdevplatform/xdk";
const oauth2 = new OAuth2({
- clientId: 'YOUR_CLIENT_ID',
- clientSecret: 'YOUR_CLIENT_SECRET',
- redirectUri: 'https://your-app.com/callback',
- scope: ['tweet.read', 'users.read', 'offline.access'],
+ clientId: process.env.X_CLIENT_ID!,
+ clientSecret: process.env.X_CLIENT_SECRET,
+ redirectUri: "http://localhost:3000/callback",
+ scope: ["tweet.read", "tweet.write", "users.read", "offline.access"],
});
const codeVerifier = generateCodeVerifier();
const codeChallenge = await generateCodeChallenge(codeVerifier);
oauth2.setPkceParameters(codeVerifier, codeChallenge);
-const authUrl = await oauth2.getAuthorizationUrl('state');
+const authUrl = await oauth2.getAuthorizationUrl("state");
const tokens = await oauth2.exchangeCode(authCode, codeVerifier);
const client = new Client({ accessToken: tokens.access_token });
@@ -92,16 +85,16 @@ const client = new Client({ accessToken: tokens.access_token });
```typescript
-import { Client, OAuth1 } from '@xdevplatform/xdk';
+import { Client, OAuth1 } from "@xdevplatform/xdk";
const oauth1 = new OAuth1({
- apiKey: 'YOUR_API_KEY',
- apiSecret: 'YOUR_API_SECRET',
- accessToken: 'YOUR_ACCESS_TOKEN',
- accessTokenSecret: 'YOUR_ACCESS_TOKEN_SECRET'
+ apiKey: process.env.X_API_KEY!,
+ apiSecret: process.env.X_API_SECRET!,
+ accessToken: process.env.X_ACCESS_TOKEN!,
+ accessTokenSecret: process.env.X_ACCESS_TOKEN_SECRET!,
});
-const client = new Client({ oauth1: oauth1 });
+const client = new Client({ oauth1 });
```
@@ -112,11 +105,12 @@ const client = new Client({ oauth1: oauth1 });
| Category | Method |
|:---------|:-------|
-| **Posts** | `client.posts.search()` |
-| **Users** | `client.users.getMe()` |
-| **Spaces** | `client.spaces.findSpaceById()` |
-| **Lists** | `client.lists.getList()` |
-| **DMs** | `client.directMessages.lookup()` |
+| **Posts** | `client.posts.searchRecent(query, options)`, `client.posts.create(body)` |
+| **Users** | `client.users.getMe()`, `client.users.getByUsername(username)` |
+| **Streams** | `client.stream.posts()`, `client.stream.postsSample()` |
+| **Spaces** | `client.spaces.getById(id)` |
+| **Lists** | `client.lists.getById(id)` |
+| **Direct Messages** | `client.directMessages.getEvents()` |
---
@@ -124,20 +118,21 @@ const client = new Client({ oauth1: oauth1 });
- Package managers, TypeScript setup, and requirements.
+ Package managers, ESM/CommonJS usage, and requirements.
+
+
+ Step-by-step first request walkthrough.
- Detailed guide for all auth methods.
+ Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a guides.
- Async iteration and paginated responses.
+ `UserPaginator`, `PostPaginator`, and async iteration.
- Event-driven streaming with reconnection.
+ `EventDrivenStream` listeners and `for await` consumption.
-
- Complete client, interface, and type reference.
+
+ Complete reference for all 24 resource clients.
-
-For code examples, see the [samples repo](https://github.com/xdevplatform/samples/tree/main/javascript).
\ No newline at end of file
diff --git a/x-api/introduction.mdx b/x-api/introduction.mdx
index 4196098a7..920a1bfcf 100644
--- a/x-api/introduction.mdx
+++ b/x-api/introduction.mdx
@@ -17,8 +17,8 @@ The X API gives you programmatic access to X's public conversation. Read posts,
Explore all available endpoints.
-
- Official Python and TypeScript libraries.
+
+ Official Python, TypeScript, Java, and C# libraries.
@@ -157,15 +157,18 @@ Earn free [xAI API](https://docs.x.ai) credits when you purchase X API credits
## Tools & libraries
-
+
- Official Python library with async support.
+ Official Python library (`xdk`).
- Official TypeScript/JavaScript library.
+ Official TypeScript/JavaScript library (`@xdevplatform/xdk`).
+
+
+ Official Java 17+ library (`com.x:xdk`).
-
- Interactive API explorer.
+
+ Official .NET 8+ library (`XDevPlatform.Xdk`).
diff --git a/xchat/getting-started.mdx b/xchat/getting-started.mdx
index c1f8cee54..6dddc58cc 100644
--- a/xchat/getting-started.mdx
+++ b/xchat/getting-started.mdx
@@ -12,7 +12,7 @@ X Chat apps use two pieces together:
| Component | Role |
|:----------|:-----|
| **[Chat XDK](/xchat/xchat-xdk)** | Encryption, decryption, signing, and private key storage (secure key backup or a key blob) |
-| **X API** | Public keys, conversation keys, messages, and events: via the [Python](/xdks/python/overview) or [TypeScript](/xdks/typescript/overview) XDK, or HTTPS with a user access token |
+| **X API** | Public keys, conversation keys, messages, and events: via the [Python](/xdks/python/overview), [TypeScript](/xdks/typescript/overview), [Java](/xdks/java/overview), or [C#](/xdks/csharp/overview) XDK, or HTTPS with a user access token |
**Prerequisites**
diff --git a/xchat/introduction.mdx b/xchat/introduction.mdx
index 83419ed91..9cea32b8a 100644
--- a/xchat/introduction.mdx
+++ b/xchat/introduction.mdx
@@ -14,7 +14,7 @@ The **X Chat API** lets you send and receive **encrypted** direct messages on X.
| Piece | Responsibility |
|:------|:---------------|
| **[Chat XDK](/xchat/xchat-xdk)** | Generate keys, encrypt/decrypt, sign/verify, optional passcode-protected secure key backup (Python, JS, Rust, Go, C#, Java) |
-| **X API access** | Public keys, conversation keys, messages, events, media: via **[XDK](/xdks/python/overview)** (Python/TypeScript) or HTTPS |
+| **X API access** | Public keys, conversation keys, messages, events, media: via **[XDK](/xdks/overview)** ([Python](/xdks/python/overview), [TypeScript](/xdks/typescript/overview), [Java](/xdks/java/overview), [C#](/xdks/csharp/overview)) or HTTPS |
| **Delivery** | [Webhooks or activity stream](/xchat/real-time-events) for live events; events API for history |
Follow **[Getting Started](/xchat/getting-started)** for a full implementation. For concepts only, see the **[Cryptography primer](/xchat/cryptography-primer)**.
diff --git a/xchat/xchat-xdk.mdx b/xchat/xchat-xdk.mdx
index 35bf577de..867c7384a 100644
--- a/xchat/xchat-xdk.mdx
+++ b/xchat/xchat-xdk.mdx
@@ -5,7 +5,7 @@ description: "Meet the Chat XDK, the library that handles keys, encryption, decr
keywords: ["Chat XDK", "chat-xdk", "encryption SDK", "key management", "signing", "SDK reference"]
---
-The **Chat XDK** handles key management, encryption, decryption, and signing for X Chat. It does **not** call the X HTTP API: pair it with the [Python](/xdks/python/overview) or [TypeScript](/xdks/typescript/overview) **XDK**, or with HTTPS and a user access token.
+The **Chat XDK** handles key management, encryption, decryption, and signing for X Chat. It does **not** call the X HTTP API: pair it with the [Python](/xdks/python/overview), [TypeScript](/xdks/typescript/overview), [Java](/xdks/java/overview), or [C#](/xdks/csharp/overview) **XDK**, or with HTTPS and a user access token.
App walkthrough: [Getting Started](/xchat/getting-started). Sample bots: [chat-xdk/examples](https://github.com/xdevplatform/chat-xdk/tree/main/examples).
diff --git a/xdks/csharp/authentication.mdx b/xdks/csharp/authentication.mdx
new file mode 100644
index 000000000..6180334c5
--- /dev/null
+++ b/xdks/csharp/authentication.mdx
@@ -0,0 +1,97 @@
+---
+title: C# Authentication
+sidebarTitle: Authentication
+description: Authenticate the C# / .NET XDK (XDevPlatform.Xdk) using Bearer Tokens, OAuth 2.0 PKCE with token refresh, or OAuth 1.0a user context.
+---
+
+`XClient` supports all three X API v2 authentication modes through `XClientOptions`:
+
+1. **Bearer Token (App-Only)** — Public read, search, and filtered/sample streaming endpoints.
+2. **OAuth 2.0 User Context with PKCE** — Scoped user-authorized calls (`POST /2/tweets`, bookmarks, DMs, X Chat) with refresh token support.
+3. **OAuth 1.0a User Context** — HMAC-SHA1 request signing.
+
+## 1. Bearer Token (App-Only)
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var user = await client.Users.GetByUsernameAsync("XDevelopers");
+```
+
+## 2. OAuth 2.0 User Context with PKCE
+
+If you already hold an OAuth 2.0 user access token:
+
+```csharp
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var me = await client.Users.GetMeAsync();
+```
+
+To run the full RFC 7636 PKCE authorization flow and enable token refresh via `OAuth2Pkce`:
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Auth;
+using Xdk.Models;
+
+var oauth2 = new OAuth2Pkce(
+ clientId: Environment.GetEnvironmentVariable("X_CLIENT_ID")!,
+ redirectUri: "http://localhost:8080/callback",
+ clientSecret: Environment.GetEnvironmentVariable("X_CLIENT_SECRET"), // null for public clients
+ scopes: new[] { "tweet.read", "tweet.write", "users.read", "offline.access" }
+);
+
+// 1. Direct the user to authorize your application
+string authorizationUrl = oauth2.GetAuthorizationUrl("random-csrf-state");
+
+// 2. Exchange the authorization code from the callback URL
+OAuth2Token token = await oauth2.ExchangeCodeAsync(callbackCode);
+
+// 3. Create XClient bound to the OAuth2Pkce manager
+using var client = new XClient(new XClientOptions
+{
+ OAuth2 = oauth2,
+});
+
+var created = await client.Posts.CreateAsync(new CreatePostsRequest
+{
+ Text = "Hello from C# XDK!",
+});
+
+// Refresh tokens explicitly when needed (requires offline.access scope)
+await client.RefreshTokenAsync();
+```
+
+## 3. OAuth 1.0a User Context
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Auth;
+
+var oauth1 = new OAuth1(
+ apiKey: Environment.GetEnvironmentVariable("X_API_KEY")!,
+ apiSecret: Environment.GetEnvironmentVariable("X_API_SECRET")!,
+ callback: "oob",
+ accessToken: Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+ accessTokenSecret: Environment.GetEnvironmentVariable("X_ACCESS_TOKEN_SECRET")
+);
+
+using var client = new XClient(new XClientOptions
+{
+ OAuth1 = oauth1,
+});
+
+var me = await client.Users.GetMeAsync();
+```
diff --git a/xdks/csharp/install.mdx b/xdks/csharp/install.mdx
new file mode 100644
index 000000000..5aab7ccae
--- /dev/null
+++ b/xdks/csharp/install.mdx
@@ -0,0 +1,62 @@
+---
+title: Install C# / .NET XDK
+sidebarTitle: Install
+description: Install the official C# / .NET XDK (XDevPlatform.Xdk) from NuGet for .NET 8.0 and newer projects.
+---
+
+Install `XDevPlatform.Xdk` from [NuGet.org](https://www.nuget.org/packages/XDevPlatform.Xdk).
+
+## Prerequisites
+
+- **.NET 8.0 SDK** or newer (`.NET 8`, `.NET 9`)
+- Zero external NuGet runtime dependencies required
+
+## Add Package
+
+
+
+```bash .NET CLI
+dotnet add package XDevPlatform.Xdk
+```
+
+```xml PackageReference (.csproj)
+
+
+
+```
+
+```powershell NuGet Package Manager
+Install-Package XDevPlatform.Xdk
+```
+
+
+
+## Custom `HttpClient` Integration
+
+In ASP.NET Core or worker services using `IHttpClientFactory`, pass a managed `HttpClient` via `XClientOptions.HttpClient`:
+
+```csharp
+using System.Net.Http;
+using Xdk;
+
+var httpClient = new HttpClient();
+var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+ HttpClient = httpClient,
+});
+```
+
+## Build from Source
+
+```bash
+git clone https://github.com/xdevplatform/xdk-csharp.git
+cd xdk-csharp
+dotnet test
+```
+
+## Next Steps
+
+- [Quickstart](/xdks/csharp/quickstart) — Make your first request
+- [Authentication](/xdks/csharp/authentication) — Configure Bearer Token, OAuth 2.0 PKCE, or OAuth 1.0a
+- [API Reference](/xdks/csharp/reference/overview) — Explore all 24 resource clients
diff --git a/xdks/csharp/llms.txt b/xdks/csharp/llms.txt
new file mode 100644
index 000000000..2d1864d26
--- /dev/null
+++ b/xdks/csharp/llms.txt
@@ -0,0 +1,40 @@
+# C# XDK (`XDevPlatform.Xdk` v0.1.2)
+
+> Official C# SDK for the X API v2 (.NET 8.0+). Install with `dotnet add package XDevPlatform.Xdk`.
+
+## Guides
+
+- [C# overview](https://docs.x.com/xdks/csharp/overview.md): Architecture, capabilities, and client overview
+- [C# install](https://docs.x.com/xdks/csharp/install.md): Package installation and runtime requirements
+- [C# quickstart](https://docs.x.com/xdks/csharp/quickstart.md): First authenticated X API v2 request in under 2 minutes
+- [C# authentication](https://docs.x.com/xdks/csharp/authentication.md): Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a user-context setup
+- [C# pagination](https://docs.x.com/xdks/csharp/pagination.md): Automatic cursor iteration across multi-page endpoints
+- [C# streaming](https://docs.x.com/xdks/csharp/streaming.md): Real-time event streams with reconnection and lifecycle handling
+
+## Client Reference
+
+- [Reference Overview](https://docs.x.com/xdks/csharp/reference/overview.md): Main client options and resource client directory
+- [`AccountClient` (Account)](https://docs.x.com/xdks/csharp/reference/clients/account.md): 2 methods via `client.Account`
+- [`AccountActivityClient` (Account Activity)](https://docs.x.com/xdks/csharp/reference/clients/account-activity.md): 5 methods via `client.AccountActivity`
+- [`ActivityClient` (Activity)](https://docs.x.com/xdks/csharp/reference/clients/activity.md): 5 methods via `client.Activity`
+- [`ArticlesClient` (Articles)](https://docs.x.com/xdks/csharp/reference/clients/articles.md): 2 methods via `client.Articles`
+- [`BotsClient` (Bots)](https://docs.x.com/xdks/csharp/reference/clients/bots.md): 6 methods via `client.Bots`
+- [`BroadcastsClient` (Broadcasts)](https://docs.x.com/xdks/csharp/reference/clients/broadcasts.md): 41 methods via `client.Broadcasts`
+- [`CallsClient` (Calls)](https://docs.x.com/xdks/csharp/reference/clients/calls.md): 10 methods via `client.Calls`
+- [`ChatClient` (Chat)](https://docs.x.com/xdks/csharp/reference/clients/chat.md): 45 methods via `client.Chat`
+- [`CommunitiesClient` (Communities)](https://docs.x.com/xdks/csharp/reference/clients/communities.md): 2 methods via `client.Communities`
+- [`CommunityNotesClient` (Community Notes)](https://docs.x.com/xdks/csharp/reference/clients/community-notes.md): 5 methods via `client.CommunityNotes`
+- [`ComplianceClient` (Compliance)](https://docs.x.com/xdks/csharp/reference/clients/compliance.md): 6 methods via `client.Compliance`
+- [`ConnectionsClient` (Connections)](https://docs.x.com/xdks/csharp/reference/clients/connections.md): 4 methods via `client.Connections`
+- [`DirectMessagesClient` (Direct Messages)](https://docs.x.com/xdks/csharp/reference/clients/direct-messages.md): 9 methods via `client.DirectMessages`
+- [`GeneralClient` (General)](https://docs.x.com/xdks/csharp/reference/clients/general.md): 1 methods via `client.General`
+- [`ListsClient` (Lists)](https://docs.x.com/xdks/csharp/reference/clients/lists.md): 9 methods via `client.Lists`
+- [`MediaClient` (Media)](https://docs.x.com/xdks/csharp/reference/clients/media.md): 19 methods via `client.Media`
+- [`NewsClient` (News)](https://docs.x.com/xdks/csharp/reference/clients/news.md): 2 methods via `client.News`
+- [`PostsClient` (Posts)](https://docs.x.com/xdks/csharp/reference/clients/posts.md): 17 methods via `client.Posts`
+- [`SpacesClient` (Spaces)](https://docs.x.com/xdks/csharp/reference/clients/spaces.md): 6 methods via `client.Spaces`
+- [`StreamClient` (Stream)](https://docs.x.com/xdks/csharp/reference/clients/stream.md): 18 methods via `client.Stream`
+- [`TrendsClient` (Trends)](https://docs.x.com/xdks/csharp/reference/clients/trends.md): 3 methods via `client.Trends`
+- [`UsageClient` (Usage)](https://docs.x.com/xdks/csharp/reference/clients/usage.md): 2 methods via `client.Usage`
+- [`UsersClient` (Users)](https://docs.x.com/xdks/csharp/reference/clients/users.md): 46 methods via `client.Users`
+- [`WebhooksClient` (Webhooks)](https://docs.x.com/xdks/csharp/reference/clients/webhooks.md): 8 methods via `client.Webhooks`
diff --git a/xdks/csharp/overview.mdx b/xdks/csharp/overview.mdx
new file mode 100644
index 000000000..852ea6886
--- /dev/null
+++ b/xdks/csharp/overview.mdx
@@ -0,0 +1,70 @@
+---
+title: C# / .NET XDK
+sidebarTitle: Overview
+description: Official C# and .NET SDK (XDevPlatform.Xdk) for the X API v2 targeting .NET 8+ with zero external runtime dependencies, IAsyncEnumerable pagination, and EventStream.
+---
+
+The **C# / .NET XDK** (`XDevPlatform.Xdk`) is X's official .NET client library for the X API v2, generated directly from the [official OpenAPI specification](https://api.x.com/2/openapi.json) and published on NuGet.
+
+
+
+ `dotnet add package XDevPlatform.Xdk` — .NET 8.0+.
+
+
+ Source code, runnable examples, and issue tracker.
+
+
+
+## Key Features
+
+- **Zero External Runtime Dependencies**: Built entirely on `System.Net.Http.HttpClient` and `System.Text.Json` for .NET 8+.
+- **First-Class Async & Cancellation**: Every endpoint method is `async` (`*Async`), accepts a `CancellationToken`, and `XClient` implements `IDisposable`.
+- **Authentication**: App-only Bearer Token, OAuth 2.0 User Context with PKCE (`OAuth2Pkce`) and token refresh, and OAuth 1.0a HMAC-SHA1 (`OAuth1`).
+- **Async Pagination (`IAsyncEnumerable`)**: Paginated endpoints expose `*Pages(...)` returning `Paginator`, enabling native `await foreach` loops.
+- **Resilient Streaming (`IAsyncDisposable`)**: Streaming endpoints return `EventStream` supporting `await using` and `await foreach` with incremental UTF-8 line decoding and exponential backoff reconnection.
+
+## Quick Example
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Clients;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Users.GetByUsernameAsync(
+ "XDevelopers",
+ new UsersClient.GetByUsernameOptions
+ {
+ UserFields = new List { "created_at", "public_metrics" },
+ });
+
+Console.WriteLine(response.Data);
+```
+
+## Guides & Reference
+
+
+
+ Add `XDevPlatform.Xdk` via the .NET CLI or NuGet.
+
+
+ Make your first X API v2 request in C#.
+
+
+ Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a setup.
+
+
+ Iterate pages lazily with `await foreach`.
+
+
+ Consume live NDJSON streams with `EventStream`.
+
+
+ Full method & parameter reference for all 24 clients.
+
+
diff --git a/xdks/csharp/pagination.mdx b/xdks/csharp/pagination.mdx
new file mode 100644
index 000000000..e0ba72caf
--- /dev/null
+++ b/xdks/csharp/pagination.mdx
@@ -0,0 +1,61 @@
+---
+title: C# Pagination
+sidebarTitle: Pagination
+description: Automatically iterate paginated X API v2 endpoints in C# using IAsyncEnumerable and *Pages(...) methods.
+---
+
+Every paginated endpoint in the C# XDK exposes a companion `*Pages(...)` method returning `Paginator` (`IAsyncEnumerable`), which lazily fetches subsequent pages via `meta.next_token` as you iterate with `await foreach`.
+
+## Automatic Async Pagination (`*Pages`)
+
+```csharp
+using System;
+using System.Collections.Generic;
+using System.Threading;
+using Xdk;
+using Xdk.Clients;
+
+using var cts = new CancellationTokenSource();
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+int pageCount = 0;
+await foreach (var page in client.Posts.SearchRecentPages(
+ "from:XDevelopers -is:retweet",
+ new PostsClient.SearchRecentOptions
+ {
+ MaxResults = 50,
+ PostFields = new List { "created_at", "public_metrics" },
+ }).WithCancellation(cts.Token))
+{
+ Console.WriteLine($"Fetched {page.Data?.Count ?? 0} posts");
+ if (++pageCount >= 5)
+ {
+ break; // Stops immediately without issuing additional HTTP requests
+ }
+}
+```
+
+## Manual Cursor Control
+
+If you need to persist pagination tokens across separate requests or background jobs, call the single-page `*Async` method with `PaginationToken`:
+
+```csharp
+var firstPage = await client.Posts.SearchRecentAsync(
+ "from:XDevelopers",
+ new PostsClient.SearchRecentOptions { MaxResults = 25 });
+
+string? nextToken = firstPage.Meta?.NextToken;
+if (!string.IsNullOrEmpty(nextToken))
+{
+ var secondPage = await client.Posts.SearchRecentAsync(
+ "from:XDevelopers",
+ new PostsClient.SearchRecentOptions
+ {
+ MaxResults = 25,
+ PaginationToken = nextToken,
+ });
+}
+```
diff --git a/xdks/csharp/quickstart.mdx b/xdks/csharp/quickstart.mdx
new file mode 100644
index 000000000..92f7f823f
--- /dev/null
+++ b/xdks/csharp/quickstart.mdx
@@ -0,0 +1,58 @@
+---
+title: C# Quickstart
+sidebarTitle: Quickstart
+description: Make your first X API v2 request in C# (.NET 8+) using XDevPlatform.Xdk and a Bearer Token.
+---
+
+Make your first authenticated X API v2 call with `XDevPlatform.Xdk` in minutes.
+
+
+
+```bash
+dotnet new console -n XdkQuickstart
+cd XdkQuickstart
+dotnet add package XDevPlatform.Xdk
+```
+
+
+ Generate a **Bearer Token** in the [X Developer Console](https://console.x.com) and export it in your shell:
+
+```bash
+export X_BEARER_TOKEN="your_bearer_token_here"
+```
+
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Clients;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var user = await client.Users.GetByUsernameAsync("XDevelopers");
+Console.WriteLine($"User: {user.Data}");
+
+var posts = await client.Posts.SearchRecentAsync(
+ "from:XDevelopers -is:retweet",
+ new PostsClient.SearchRecentOptions
+ {
+ MaxResults = 10,
+ PostFields = new List { "created_at", "public_metrics" },
+ });
+Console.WriteLine($"Posts returned: {posts.Data?.Count ?? 0}");
+```
+
+ Run your app with `dotnet run`.
+
+
+
+## Next Steps
+
+- [Authentication](/xdks/csharp/authentication) — Act on behalf of users with OAuth 2.0 PKCE or OAuth 1.0a
+- [Pagination](/xdks/csharp/pagination) — Stream pages lazily with `await foreach`
+- [Streaming](/xdks/csharp/streaming) — Subscribe to live streams with `EventStream`
+- [Client Reference](/xdks/csharp/reference/overview) — Browse all 24 resource clients
diff --git a/xdks/csharp/reference/clients/account-activity.mdx b/xdks/csharp/reference/clients/account-activity.mdx
new file mode 100644
index 000000000..dc03d10fe
--- /dev/null
+++ b/xdks/csharp/reference/clients/account-activity.mdx
@@ -0,0 +1,176 @@
+---
+title: "AccountActivityClient (C# XDK)"
+sidebarTitle: "Account Activity"
+description: "C# XDK AccountActivityClient reference — 5 methods for X API v2 Account Activity endpoints."
+---
+
+Access **Account Activity** endpoints via `client.AccountActivity` (`AccountActivityClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateSubscriptionAsync`](#createsubscriptionasync) | `POST /2/account_activity/webhooks/{webhook_id}/subscriptions/all` | Standard | Create Subscription |
+| [`DeleteSubscriptionAsync`](#deletesubscriptionasync) | `DELETE /2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all` | Standard | Delete Subscription |
+| [`GetSubscriptionCountAsync`](#getsubscriptioncountasync) | `GET /2/account_activity/subscriptions/count` | Standard | Get Subscription Count |
+| [`GetSubscriptionsAsync`](#getsubscriptionsasync) | `GET /2/account_activity/webhooks/{webhook_id}/subscriptions/all/list` | Standard | Get Subscriptions |
+| [`ValidateSubscriptionAsync`](#validatesubscriptionasync) | `GET /2/account_activity/webhooks/{webhook_id}/subscriptions/all` | Standard | Validate Subscription |
+
+## `CreateSubscriptionAsync`
+
+POST `/2/account_activity/webhooks/{webhook_id}/subscriptions/all`
+
+**Create Subscription**
+
+Creates an Account Activity subscription for the user and the given webhook.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.AccountActivity.CreateSubscriptionAsync("1234567890", new CreateAccountActivitySubscriptionRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `webhook_id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteSubscriptionAsync`
+
+DELETE `/2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all`
+
+**Delete Subscription**
+
+Deletes an Account Activity subscription for the given webhook and user ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.AccountActivity.DeleteSubscriptionAsync("1234567890", "2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `webhook_id` (path parameter).
+
+
+
+ `user_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetSubscriptionCountAsync`
+
+GET `/2/account_activity/subscriptions/count`
+
+**Get Subscription Count**
+
+Retrieves a count of currently active Account Activity subscriptions.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.AccountActivity.GetSubscriptionCountAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `GetSubscriptionsAsync`
+
+GET `/2/account_activity/webhooks/{webhook_id}/subscriptions/all/list`
+
+**Get Subscriptions**
+
+Retrieves a list of all active subscriptions for a given webhook.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.AccountActivity.GetSubscriptionsAsync("1234567890");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `webhook_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `ValidateSubscriptionAsync`
+
+GET `/2/account_activity/webhooks/{webhook_id}/subscriptions/all`
+
+**Validate Subscription**
+
+Checks a user's Account Activity subscription for a given webhook.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.AccountActivity.ValidateSubscriptionAsync("1234567890");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `webhook_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/account.mdx b/xdks/csharp/reference/clients/account.mdx
new file mode 100644
index 000000000..d194976e6
--- /dev/null
+++ b/xdks/csharp/reference/clients/account.mdx
@@ -0,0 +1,72 @@
+---
+title: "AccountClient (C# XDK)"
+sidebarTitle: "Account"
+description: "C# XDK AccountClient reference — 2 methods for X API v2 Account endpoints."
+---
+
+Access **Account** endpoints via `client.Account` (`AccountClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`EnsureAsync`](#ensureasync) | `POST /2/account` | Standard | Ensure Developer Account |
+| [`GetDeveloperAsync`](#getdeveloperasync) | `GET /2/account` | Standard | Get Developer Account |
+
+## `EnsureAsync`
+
+POST `/2/account`
+
+**Ensure Developer Account**
+
+Creates an X Developer Platform account for the authenticated user if they do not already have one, and returns it. Idempotent: when the user already has an account it is returned unchanged with `created` false.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Account.EnsureAsync(new EnsureAccountRequest { Metadata = "example" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetDeveloperAsync`
+
+GET `/2/account`
+
+**Get Developer Account**
+
+Returns the X Developer Platform account that is billed for the authenticated user's API access. A user with no such account gets a resource-not-found error entry.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Account.GetDeveloperAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/activity.mdx b/xdks/csharp/reference/clients/activity.mdx
new file mode 100644
index 000000000..56ebc60c2
--- /dev/null
+++ b/xdks/csharp/reference/clients/activity.mdx
@@ -0,0 +1,199 @@
+---
+title: "ActivityClient (C# XDK)"
+sidebarTitle: "Activity"
+description: "C# XDK ActivityClient reference — 5 methods for X API v2 Activity endpoints."
+---
+
+Access **Activity** endpoints via `client.Activity` (`ActivityClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateSubscriptionAsync`](#createsubscriptionasync) | `POST /2/activity/subscriptions` | Standard | Create X Activity Subscription |
+| [`DeleteSubscriptionAsync`](#deletesubscriptionasync) | `DELETE /2/activity/subscriptions/{subscription_id}` | Standard | Delete X Activity Subscription |
+| [`DeleteSubscriptionsByIdsAsync`](#deletesubscriptionsbyidsasync) | `DELETE /2/activity/subscriptions` | Standard | Delete X Activity Subscriptions by IDs |
+| [`GetSubscriptionsAsync`](#getsubscriptionsasync) | `GET /2/activity/subscriptions` | Paginated | Get X Activity Subscriptions |
+| [`UpdateSubscriptionAsync`](#updatesubscriptionasync) | `PUT /2/activity/subscriptions/{subscription_id}` | Standard | Update X Activity Subscription |
+
+## `CreateSubscriptionAsync`
+
+POST `/2/activity/subscriptions`
+
+**Create X Activity Subscription**
+
+Creates a subscription for an X activity event. OAuth2 user-context tokens must hold the scope matching the requested event_type: dm.read for chat.* and dm.* events, like.read for like.* events, mute.read for mute.* events, block.read for block.* events, follows.read for subscriptions.* events, and tweet.read for all other event types. Mute and block subscriptions are actor-only: filter.user_id must identify the authenticated user and direction is not supported. subscriptions.* events require a user-context token and filter.user_id must identify the authenticated user. Optional filter.qualifiers further narrow supported chat, follow, unfollow, like, subscriptions, and trends events.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Activity.CreateSubscriptionAsync(
+ new CreateActivitySubscriptionRequest { EventType = "profile.update.bio" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteSubscriptionAsync`
+
+DELETE `/2/activity/subscriptions/{subscription_id}`
+
+**Delete X Activity Subscription**
+
+Deletes a subscription for an X activity event
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Activity.DeleteSubscriptionAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `subscription_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteSubscriptionsByIdsAsync`
+
+DELETE `/2/activity/subscriptions`
+
+**Delete X Activity Subscriptions by IDs**
+
+Deletes multiple subscriptions for X activity events by their IDs
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Activity.DeleteSubscriptionsByIdsAsync(new List { "1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `ids` (query parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetSubscriptionsAsync`
+
+GET `/2/activity/subscriptions` Paginated
+
+**Get X Activity Subscriptions**
+
+Get a list of active subscriptions for XAA. Optional user_id narrows the list to subscriptions whose filter.user_id matches; with a user-context token it must identify the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Activity.GetSubscriptionsPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token that decodes to 9 bytes.
+
+
+
+ Only return subscriptions whose filter.user_id matches.
+
+
+
+
+**Returns:** `Task` (use `GetSubscriptionsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `UpdateSubscriptionAsync`
+
+PUT `/2/activity/subscriptions/{subscription_id}`
+
+**Update X Activity Subscription**
+
+Updates a subscription for an X activity event
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Activity.UpdateSubscriptionAsync(
+ "1895000000000000000",
+ new UpdateActivitySubscriptionRequest { Tag = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `subscription_id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/articles.mdx b/xdks/csharp/reference/clients/articles.mdx
new file mode 100644
index 000000000..7b0bb73f6
--- /dev/null
+++ b/xdks/csharp/reference/clients/articles.mdx
@@ -0,0 +1,78 @@
+---
+title: "ArticlesClient (C# XDK)"
+sidebarTitle: "Articles"
+description: "C# XDK ArticlesClient reference — 2 methods for X API v2 Articles endpoints."
+---
+
+Access **Articles** endpoints via `client.Articles` (`ArticlesClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`ArticleCreateDraftAsync`](#articlecreatedraftasync) | `POST /2/articles/draft` | Standard | Create Draft Article |
+| [`ArticlePublishAsync`](#articlepublishasync) | `POST /2/articles/{article_id}/publish` | Standard | Publish Article |
+
+## `ArticleCreateDraftAsync`
+
+POST `/2/articles/draft`
+
+**Create Draft Article**
+
+Creates a new Article draft that can later be published.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Articles.ArticleCreateDraftAsync(new ArticleCreateDraftRequest { Title = "example" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Create a draft Article.
+
+
+**Returns:** `Task`
+
+---
+
+## `ArticlePublishAsync`
+
+POST `/2/articles/{article_id}/publish`
+
+**Publish Article**
+
+Publishes a draft Article, making it publicly visible.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Articles.ArticlePublishAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `article_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/bots.mdx b/xdks/csharp/reference/clients/bots.mdx
new file mode 100644
index 000000000..d328c872a
--- /dev/null
+++ b/xdks/csharp/reference/clients/bots.mdx
@@ -0,0 +1,232 @@
+---
+title: "BotsClient (C# XDK)"
+sidebarTitle: "Bots"
+description: "C# XDK BotsClient reference — 6 methods for X API v2 Bots endpoints."
+---
+
+Access **Bots** endpoints via `client.Bots` (`BotsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateBotAsync`](#createbotasync) | `POST /2/bots` | Standard | Create a Bot |
+| [`DeleteBotAsync`](#deletebotasync) | `DELETE /2/bots/{id}` | Standard | Delete Bot |
+| [`GetAsync`](#getasync) | `GET /2/bots` | Standard | Get Bots |
+| [`RevokeBotTokenAsync`](#revokebottokenasync) | `DELETE /2/bots/{id}/token` | Standard | Revoke Bot Token |
+| [`RotateBotTokenAsync`](#rotatebottokenasync) | `POST /2/bots/{id}/token` | Standard | Rotate Bot Token |
+| [`UpdateBotAsync`](#updatebotasync) | `PUT /2/bots/{id}` | Standard | Update Bot |
+
+## `CreateBotAsync`
+
+POST `/2/bots`
+
+**Create a Bot**
+
+Creates a bot account in the calling app's project and returns its bearer token. Idempotent on handle: repeating the request for a handle that already names one of the project's bots returns that bot with a freshly minted token, revoking the previous one — safe to retry when a response was lost, since the replaced token was never seen. With an OAuth 2.0 user token, the user must be an admin of the project's developer account. On API Connect, where the request bills the user's own account, the bot is created in the user's project instead; its token is still minted for the calling app.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.CreateBotAsync(new CreateBotRequest { Handle = "example" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteBotAsync`
+
+DELETE `/2/bots/{id}`
+
+**Delete Bot**
+
+Deletes a bot account from the calling app's project. With an OAuth 2.0 user token, the user must be an admin of the project's developer account. On API Connect, where the request bills the user's own account, the bot is deleted from the user's project instead.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.DeleteBotAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetAsync`
+
+GET `/2/bots`
+
+**Get Bots**
+
+Retrieves the bot accounts in the calling app's project. meta.max_bots is the most bots the project can have.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.GetAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `RevokeBotTokenAsync`
+
+DELETE `/2/bots/{id}/token`
+
+**Revoke Bot Token**
+
+Revokes a bot's bearer token. The bot account is kept, and rotating its token mints a new one.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.RevokeBotTokenAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `RotateBotTokenAsync`
+
+POST `/2/bots/{id}/token`
+
+**Rotate Bot Token**
+
+Mints a new bearer token for a bot and invalidates every token previously issued for it. The new token is returned only once.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.RotateBotTokenAsync(
+ "1895000000000000000",
+ new RotateBotTokenRequest { Scopes = new List { "example" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateBotAsync`
+
+PUT `/2/bots/{id}`
+
+**Update Bot**
+
+Updates a bot's handle, display name, or who may send it Direct Messages.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Bots.UpdateBotAsync("1895000000000000000", new UpdateBotRequest { Handle = "example" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/broadcasts.mdx b/xdks/csharp/reference/clients/broadcasts.mdx
new file mode 100644
index 000000000..ae108470f
--- /dev/null
+++ b/xdks/csharp/reference/clients/broadcasts.mdx
@@ -0,0 +1,1554 @@
+---
+title: "BroadcastsClient (C# XDK)"
+sidebarTitle: "Broadcasts"
+description: "C# XDK BroadcastsClient reference — 41 methods for X API v2 Broadcasts endpoints."
+---
+
+Access **Broadcasts** endpoints via `client.Broadcasts` (`BroadcastsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`AddChatModeratorAsync`](#addchatmoderatorasync) | `POST /2/broadcasts/chat/moderators` | Standard | Add a Chat Moderator |
+| [`CreateBroadcastAsync`](#createbroadcastasync) | `POST /2/broadcasts` | Standard | Go Live on a Source |
+| [`CreateScheduledBroadcastAsync`](#createscheduledbroadcastasync) | `POST /2/broadcasts/scheduled` | Standard | Create a Scheduled Broadcast |
+| [`CreateSourceAsync`](#createsourceasync) | `POST /2/sources` | Standard | Create a Stream Source |
+| [`CreateUserBroadcastAsync`](#createuserbroadcastasync) | `POST /2/users/{id}/broadcasts` | Standard | Create a Broadcast on a User's Source |
+| [`CreateUserSourceAsync`](#createusersourceasync) | `POST /2/users/{id}/sources` | Standard | Create a Stream Source for a User |
+| [`DeleteBroadcastAsync`](#deletebroadcastasync) | `DELETE /2/broadcasts/{id}` | Standard | Delete a Broadcast |
+| [`DeleteBroadcastChatMessageAsync`](#deletebroadcastchatmessageasync) | `DELETE /2/broadcasts/{id}/chat/{message_id}` | Standard | Remove a Chat Message from a Live Broadcast |
+| [`DeleteScheduledBroadcastAsync`](#deletescheduledbroadcastasync) | `DELETE /2/broadcasts/scheduled/{id}` | Standard | Delete a Scheduled Broadcast |
+| [`DeleteSourceAsync`](#deletesourceasync) | `DELETE /2/sources/{id}` | Standard | Delete a Stream Source |
+| [`DeleteUserBroadcastAsync`](#deleteuserbroadcastasync) | `DELETE /2/users/{id}/broadcasts/{broadcast_id}` | Standard | Delete a User's Broadcast |
+| [`DeleteUserSourceAsync`](#deleteusersourceasync) | `DELETE /2/users/{id}/sources/{source_id}` | Standard | Delete a User's Stream Source |
+| [`GetBroadcastAsync`](#getbroadcastasync) | `GET /2/broadcasts/{id}` | Standard | Get a Broadcast |
+| [`GetBroadcastChatAsync`](#getbroadcastchatasync) | `GET /2/broadcasts/{id}/chat` | Paginated | Get Broadcast Chat History |
+| [`GetChatModeratorsAsync`](#getchatmoderatorsasync) | `GET /2/broadcasts/chat/moderators` | Standard | Get Chat Moderators |
+| [`GetChatMutedUsersAsync`](#getchatmutedusersasync) | `GET /2/broadcasts/chat/mutes` | Paginated | Get Muted Chat Users |
+| [`GetRegionAsync`](#getregionasync) | `GET /2/region` | Standard | Get the Ingest Region |
+| [`GetScheduledBroadcastAsync`](#getscheduledbroadcastasync) | `GET /2/broadcasts/scheduled/{id}` | Standard | Get a Scheduled Broadcast |
+| [`GetSourceAsync`](#getsourceasync) | `GET /2/sources/{id}` | Standard | Get a Stream Source |
+| [`GetSourceStreamKeyAsync`](#getsourcestreamkeyasync) | `GET /2/sources/{id}/stream_key` | Standard | Get a Stream Source's Stream Key |
+| [`GetUserBroadcastAsync`](#getuserbroadcastasync) | `GET /2/users/{id}/broadcasts/{broadcast_id}` | Standard | Get a User's Broadcast |
+| [`GetUserSourceAsync`](#getusersourceasync) | `GET /2/users/{id}/sources/{source_id}` | Standard | Get a User's Stream Source |
+| [`GoLiveScheduledBroadcastAsync`](#golivescheduledbroadcastasync) | `POST /2/broadcasts/scheduled/{id}/live` | Standard | Go Live on a Scheduled Broadcast |
+| [`ListAsync`](#listasync) | `GET /2/broadcasts` | Paginated | List Broadcasts |
+| [`ListLiveCategoriesAsync`](#listlivecategoriesasync) | `GET /2/broadcasts/categories` | Standard | List Live Categories |
+| [`ListScheduledAsync`](#listscheduledasync) | `GET /2/broadcasts/scheduled` | Paginated | List Scheduled Broadcasts |
+| [`ListSourcesAsync`](#listsourcesasync) | `GET /2/sources` | Standard | List Stream Sources |
+| [`ListUserAsync`](#listuserasync) | `GET /2/users/{id}/broadcasts` | Paginated | List a User's Broadcasts |
+| [`ListUserSourcesAsync`](#listusersourcesasync) | `GET /2/users/{id}/sources` | Standard | List a User's Stream Sources |
+| [`MuteBroadcastChatUserAsync`](#mutebroadcastchatuserasync) | `POST /2/broadcasts/{id}/chat/mutes` | Standard | Mute or Time Out a User in a Broadcast Chat |
+| [`MuteChatUserAsync`](#mutechatuserasync) | `POST /2/broadcasts/chat/mutes` | Standard | Mute or Time Out a User in Chat |
+| [`RemoveChatModeratorAsync`](#removechatmoderatorasync) | `DELETE /2/broadcasts/chat/moderators/{user_id}` | Standard | Remove a Chat Moderator |
+| [`SendBroadcastChatAsync`](#sendbroadcastchatasync) | `POST /2/broadcasts/{id}/chat` | Standard | Send a Chat Message to a Live Broadcast |
+| [`UnmuteBroadcastChatUserAsync`](#unmutebroadcastchatuserasync) | `DELETE /2/broadcasts/{id}/chat/mutes/{user_id}` | Standard | Unmute a User in a Broadcast Chat |
+| [`UnmuteChatUserAsync`](#unmutechatuserasync) | `DELETE /2/broadcasts/chat/mutes/{user_id}` | Standard | Unmute a User in Chat |
+| [`UpdateBroadcastAsync`](#updatebroadcastasync) | `PUT /2/broadcasts/{id}` | Standard | Update a Broadcast |
+| [`UpdateBroadcastStateAsync`](#updatebroadcaststateasync) | `PUT /2/broadcasts/{id}/state` | Standard | End a Broadcast |
+| [`UpdateScheduledBroadcastAsync`](#updatescheduledbroadcastasync) | `PUT /2/broadcasts/scheduled/{id}` | Standard | Update a Scheduled Broadcast |
+| [`UpdateSourceAsync`](#updatesourceasync) | `PUT /2/sources/{id}` | Standard | Rename a Stream Source |
+| [`UpdateUserBroadcastStateAsync`](#updateuserbroadcaststateasync) | `PUT /2/users/{id}/broadcasts/{broadcast_id}/state` | Standard | Publish or End a User's Broadcast |
+| [`UpdateUserSourceAsync`](#updateusersourceasync) | `PUT /2/users/{id}/sources/{source_id}` | Standard | Rename a User's Stream Source |
+
+## `AddChatModeratorAsync`
+
+POST `/2/broadcasts/chat/moderators`
+
+**Add a Chat Moderator**
+
+Adds a moderator to the authenticated broadcaster's persistent list and returns the updated moderator user IDs. The list applies to all current and future broadcast chats.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.AddChatModeratorAsync(new AddChatModeratorRequest { UserId = "2244994945" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateBroadcastAsync`
+
+POST `/2/broadcasts`
+
+**Go Live on a Source**
+
+Takes one or more of the authenticated user's sources live and returns 201 with the new broadcast. Several sources (`source_id` plus `additional_source_ids`, one per video format) go live together as one broadcast; they must all be RTMP sources in one region, and when one of them is already live its broadcast is returned only if it holds every listed source. The broadcast goes live immediately (state `RUNNING`), even before the encoder sends video, and is ended (`TIMED_OUT`) if no video arrives within 5 minutes. It is announced in a Post unless `should_not_tweet` is true. When the source already has a live broadcast, returns 200 with that broadcast unchanged and ignores the request's `title`, `locale`, `chat_option` and `should_not_tweet`. A missing `tweet_id` means the Post hasn't been created yet, was suppressed with `should_not_tweet`, or could not be created; read it later with GET /2/broadcasts/:id. A 409 `conflict` means the source can't go live right now: either it can't take video before the encoder connects (external HLS sources, or regions where this isn't available), so retry once video is flowing, or another broadcast is live on it, so END that broadcast first. The `detail` says which, and names the live broadcast when known.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.CreateBroadcastAsync(new CreateBroadcastRequest { SourceId = "1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateScheduledBroadcastAsync`
+
+POST `/2/broadcasts/scheduled`
+
+**Create a Scheduled Broadcast**
+
+Schedules a broadcast for the authenticated user on one of their sources: `source_id` is required. Passing a stream key as `source_id` is deprecated and stops working when the /2/users/:id/sources and /2/users/:id/broadcasts routes reach end of life on January 1, 2027; pass the source's `id` from GET /2/sources instead.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.CreateScheduledBroadcastAsync(
+ new CreateScheduledBroadcastRequest { SourceId = "1895000000000000000", ScheduledStartMs = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateSourceAsync`
+
+POST `/2/sources`
+
+**Create a Stream Source**
+
+Creates a persistent RTMP/RTMPS ingest point for the authenticated user. Push an encoder to `rtmps_url` with the returned `stream_key`. This is the only response that includes the stream key; read it later with GET /2/sources/:id/stream_key.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.CreateSourceAsync(new CreateSourceRequest { Name = "My List", Region = "example" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateUserBroadcastAsync`
+
+POST `/2/users/{id}/broadcasts`
+
+**Create a Broadcast on a User's Source**
+
+Creates a broadcast on one of the authenticated user's sources. `id` must be the authenticated user. The broadcast is `NOT_STARTED` and posts nothing until it is published with PUT /2/users/:id/broadcasts/:broadcast_id/state; one that is never published is deleted after 7 days. When the source already has a running broadcast, that broadcast is returned.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.CreateUserBroadcastAsync(
+ "2244994945",
+ new CreateUserBroadcastRequest { SourceId = "1895000000000000000" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateUserSourceAsync`
+
+POST `/2/users/{id}/sources`
+
+**Create a Stream Source for a User**
+
+Creates a persistent RTMP/RTMPS ingest point for the authenticated user. `id` must be the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.CreateUserSourceAsync("2244994945", new CreateUserSourceRequest { Name = "My List" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteBroadcastAsync`
+
+DELETE `/2/broadcasts/{id}`
+
+**Delete a Broadcast**
+
+Deletes one of the authenticated user's broadcasts, scheduled or ended, including its replay. A running broadcast must be ended first.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteBroadcastAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteBroadcastChatMessageAsync`
+
+DELETE `/2/broadcasts/{id}/chat/{message_id}`
+
+**Remove a Chat Message from a Live Broadcast**
+
+Removes a specific chat message from a running broadcast where the authenticated user is the host or a moderator.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteBroadcastChatMessageAsync("1895000000000000000", "1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `message_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteScheduledBroadcastAsync`
+
+DELETE `/2/broadcasts/scheduled/{id}`
+
+**Delete a Scheduled Broadcast**
+
+Deletes a scheduled broadcast by its alphanumeric broadcast id.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteScheduledBroadcastAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ Deprecated: recurring schedules are being retired and `true` will be rejected.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteSourceAsync`
+
+DELETE `/2/sources/{id}`
+
+**Delete a Stream Source**
+
+Deletes one of the authenticated user's stream sources.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteSourceAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Source id (19 digits), from GET /2/sources.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteUserBroadcastAsync`
+
+DELETE `/2/users/{id}/broadcasts/{broadcast_id}`
+
+**Delete a User's Broadcast**
+
+Deletes one of the authenticated user's broadcasts. `id` must be the authenticated user. Deprecated: use DELETE /2/broadcasts/:id.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteUserBroadcastAsync("2244994945", "1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `broadcast_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteUserSourceAsync`
+
+DELETE `/2/users/{id}/sources/{source_id}`
+
+**Delete a User's Stream Source**
+
+Deletes one of the authenticated user's stream sources. `id` must be the authenticated user. Success is an empty object.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.DeleteUserSourceAsync("2244994945", "1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `source_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetBroadcastAsync`
+
+GET `/2/broadcasts/{id}`
+
+**Get a Broadcast**
+
+Returns a broadcast owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetBroadcastAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of Broadcast fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetBroadcastChatAsync`
+
+GET `/2/broadcasts/{id}/chat` Paginated
+
+**Get Broadcast Chat History**
+
+Returns newest-first chat messages for a broadcast owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Broadcasts.GetBroadcastChatPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A 64-bit signed integer.
+
+
+
+ A comma separated list of BroadcastChatMessage fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetBroadcastChatPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetChatModeratorsAsync`
+
+GET `/2/broadcasts/chat/moderators`
+
+**Get Chat Moderators**
+
+Returns the authenticated broadcaster's persistent moderators as User resources. The list applies to all of their current and future broadcast chats.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetChatModeratorsAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetChatMutedUsersAsync`
+
+GET `/2/broadcasts/chat/mutes` Paginated
+
+**Get Muted Chat Users**
+
+Returns the users muted in the authenticated broadcaster's chat, with the expiry time of timed mutes. Mutes apply to all of their broadcasts. Expired timed mutes are omitted. Use `expansions=user_id` to include the muted users.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Broadcasts.GetChatMutedUsersPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ A comma separated list of BroadcastChatMute fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetChatMutedUsersPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetRegionAsync`
+
+GET `/2/region`
+
+**Get the Ingest Region**
+
+Returns the ingest region nearest the server handling the request. Pass it as `region` when creating a stream source to ingest there.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetRegionAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `GetScheduledBroadcastAsync`
+
+GET `/2/broadcasts/scheduled/{id}`
+
+**Get a Scheduled Broadcast**
+
+Returns a single scheduled broadcast by its alphanumeric broadcast id.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetScheduledBroadcastAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetSourceAsync`
+
+GET `/2/sources/{id}`
+
+**Get a Stream Source**
+
+Returns one of the authenticated user's stream sources. Poll it after starting an encoder and wait for `is_stream_active` before going live. The stream key is not included; read it with GET /2/sources/:id/stream_key.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetSourceAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Source id (19 digits), from GET /2/sources.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetSourceStreamKeyAsync`
+
+GET `/2/sources/{id}/stream_key`
+
+**Get a Stream Source's Stream Key**
+
+Returns the stream key of one of the authenticated user's stream sources. The stream key is a credential: anyone with it can stream to the source, so keep it out of logs, URLs and client-side code.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetSourceStreamKeyAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Source id (19 digits), from GET /2/sources.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetUserBroadcastAsync`
+
+GET `/2/users/{id}/broadcasts/{broadcast_id}`
+
+**Get a User's Broadcast**
+
+Returns one of the authenticated user's broadcasts. `id` must be the authenticated user. Deprecated: use GET /2/broadcasts/:id.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetUserBroadcastAsync("2244994945", "1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `broadcast_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetUserSourceAsync`
+
+GET `/2/users/{id}/sources/{source_id}`
+
+**Get a User's Stream Source**
+
+Returns one of the authenticated user's stream sources. `id` must be the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GetUserSourceAsync("2244994945", "1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `source_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GoLiveScheduledBroadcastAsync`
+
+POST `/2/broadcasts/scheduled/{id}/live`
+
+**Go Live on a Scheduled Broadcast**
+
+Publishes a schedule that was created or updated with `manual_publish: true`. Without that flag the coordinator auto-publishes at start and this call is rejected.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.GoLiveScheduledBroadcastAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `ListAsync`
+
+GET `/2/broadcasts` Paginated
+
+**List Broadcasts**
+
+Returns the authenticated user's live-video broadcasts, or selected owned broadcasts when ids are provided.
+
+At most one of `ids`, `max_results` may be provided. At most one of `ids`, `pagination_token` may be provided.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Broadcasts.ListPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ Comma-separated broadcast IDs to retrieve instead of listing broadcasts.
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ A comma separated list of Broadcast fields to display.
+
+
+
+
+**Returns:** `Task` (use `ListPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `ListLiveCategoriesAsync`
+
+GET `/2/broadcasts/categories`
+
+**List Live Categories**
+
+Returns the live categories a host can pick when going live, in display order. Pass a category's `id` as `live_category_id` on POST /2/broadcasts. Ids are permanent; names can change, so store the id and show the current name. The whole list is returned in one response, without paging.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Broadcasts.ListLiveCategoriesAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `ListScheduledAsync`
+
+GET `/2/broadcasts/scheduled` Paginated
+
+**List Scheduled Broadcasts**
+
+Returns scheduled broadcasts owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Broadcasts.ListScheduledPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `oldest_start_time` (query parameter).
+
+
+
+ `newest_start_time` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+
+**Returns:** `Task` (use `ListScheduledPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `ListSourcesAsync`
+
+GET `/2/sources`
+
+**List Stream Sources**
+
+Returns the authenticated user's RTMP/RTMPS stream sources. A source's `id` is the `source_id` that POST /2/broadcasts and scheduled broadcasts take. Stream keys are not included; read one with GET /2/sources/:id/stream_key.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.ListSourcesAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `ListUserAsync`
+
+GET `/2/users/{id}/broadcasts` Paginated
+
+**List a User's Broadcasts**
+
+Returns the authenticated user's broadcasts, 100 per page. `id` must be the authenticated user. Deprecated: use GET /2/broadcasts.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Broadcasts.ListUserPages("2244994945"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `next_token.offset` from the previous page. Empty reads the first page.
+
+
+
+
+**Returns:** `Task` (use `ListUserPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `ListUserSourcesAsync`
+
+GET `/2/users/{id}/sources`
+
+**List a User's Stream Sources**
+
+Returns the authenticated user's RTMP/RTMPS stream sources (empty array if none). `id` must be the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.ListUserSourcesAsync("2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `MuteBroadcastChatUserAsync`
+
+POST `/2/broadcasts/{id}/chat/mutes`
+
+**Mute or Time Out a User in a Broadcast Chat**
+
+Prevents a user from posting further messages in a running broadcast chat. When `end_at_ms` is provided, the mute expires at that time. The authenticated user must be the broadcast host or a moderator.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.MuteBroadcastChatUserAsync(
+ "1895000000000000000",
+ new MuteBroadcastChatUserRequest { UserId = "2244994945" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `MuteChatUserAsync`
+
+POST `/2/broadcasts/chat/mutes`
+
+**Mute or Time Out a User in Chat**
+
+Prevents a user from posting messages in all of a broadcaster's chats. Without `broadcast_id`, the user is muted in the authenticated user's own chats. Moderators pass `broadcast_id` to mute the user in that broadcast host's chats. When `end_at_ms` is provided, the mute expires at that time.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.MuteChatUserAsync(new MuteChatUserRequest { UserId = "2244994945" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RemoveChatModeratorAsync`
+
+DELETE `/2/broadcasts/chat/moderators/{user_id}`
+
+**Remove a Chat Moderator**
+
+Removes a moderator from the authenticated broadcaster's persistent list and returns the updated moderator user IDs.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.RemoveChatModeratorAsync("2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ A 64-bit signed integer.
+
+
+**Returns:** `Task`
+
+---
+
+## `SendBroadcastChatAsync`
+
+POST `/2/broadcasts/{id}/chat`
+
+**Send a Chat Message to a Live Broadcast**
+
+Posts a chat message to a running broadcast, attributed to the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.SendBroadcastChatAsync(
+ "1895000000000000000",
+ new SendBroadcastChatRequest { Text = "Hello from XDK!" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UnmuteBroadcastChatUserAsync`
+
+DELETE `/2/broadcasts/{id}/chat/mutes/{user_id}`
+
+**Unmute a User in a Broadcast Chat**
+
+Allows a muted user to post messages in a running broadcast chat again. The authenticated user must be the broadcast host or a moderator.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UnmuteBroadcastChatUserAsync("1895000000000000000", "2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ A 64-bit signed integer.
+
+
+**Returns:** `Task`
+
+---
+
+## `UnmuteChatUserAsync`
+
+DELETE `/2/broadcasts/chat/mutes/{user_id}`
+
+**Unmute a User in Chat**
+
+Allows a muted user to post messages in a broadcaster's chats again. Without `broadcast_id`, the user is unmuted in the authenticated user's own chats. Moderators pass `broadcast_id` to unmute the user in that broadcast host's chats.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UnmuteChatUserAsync("2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ A 64-bit signed integer.
+
+
+
+
+
+ A broadcast whose host's chats the user is unmuted in.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateBroadcastAsync`
+
+PUT `/2/broadcasts/{id}`
+
+**Update a Broadcast**
+
+Changes the title, chat option or live category of one of the authenticated user's broadcasts and returns the broadcast. Send at least one of `title`, `chat_option` and `live_category_id`; fields left out keep their values. A broadcast can be updated before it starts, while it is live and after it has ended. A 409 `conflict` means the broadcast can't be edited, for example because it was deleted or moderated.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateBroadcastAsync(
+ "1895000000000000000",
+ new UpdateBroadcastRequest { LiveCategoryId = "1895000000000000000" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateBroadcastStateAsync`
+
+PUT `/2/broadcasts/{id}/state`
+
+**End a Broadcast**
+
+Ends one of the authenticated user's broadcasts. Only `state: END` is supported.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateBroadcastStateAsync(
+ "1895000000000000000",
+ new UpdateBroadcastStateRequest { State = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateScheduledBroadcastAsync`
+
+PUT `/2/broadcasts/scheduled/{id}`
+
+**Update a Scheduled Broadcast**
+
+Updates a scheduled broadcast. Path `:id` is the broadcast id; the body must include `scheduled_broadcast_id`. Re-send every field that should be kept. Passing a stream key as `source_id` is deprecated and stops working when the /2/users/:id/sources and /2/users/:id/broadcasts routes reach end of life on January 1, 2027; pass the source's `id` from GET /2/sources instead.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateScheduledBroadcastAsync(
+ "1895000000000000000",
+ new UpdateScheduledBroadcastRequest { ScheduledBroadcastId = "1895000000000000000", ScheduledStartMs = "example", ScheduledEndMs = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateSourceAsync`
+
+PUT `/2/sources/{id}`
+
+**Rename a Stream Source**
+
+Renames one of the authenticated user's stream sources.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateSourceAsync("1895000000000000000", new UpdateSourceRequest { Name = "My List" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Source id (19 digits), from GET /2/sources.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateUserBroadcastStateAsync`
+
+PUT `/2/users/{id}/broadcasts/{broadcast_id}/state`
+
+**Publish or End a User's Broadcast**
+
+Publishes or ends one of the authenticated user's broadcasts. `id` must be the authenticated user. `PUBLISH` takes a broadcast created with POST /2/users/:id/broadcasts live once its source is receiving video, and posts it unless `should_not_tweet` is true. `END` ends the broadcast. Deprecated: use PUT /2/broadcasts/:id/state to end a broadcast.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateUserBroadcastStateAsync(
+ "2244994945",
+ "1895000000000000000",
+ new UpdateUserBroadcastStateRequest { State = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `broadcast_id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateUserSourceAsync`
+
+PUT `/2/users/{id}/sources/{source_id}`
+
+**Rename a User's Stream Source**
+
+Renames one of the authenticated user's stream sources. `id` must be the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Broadcasts.UpdateUserSourceAsync(
+ "2244994945",
+ "1895000000000000000",
+ new UpdateUserSourceRequest { Name = "My List" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `source_id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/calls.mdx b/xdks/csharp/reference/clients/calls.mdx
new file mode 100644
index 000000000..555b00f0b
--- /dev/null
+++ b/xdks/csharp/reference/clients/calls.mdx
@@ -0,0 +1,438 @@
+---
+title: "CallsClient (C# XDK)"
+sidebarTitle: "Calls"
+description: "C# XDK CallsClient reference — 10 methods for X API v2 Calls endpoints."
+---
+
+Access **Calls** endpoints via `client.Calls` (`CallsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CancelScheduledCallAsync`](#cancelscheduledcallasync) | `DELETE /2/calls/scheduled/{id}` | Standard | Cancel a Scheduled Call |
+| [`CreateCallAsync`](#createcallasync) | `POST /2/calls` | Standard | Create a Call |
+| [`GetCallAsync`](#getcallasync) | `GET /2/calls/{id}` | Standard | Get a Call |
+| [`GetScheduledCallAsync`](#getscheduledcallasync) | `GET /2/calls/scheduled/{id}` | Standard | Get a Scheduled Call |
+| [`JoinCallAsync`](#joincallasync) | `POST /2/calls/{id}/join` | Standard | Join a Call |
+| [`LeaveCallAsync`](#leavecallasync) | `POST /2/calls/{id}/leave` | Standard | Leave a Call |
+| [`ListScheduledAsync`](#listscheduledasync) | `GET /2/calls/scheduled` | Standard | List Scheduled Calls |
+| [`RespondToScheduledCallAsync`](#respondtoscheduledcallasync) | `POST /2/calls/scheduled/{id}/rsvp` | Standard | Respond to a Scheduled Call |
+| [`ScheduleCallAsync`](#schedulecallasync) | `POST /2/calls/scheduled` | Standard | Schedule a Call |
+| [`UpdateScheduledCallAsync`](#updatescheduledcallasync) | `PUT /2/calls/scheduled/{id}` | Standard | Update a Scheduled Call |
+
+## `CancelScheduledCallAsync`
+
+DELETE `/2/calls/scheduled/{id}`
+
+**Cancel a Scheduled Call**
+
+Cancels a scheduled call the authenticated user organizes, and takes it off invitees' calendars. For a recurring call, scope and occurrence_start_time pick the occurrences: all of them (the default), one, or one and every one after it. Cancelling what is already cancelled succeeds.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.CancelScheduledCallAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ Which occurrences: all (the default without occurrence_start_time), this (the default with it), or this_and_following.
+
+
+
+ Start of the occurrence that scope this or this_and_following refers to (RFC 3339).
+
+
+
+ Whether invitees get an email about it. Defaults to true.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateCallAsync`
+
+POST `/2/calls`
+
+**Create a Call**
+
+Starts an X call hosted by the authenticated user (typically a bot). Pass an XChat conversation_id to start the call in that conversation, or omit it for a standalone call anyone can join with the returned join_url (subject to join_policy). The call starts empty: put an agent in it with POST /2/calls/:id/join. When the host joins a conversation call, the other members are rung.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.CreateCallAsync(new CreateCallRequest { ConversationId = "1500000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetCallAsync`
+
+GET `/2/calls/{id}`
+
+**Get a Call**
+
+Returns a call's title, join policy, host and participant count, and whether the authenticated user may join it without asking the host.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.GetCallAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of Call fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetScheduledCallAsync`
+
+GET `/2/calls/scheduled/{id}`
+
+**Get a Scheduled Call**
+
+Returns a scheduled call the authenticated user organizes or is invited to, at its occurrence running now or its next one within a year: its time, call, recurrence and who is invited and how they answered. Changes can take a few seconds to show here. Use scheduled_call.fields to select which fields are returned.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.GetScheduledCallAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of ScheduledCall fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Call fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `JoinCallAsync`
+
+POST `/2/calls/{id}/join`
+
+**Join a Call**
+
+Starts a media session that takes part in the call as the authenticated user. The response carries a media_url and a short-lived media_token: open a WebSocket to media_url with the token as a Bearer credential to exchange PCM16 audio and events with the call; the user enters the call when the WebSocket connects. On a closed or trusted call the session asks the host first (admission: requires_approval).
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.JoinCallAsync("1895000000000000000", new JoinCallRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `LeaveCallAsync`
+
+POST `/2/calls/{id}/leave`
+
+**Leave a Call**
+
+Ends the authenticated user's media session in the call (its WebSocket receives session.ended with reason left) and removes the user from the call.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.LeaveCallAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `ListScheduledAsync`
+
+GET `/2/calls/scheduled`
+
+**List Scheduled Calls**
+
+Returns the X calls on the authenticated user's calendar, earliest first: events on their X Calls calendar, and events on the Microsoft Outlook calendars they linked to X whose conference is an X call. Calls still running at start_time are included. The window defaults to the next 24 hours and may span at most 7 days. Use scheduled_call.fields to select which fields are returned.
+
+When both are provided, `start_time` must be earlier than `end_time`.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.ListScheduledAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ Calls still running at this time or starting after it (RFC 3339). Defaults to now.
+
+
+
+ Calls starting before this time (RFC 3339). Defaults to 24 hours after start_time.
+
+
+
+ The most calls to return. Defaults to 20.
+
+
+
+ A comma separated list of ScheduledCall fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Call fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `RespondToScheduledCallAsync`
+
+POST `/2/calls/scheduled/{id}/rsvp`
+
+**Respond to a Scheduled Call**
+
+Accepts, declines or tentatively accepts an invitation to a scheduled call for the authenticated user. For a recurring call, scope and occurrence_start_time pick the occurrences the answer is for: all of them (the default), one, or one and every one after it.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.RespondToScheduledCallAsync(
+ "1895000000000000000",
+ new RespondToScheduledCallRequest { Response = "accepted" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `ScheduleCallAsync`
+
+POST `/2/calls/scheduled`
+
+**Schedule a Call**
+
+Puts an X call on the authenticated user's X Calls calendar, with them as its organizer, and invites people to it. The call exists right away: share its join_url, or put an agent in it at start time with POST /2/calls/:id/join. A recurrence (an RFC 5545 RRULE) repeats it. Invitees get an email unless notify_invitees is false.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.ScheduleCallAsync(new ScheduleCallRequest { StartTime = "2026-01-01T00:00:00Z" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateScheduledCallAsync`
+
+PUT `/2/calls/scheduled/{id}`
+
+**Update a Scheduled Call**
+
+Moves, renames or re-invites a scheduled call the authenticated user organizes. Only the fields sent change. For a recurring call, scope and occurrence_start_time pick the occurrences: all of them (the default), one, or one and every one after it.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Calls.UpdateScheduledCallAsync(
+ "1895000000000000000",
+ new UpdateScheduledCallRequest { OccurrenceStartTime = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ At least one of `start_time`, `duration_minutes`, `title`, `description`, `invitee_ids`, `recurrence`, `time_zone` is required.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/chat.mdx b/xdks/csharp/reference/clients/chat.mdx
new file mode 100644
index 000000000..7dd7bcf5b
--- /dev/null
+++ b/xdks/csharp/reference/clients/chat.mdx
@@ -0,0 +1,1844 @@
+---
+title: "ChatClient (C# XDK)"
+sidebarTitle: "Chat"
+description: "C# XDK ChatClient reference — 45 methods for X API v2 Chat endpoints."
+---
+
+Access **Chat** endpoints via `client.Chat` (`ChatClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`AcceptMessageRequestAsync`](#acceptmessagerequestasync) | `POST /2/chat/message_requests/{id}/accept` | Standard | Accept a Chat Message Request |
+| [`AddConversationKeysAsync`](#addconversationkeysasync) | `POST /2/chat/conversations/{id}/keys` | Standard | Add Conversation Keys |
+| [`AddGroupAdminsAsync`](#addgroupadminsasync) | `POST /2/chat/conversations/{id}/admins` | Standard | Add Admins to a Chat Group Conversation |
+| [`AddGroupMembersAsync`](#addgroupmembersasync) | `POST /2/chat/conversations/{id}/members` | Standard | Add Members to a Chat Group Conversation |
+| [`AddUserPublicKeyAsync`](#adduserpublickeyasync) | `POST /2/users/{id}/public_keys` | Standard | Add Public Key |
+| [`ApproveGroupAdminRequestAsync`](#approvegroupadminrequestasync) | `POST /2/chat/conversations/{id}/admin_requests/{user_id}/approve` | Standard | Approve an Admin Request in a Chat Group Conversation |
+| [`ArchiveConversationAsync`](#archiveconversationasync) | `POST /2/chat/conversations/{id}/archive` | Standard | Archive a Chat Conversation |
+| [`CreateConversationAsync`](#createconversationasync) | `POST /2/chat/conversations/group` | Standard | Create Chat Group Conversation |
+| [`CreateGroupAdminRequestAsync`](#creategroupadminrequestasync) | `POST /2/chat/conversations/{id}/admin_requests` | Standard | Request Admin Permissions in a Chat Group Conversation |
+| [`CreateGroupJoinRequestAsync`](#creategroupjoinrequestasync) | `POST /2/chat/conversations/{id}/join_requests` | Standard | Request to Join a Chat Group |
+| [`DeleteConversationAsync`](#deleteconversationasync) | `DELETE /2/chat/conversations/{id}` | Standard | Delete a Chat Conversation |
+| [`DeleteConversationMessageTtlAsync`](#deleteconversationmessagettlasync) | `DELETE /2/chat/conversations/{id}/message_ttl` | Standard | Turn Off Disappearing Messages in a Chat Conversation |
+| [`DeleteMessagesAsync`](#deletemessagesasync) | `POST /2/chat/conversations/{id}/messages/delete` | Standard | Delete Chat Messages |
+| [`DisableGroupInviteAsync`](#disablegroupinviteasync) | `DELETE /2/chat/conversations/{id}/invite` | Standard | Disable a Chat Group Invite Link |
+| [`EnableGroupInviteAsync`](#enablegroupinviteasync) | `POST /2/chat/conversations/{id}/invite` | Standard | Enable a Chat Group Invite Link |
+| [`GetConversationAsync`](#getconversationasync) | `GET /2/chat/conversations/{id}` | Standard | Get Chat Conversation |
+| [`GetConversationEventsAsync`](#getconversationeventsasync) | `GET /2/chat/conversations/{id}/events` | Paginated | Get Chat Conversation Events |
+| [`GetConversationPinnedMessagesAsync`](#getconversationpinnedmessagesasync) | `GET /2/chat/conversations/{id}/pinned_messages` | Paginated | Get Chat Conversation Pinned Messages |
+| [`GetConversationsAsync`](#getconversationsasync) | `GET /2/chat/conversations` | Paginated | Get Chat Conversations |
+| [`GetGroupAdminRequestsAsync`](#getgroupadminrequestsasync) | `GET /2/chat/conversations/{id}/admin_requests` | Paginated | Get Pending Admin Requests for a Chat Group Conversation |
+| [`GetGroupInviteAsync`](#getgroupinviteasync) | `GET /2/chat/conversations/{id}/invites/{token}` | Standard | Get a Chat Group Invite Link |
+| [`GetMessageRequestAsync`](#getmessagerequestasync) | `GET /2/chat/message_requests/{id}` | Standard | Get Chat Message Request |
+| [`GetMessageRequestsAsync`](#getmessagerequestsasync) | `GET /2/chat/message_requests` | Paginated | Get Chat Message Requests |
+| [`GetSettingsAsync`](#getsettingsasync) | `GET /2/chat/settings` | Standard | Get Chat Settings |
+| [`InitializeGroupAsync`](#initializegroupasync) | `POST /2/chat/conversations/group/initialize` | Standard | Initialize Chat Group |
+| [`MarkConversationReadAsync`](#markconversationreadasync) | `POST /2/chat/conversations/{id}/read` | Standard | Mark Conversation as Read |
+| [`MarkConversationUnreadAsync`](#markconversationunreadasync) | `POST /2/chat/conversations/{id}/unread` | Standard | Mark Conversation as Unread |
+| [`MediaDownloadAsync`](#mediadownloadasync) | `GET /2/chat/media/{id}/{media_hash_key}` | Standard | Download Chat Media |
+| [`MediaUploadAppendAsync`](#mediauploadappendasync) | `POST /2/chat/media/upload/{id}/append` | Standard | Append Chat Media Upload |
+| [`MediaUploadFinalizeAsync`](#mediauploadfinalizeasync) | `POST /2/chat/media/upload/{id}/finalize` | Standard | Finalize Chat Media Upload |
+| [`MediaUploadInitializeAsync`](#mediauploadinitializeasync) | `POST /2/chat/media/upload/initialize` | Standard | Initialize Chat Media Upload |
+| [`MuteConversationAsync`](#muteconversationasync) | `POST /2/chat/conversations/{id}/mute` | Standard | Mute a Chat Conversation |
+| [`RejectGroupAdminRequestAsync`](#rejectgroupadminrequestasync) | `POST /2/chat/conversations/{id}/admin_requests/{user_id}/reject` | Standard | Reject an Admin Request in a Chat Group Conversation |
+| [`RejectGroupJoinRequestsAsync`](#rejectgroupjoinrequestsasync) | `POST /2/chat/conversations/{id}/join_requests/reject` | Standard | Reject Join Requests for a Chat Group Conversation |
+| [`RemoveGroupAdminsAsync`](#removegroupadminsasync) | `POST /2/chat/conversations/{id}/admins/remove` | Standard | Remove Admins from a Chat Group Conversation |
+| [`RemoveGroupMembersAsync`](#removegroupmembersasync) | `POST /2/chat/conversations/{id}/members/remove` | Standard | Remove Members from a Chat Group Conversation |
+| [`SendMessageAsync`](#sendmessageasync) | `POST /2/chat/conversations/{id}/messages` | Standard | Send Chat Message |
+| [`SendTypingIndicatorAsync`](#sendtypingindicatorasync) | `POST /2/chat/conversations/{id}/typing` | Standard | Send Typing Indicator |
+| [`UnarchiveConversationAsync`](#unarchiveconversationasync) | `DELETE /2/chat/conversations/{id}/archive` | Standard | Unarchive a Chat Conversation |
+| [`UnmuteConversationAsync`](#unmuteconversationasync) | `DELETE /2/chat/conversations/{id}/mute` | Standard | Unmute a Chat Conversation |
+| [`UpdateConversationMessageTtlAsync`](#updateconversationmessagettlasync) | `PUT /2/chat/conversations/{id}/message_ttl` | Standard | Turn On Disappearing Messages in a Chat Conversation |
+| [`UpdateConversationScreenCaptureAsync`](#updateconversationscreencaptureasync) | `PUT /2/chat/conversations/{id}/screen_capture` | Standard | Update Screen Capture Settings for a Chat Conversation |
+| [`UpdateGroupAsync`](#updategroupasync) | `PUT /2/chat/conversations/{id}` | Standard | Update a Chat Group Conversation |
+| [`UpdateGroupAdminSettingsAsync`](#updategroupadminsettingsasync) | `PUT /2/chat/conversations/{id}/admin_settings` | Standard | Update the Admin-Only Settings of a Chat Group Conversation |
+| [`UpdateSettingsAsync`](#updatesettingsasync) | `PUT /2/chat/settings` | Standard | Update Chat Settings |
+
+## `AcceptMessageRequestAsync`
+
+POST `/2/chat/message_requests/{id}/accept`
+
+**Accept a Chat Message Request**
+
+Accepts the other user's pending message request in a 1:1 Chat conversation, which moves to the authenticated user's inbox. Without a pending request, including after a successful accept, the response is 404. Replying to a request does not accept it.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.AcceptMessageRequestAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The other user's ID, or both user IDs joined by a hyphen.
+
+
+**Returns:** `Task`
+
+---
+
+## `AddConversationKeysAsync`
+
+POST `/2/chat/conversations/{id}/keys`
+
+**Add Conversation Keys**
+
+Adds (initializes or rotates) the encryption keys for a Chat conversation. Call this before sending messages in a new 1:1 conversation, and again with a newer key version to rotate the conversation key. For 1:1 conversations, provide the recipient's user ID as the conversation id; the server constructs the canonical conversation ID from the authenticated user and recipient. The request body must contain the conversation key version and participant keys (the conversation key encrypted for each participant using their public key).
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.AddConversationKeysAsync(
+ "1895000000000000000",
+ new AddConversationKeysRequest { ConversationKeyVersion = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `AddGroupAdminsAsync`
+
+POST `/2/chat/conversations/{id}/admins`
+
+**Add Admins to a Chat Group Conversation**
+
+Grants admin rights to one or more members of an existing encrypted Chat group conversation.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.AddGroupAdminsAsync(
+ "1895000000000000000",
+ new AddChatGroupAdminsRequest { UserIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `AddGroupMembersAsync`
+
+POST `/2/chat/conversations/{id}/members`
+
+**Add Members to a Chat Group Conversation**
+
+Adds one or more members to an existing encrypted Chat group conversation, rotating the conversation key. Adding a user who has a pending join request approves that request; approval needs the same key-rotation body as adding any member.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.AddGroupMembersAsync(
+ "1895000000000000000",
+ new AddChatGroupMembersRequest { UserIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `AddUserPublicKeyAsync`
+
+POST `/2/users/{id}/public_keys`
+
+**Add Public Key**
+
+Registers a user's public key for X Chat encryption.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.AddUserPublicKeyAsync("2244994945", new AddUserPublicKeyRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `ApproveGroupAdminRequestAsync`
+
+POST `/2/chat/conversations/{id}/admin_requests/{user_id}/approve`
+
+**Approve an Admin Request in a Chat Group Conversation**
+
+Makes the user who requested admin permissions an admin of an encrypted Chat group conversation. Only a group admin can approve.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.ApproveGroupAdminRequestAsync(
+ "1895000000000000000",
+ "2244994945",
+ new ApproveChatGroupAdminRequestRequest()
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ The ID of the user who requested admin permissions.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `ArchiveConversationAsync`
+
+POST `/2/chat/conversations/{id}/archive`
+
+**Archive a Chat Conversation**
+
+Archives a Chat conversation for the authenticated user only. Archiving an archived conversation changes nothing. Works for group and 1:1 conversations. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.ArchiveConversationAsync("1895000000000000000", new ArchiveChatConversationRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateConversationAsync`
+
+POST `/2/chat/conversations/group`
+
+**Create Chat Group Conversation**
+
+Creates a new encrypted Chat group conversation on behalf of the authenticated user.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.CreateConversationAsync(
+ new CreateChatConversationRequest { ConversationId = "1500000000000000000", ConversationKeyVersion = "example", GroupMembers = new List { "example" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateGroupAdminRequestAsync`
+
+POST `/2/chat/conversations/{id}/admin_requests`
+
+**Request Admin Permissions in a Chat Group Conversation**
+
+Asks the admins of an encrypted Chat group conversation to make the authenticated user an admin. An admin approves or rejects the request.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.CreateGroupAdminRequestAsync("1895000000000000000", new CreateChatGroupAdminRequestRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateGroupJoinRequestAsync`
+
+POST `/2/chat/conversations/{id}/join_requests`
+
+**Request to Join a Chat Group**
+
+Asks to join an encrypted Chat group conversation through its invite link. The request stays pending until a group admin adds the user to the group.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.CreateGroupJoinRequestAsync(
+ "1895000000000000000",
+ new CreateChatGroupJoinRequestRequest { Token = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteConversationAsync`
+
+DELETE `/2/chat/conversations/{id}`
+
+**Delete a Chat Conversation**
+
+Deletes a Chat conversation for the authenticated user only; other participants keep it. Works for group and 1:1 conversations. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient. Deleting a pending message request's conversation deletes the request, like Delete in the X app.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.DeleteConversationAsync("1895000000000000000", new DeleteChatConversationRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteConversationMessageTtlAsync`
+
+DELETE `/2/chat/conversations/{id}/message_ttl`
+
+**Turn Off Disappearing Messages in a Chat Conversation**
+
+Stops new messages in a 1:1 or group Chat conversation from disappearing, for every participant. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.DeleteConversationMessageTtlAsync("1895000000000000000", new DeleteChatConversationMessageTtlRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteMessagesAsync`
+
+POST `/2/chat/conversations/{id}/messages/delete`
+
+**Delete Chat Messages**
+
+Deletes one or more messages from a Chat conversation. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient. Delete for all removes a message you sent (or, in groups you administer, any message) for every participant; delete for self removes any message only from your own view.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.DeleteMessagesAsync(
+ "1895000000000000000",
+ new DeleteChatMessagesRequest { SequenceIds = new List { "1895000000000000000" }, DeleteMessageAction = "delete_for_all" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DisableGroupInviteAsync`
+
+DELETE `/2/chat/conversations/{id}/invite`
+
+**Disable a Chat Group Invite Link**
+
+Turns off the invite link for an encrypted Chat group conversation. The existing link stops working.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.DisableGroupInviteAsync("1895000000000000000", new DisableChatGroupInviteRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `EnableGroupInviteAsync`
+
+POST `/2/chat/conversations/{id}/invite`
+
+**Enable a Chat Group Invite Link**
+
+Turns on the invite link for an encrypted Chat group conversation and returns the link details. The client builds the link and sends it as invite_url, in the form https://x.com/i/chat/group_join/<conversation_id>/<token>, where the token is exactly 10 letters, digits, '-' or '_'. invite_url is required when action_signatures is sent. To make the link expire, send validity_duration_msec or validity_expiry_timestamp_msec. With action_signatures, send validity_expiry_timestamp_msec, because the signed payload carries the expiry. The group name and avatar sent here are stored unencrypted and shown to anyone who opens the link.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.EnableGroupInviteAsync(
+ "1895000000000000000",
+ new EnableChatGroupInviteRequest { AffiliateUserId = "1895000000000000000" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetConversationAsync`
+
+GET `/2/chat/conversations/{id}`
+
+**Get Chat Conversation**
+
+Returns metadata for a Chat conversation including type, muted status, group details, and your unread state. For the unread state, request chat_conversation.fields=unread,last_read_event_id,newest_event_id: those fields give your read state, computed from your latest read receipt and the conversation's latest notifying message. Use chat_conversation.fields to select which fields are returned. Use expansions to hydrate member, admin, or participant user objects. Use user.fields to control which profile fields are returned for expanded users; in a 1:1 chat, user.fields=receives_your_chat on the participant says how you can message them: encrypted, unencrypted, or none.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.GetConversationAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of ChatConversation fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetConversationEventsAsync`
+
+GET `/2/chat/conversations/{id}/events` Paginated
+
+**Get Chat Conversation Events**
+
+Retrieves the events of a specific Chat conversation, newest first, with pagination support: messages, key changes, group changes, and read receipts. Events with an id above the conversation's last_read_event_id are unread: they come after the point you read up to. To collect them, page until an event's id is at or below it. Only `id` and `encoded_event` are always present. Events are either end-to-end encrypted or unencrypted, such as messages sent before the conversation was encrypted. Encrypted events carry `conversation_key_version`, and usually `conversation_token` and `message_event_signature`; treat an encrypted event without `message_event_signature` as unverified. An event without `conversation_key_version` is unencrypted. Decode each `encoded_event` client-side, and decrypt it with the conversation key named by `conversation_key_version` when that is present. A page holds up to `max_results` events and can hold fewer while `has_more` is true. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Chat.GetConversationEventsPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ The maximum number of events to return.
+
+
+
+ The next_token from a previous response, to fetch the next page.
+
+
+
+ A comma separated list of ChatMessageEvent fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetConversationEventsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetConversationPinnedMessagesAsync`
+
+GET `/2/chat/conversations/{id}/pinned_messages` Paginated
+
+**Get Chat Conversation Pinned Messages**
+
+Retrieves the pinned message events of a Chat conversation with pagination support. Each event is a Base64-encoded Thrift pin event whose contents are end-to-end encrypted; decode and decrypt it client-side. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Chat.GetConversationPinnedMessagesPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+
+
+ The next_token from a previous response, to fetch the next page.
+
+
+
+ A comma separated list of ChatPinnedMessage fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetConversationPinnedMessagesPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetConversationsAsync`
+
+GET `/2/chat/conversations` Paginated
+
+**Get Chat Conversations**
+
+Retrieves a list of Chat conversations for the authenticated user's inbox, newest first: the most recently active conversation comes first. To find the chat with a particular person, start with participant_query set to their @username or name; with expansions=participant_ids, user.fields=receives_your_chat says how you can message each match. The unread, last_read_event_id and newest_event_id fields give your read state, computed from your latest read receipt and each conversation's latest notifying message. Request them with chat_conversation.fields=unread,last_read_event_id,newest_event_id.
+
+The filters unread_only, type, is_archived, is_muted, participant_ids, participant_query, start_time and end_time are optional, and all filters must match (AND). participant_query keeps conversations where another participant's username, or a word of their display name, starts with the query, ignoring case and accents; with a leading @ it matches usernames only. It considers the 100 people who best match the query, uses only public profile information, and never matches group names, nicknames or messages. start_time and end_time apply to the time of each conversation's latest message.
+
+Each page covers max_results conversations and returns those that match, so a page can hold fewer than max_results, or none, while meta.next_token is set and has_more is true: keep paging, passing meta.next_token as pagination_token. Once a page reaches a conversation whose latest message is older than start_time, has_more is false. A pagination_token only works with the same filters as the request that returned it; with other filters, the request fails with a 400.
+
+When both are provided, `start_time` must be earlier than `end_time`.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Chat.GetConversationsPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ Conversations covered per page (1-1000, default 200). Filtered pages can return fewer.
+
+
+
+ meta.next_token from the previous page. Send the same filters with it, or the request fails.
+
+
+
+ Return only unread conversations. A page can be short; keep paging while has_more.
+
+
+
+ Only direct (1:1) or only group conversations. Omit for both.
+
+
+
+ true: only archived; false: only not archived. Omit for both.
+
+
+
+ true: only muted; false: only not muted. Omit for both.
+
+
+
+ Comma-separated numeric user IDs (1-10), all in the chat. Names or @handles: use participant_query.
+
+
+
+ Start here to find someone's chat: their @username or a word of their name (1-50 chars).
+
+
+
+ ISO 8601, e.g. 2026-10-16T00:00:00Z. Chats whose latest message is at or after this time.
+
+
+
+ ISO 8601, e.g. 2026-10-17T00:00:00Z. Chats whose latest message is before this time.
+
+
+
+ A comma separated list of ChatConversation fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetConversationsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetGroupAdminRequestsAsync`
+
+GET `/2/chat/conversations/{id}/admin_requests` Paginated
+
+**Get Pending Admin Requests for a Chat Group Conversation**
+
+Returns the users who have asked to become admins of an encrypted Chat group conversation. Only a group admin can list admin requests. Use user.fields to select which profile fields are returned.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Chat.GetGroupAdminRequestsPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+
+
+ The next_token from a previous response, to fetch the next page.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetGroupAdminRequestsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetGroupInviteAsync`
+
+GET `/2/chat/conversations/{id}/invites/{token}`
+
+**Get a Chat Group Invite Link**
+
+Returns the preview of an encrypted Chat group conversation from its invite link: group name, avatar, member count, and the authenticated user's join state. The conversation ID and the token both come from the invite link.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.GetGroupInviteAsync("1895000000000000000", "example");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ The 10-character invite token from the group's invite link.
+
+
+
+
+
+ A comma separated list of ChatGroupInvite fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetMessageRequestAsync`
+
+GET `/2/chat/message_requests/{id}`
+
+**Get Chat Message Request**
+
+Retrieves the message request state of a 1:1 Chat conversation and its newest message events. Like opening the request in an X app, reading it marks the returned messages as delivered and updates the unread badge.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.GetMessageRequestAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The other user's ID, or both user IDs joined by a hyphen.
+
+
+
+
+
+ A comma separated list of ChatMessageRequestDetail fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetMessageRequestsAsync`
+
+GET `/2/chat/message_requests` Paginated
+
+**Get Chat Message Requests**
+
+Retrieves the authenticated user's pending Chat message requests from one inbox. Message contents are end-to-end encrypted unless the conversation is unencrypted. Accepting or deleting requests between pages can skip or repeat requests, and a page can be empty while `next_token` is set.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Chat.GetMessageRequestsPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ Which message request inbox to list: `you_may_know` (the apps' Priority tab) or `low_quality` (the apps' Hidden tab).
+
+
+
+ The maximum number of message requests to return.
+
+
+
+ The next_token from a previous response, to fetch the next page.
+
+
+
+ A comma separated list of ChatMessageRequest fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetMessageRequestsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetSettingsAsync`
+
+GET `/2/chat/settings`
+
+**Get Chat Settings**
+
+Returns the authenticated user's Chat privacy settings: who can message them, read receipts, the message quality filter, and audio/video call permissions.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.GetSettingsAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ A comma separated list of ChatSettings fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `InitializeGroupAsync`
+
+POST `/2/chat/conversations/group/initialize`
+
+**Initialize Chat Group**
+
+Initializes a new Chat group conversation and returns a unique conversation ID. Use the returned conversation_id in a subsequent POST /chat/conversations/group call to fully create and configure the group.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.InitializeGroupAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `MarkConversationReadAsync`
+
+POST `/2/chat/conversations/{id}/read`
+
+**Mark Conversation as Read**
+
+Marks a specific Chat conversation as read on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient. Without action_signatures the conversation is marked read up to its newest event and the read receipt is unsigned. With one action signature over a MarkConversationReadEvent, the server sends that signed read receipt, marking the conversation read up to the event it names.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MarkConversationReadAsync("1895000000000000000", new MarkChatConversationReadRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `MarkConversationUnreadAsync`
+
+POST `/2/chat/conversations/{id}/unread`
+
+**Mark Conversation as Unread**
+
+Marks a specific Chat conversation as unread on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MarkConversationUnreadAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `MediaDownloadAsync`
+
+GET `/2/chat/media/{id}/{media_hash_key}`
+
+**Download Chat Media**
+
+Downloads encrypted media bytes from an XChat conversation. The response body contains raw binary bytes. A media item too large to return in one response fails with a 413 problem of type `https://api.x.com/2/problems/response-too-large`, and a retry fails the same way.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MediaDownloadAsync("1895000000000000000", "example");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `media_hash_key` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `MediaUploadAppendAsync`
+
+POST `/2/chat/media/upload/{id}/append`
+
+**Append Chat Media Upload**
+
+Appends media data to an XChat upload session.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MediaUploadAppendAsync(
+ "1895000000000000000",
+ new ChatMediaUploadAppendRequest { Media = "example", SegmentIndex = 1, ConversationId = "1500000000000000000", MediaHashKey = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `MediaUploadFinalizeAsync`
+
+POST `/2/chat/media/upload/{id}/finalize`
+
+**Finalize Chat Media Upload**
+
+Finalizes an XChat media upload session.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MediaUploadFinalizeAsync(
+ "1895000000000000000",
+ new ChatMediaUploadFinalizeRequest { ConversationId = "1500000000000000000", MediaHashKey = "example", NumParts = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `MediaUploadInitializeAsync`
+
+POST `/2/chat/media/upload/initialize`
+
+**Initialize Chat Media Upload**
+
+Initializes an XChat media upload session.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MediaUploadInitializeAsync(
+ new ChatMediaUploadInitializeRequest { ConversationId = "1500000000000000000", TotalBytes = 1 }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `MuteConversationAsync`
+
+POST `/2/chat/conversations/{id}/mute`
+
+**Mute a Chat Conversation**
+
+Mutes notifications for a Chat conversation for the authenticated user only. Works for group and 1:1 conversations. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.MuteConversationAsync("1895000000000000000", new MuteChatConversationRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RejectGroupAdminRequestAsync`
+
+POST `/2/chat/conversations/{id}/admin_requests/{user_id}/reject`
+
+**Reject an Admin Request in a Chat Group Conversation**
+
+Declines a user's pending request for admin permissions in an encrypted Chat group conversation. Only a group admin can reject.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.RejectGroupAdminRequestAsync(
+ "1895000000000000000",
+ "2244994945",
+ new RejectChatGroupAdminRequestRequest()
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ The ID of the user who requested admin permissions.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RejectGroupJoinRequestsAsync`
+
+POST `/2/chat/conversations/{id}/join_requests/reject`
+
+**Reject Join Requests for a Chat Group Conversation**
+
+Rejects pending requests to join an encrypted Chat group conversation. Only group admins can reject requests. To approve a request instead, add the requesting users with addChatGroupMembers; adding a user clears their pending request.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.RejectGroupJoinRequestsAsync(
+ "1895000000000000000",
+ new RejectChatGroupJoinRequestsRequest { UserIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RemoveGroupAdminsAsync`
+
+POST `/2/chat/conversations/{id}/admins/remove`
+
+**Remove Admins from a Chat Group Conversation**
+
+Revokes admin rights from one or more admins of an existing encrypted Chat group conversation. They stay members of the group.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.RemoveGroupAdminsAsync(
+ "1895000000000000000",
+ new RemoveChatGroupAdminsRequest { UserIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RemoveGroupMembersAsync`
+
+POST `/2/chat/conversations/{id}/members/remove`
+
+**Remove Members from a Chat Group Conversation**
+
+Removes one or more members from an existing encrypted Chat group conversation. To leave a group, pass your own user ID. Leaving does not delete the conversation for the caller. When the removal rotates the conversation key, send group_key_rotation_data and the action signatures for the removal and the key change, in that order.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.RemoveGroupMembersAsync(
+ "1895000000000000000",
+ new RemoveChatGroupMembersRequest { UserIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `SendMessageAsync`
+
+POST `/2/chat/conversations/{id}/messages`
+
+**Send Chat Message**
+
+Sends a message or reaction to a Chat conversation, which you can find with `participant_query` on Get Chat Conversations. Send it end-to-end encrypted by default: `encoded_message_create_event`, built with the Chat XDK. Plaintext `content` is only a fallback for a 1:1 chat that X Chat can't encrypt: use it only when the recipient's `receives_your_chat` user field (`user.fields=receives_your_chat`) is `unencrypted`. When `content` is refused, nothing is sent and the problem's `detail` says why; HTTP 400 https://api.x.com/2/problems/encryption-required means the chat can be encrypted or is a group, so send it encrypted instead. A recipient you can't message (closed inbox, system account, or a block) returns HTTP 403 https://api.x.com/2/problems/recipient-not-messageable.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.SendMessageAsync(
+ "1895000000000000000",
+ new SendChatMessageRequest { MessageId = "1895000000000000000" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ A conversation's id from Get Chat Conversations, or the recipient's user ID for a 1:1 chat.
+
+
+
+ At least one of `encoded_message_create_event`, `content` is required.
+
+
+**Returns:** `Task`
+
+---
+
+## `SendTypingIndicatorAsync`
+
+POST `/2/chat/conversations/{id}/typing`
+
+**Send Typing Indicator**
+
+Sends a typing indicator to a specific Chat conversation on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.SendTypingIndicatorAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `UnarchiveConversationAsync`
+
+DELETE `/2/chat/conversations/{id}/archive`
+
+**Unarchive a Chat Conversation**
+
+Unarchives a Chat conversation for the authenticated user only. Unarchiving a conversation that is not archived changes nothing. Works for group and 1:1 conversations. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UnarchiveConversationAsync("1895000000000000000", new UnarchiveChatConversationRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UnmuteConversationAsync`
+
+DELETE `/2/chat/conversations/{id}/mute`
+
+**Unmute a Chat Conversation**
+
+Unmutes notifications for a Chat conversation for the authenticated user only. Works for group and 1:1 conversations. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UnmuteConversationAsync("1895000000000000000", new UnmuteChatConversationRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateConversationMessageTtlAsync`
+
+PUT `/2/chat/conversations/{id}/message_ttl`
+
+**Turn On Disappearing Messages in a Chat Conversation**
+
+Sets how long new messages in a 1:1 or group Chat conversation last before they disappear, for every participant. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UpdateConversationMessageTtlAsync(
+ "1895000000000000000",
+ new UpdateChatConversationMessageTtlRequest { MessageTtlMs = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateConversationScreenCaptureAsync`
+
+PUT `/2/chat/conversations/{id}/screen_capture`
+
+**Update Screen Capture Settings for a Chat Conversation**
+
+Turns screenshot blocking or screenshot detection on or off in a Chat conversation, for every participant. In a group conversation, only admins can change these settings. Each request changes one setting: send either blocking or detection. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UpdateConversationScreenCaptureAsync(
+ "1895000000000000000",
+ new UpdateChatConversationScreenCaptureRequest()
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the conversation: a group ID starting with `g`, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.
+
+
+
+ At least one of `blocking`, `detection` is required.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateGroupAsync`
+
+PUT `/2/chat/conversations/{id}`
+
+**Update a Chat Group Conversation**
+
+Renames an encrypted Chat group conversation, changes its avatar, or sets its description. The client encrypts each value with the conversation key and lists the values it changed in modified_fields.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UpdateGroupAsync(
+ "1895000000000000000",
+ new UpdateChatGroupRequest { ModifiedFields = new List { "group_name" }, ConversationKeyVersion = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateGroupAdminSettingsAsync`
+
+PUT `/2/chat/conversations/{id}/admin_settings`
+
+**Update the Admin-Only Settings of a Chat Group Conversation**
+
+Sets which actions only admins can perform in an existing encrypted Chat group conversation. A setting set to true restricts that action to admins, and false opens it to all members. Setting `send_message` to true makes the group announcement-only. Omitted settings keep their stored value. When sending `action_signatures`, sign over the full merged settings: the stored values with this request's changes applied, not only the settings in the request.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UpdateGroupAdminSettingsAsync(
+ "1895000000000000000",
+ new UpdateChatGroupAdminSettingsRequest { BlockScreenCapture = true }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the group conversation, starting with `g`.
+
+
+
+ At least one of `add_member`, `edit_group_info`, `send_message`, `start_call`, `edit_message_ttl`, `block_screen_capture` is required.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateSettingsAsync`
+
+PUT `/2/chat/settings`
+
+**Update Chat Settings**
+
+Updates the authenticated user's Chat privacy settings: who can message them, read receipts, the message quality filter, and audio/video call permissions. allow_dms_from, dm_receipt_settings, and dm_quality_filter accept only their listed values, matched exactly and case-sensitively; anything else is a 400. av_settings must set at least one of its settings. Whether settings omitted from a partial av_settings keep their values or are reset is not yet confirmed; send every av_settings field you want to keep.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Chat.UpdateSettingsAsync(
+ new UpdateChatSettingsRequest { AlwaysAllowDmsFromSubscribers = true }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ At least one of `allow_dms_from`, `always_allow_dms_from_subscribers`, `dm_quality_filter`, `dm_receipt_settings`, `av_settings` is required.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/communities.mdx b/xdks/csharp/reference/clients/communities.mdx
new file mode 100644
index 000000000..58e8f8415
--- /dev/null
+++ b/xdks/csharp/reference/clients/communities.mdx
@@ -0,0 +1,107 @@
+---
+title: "CommunitiesClient (C# XDK)"
+sidebarTitle: "Communities"
+description: "C# XDK CommunitiesClient reference — 2 methods for X API v2 Communities endpoints."
+---
+
+Access **Communities** endpoints via `client.Communities` (`CommunitiesClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`GetByIdAsync`](#getbyidasync) | `GET /2/communities/{id}` | Standard | Get Community by ID |
+| [`SearchAsync`](#searchasync) | `GET /2/communities/search` | Paginated | Search Communities |
+
+## `GetByIdAsync`
+
+GET `/2/communities/{id}`
+
+**Get Community by ID**
+
+Retrieves details of a specific Community by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Communities.GetByIdAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of Community fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `SearchAsync`
+
+GET `/2/communities/search` Paginated
+
+**Search Communities**
+
+Retrieves a list of Communities matching the specified search query.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Communities.SearchPages("from:XDevelopers"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `next_token` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ A comma separated list of Community fields to display.
+
+
+
+
+**Returns:** `Task` (use `SearchPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
diff --git a/xdks/csharp/reference/clients/community-notes.mdx b/xdks/csharp/reference/clients/community-notes.mdx
new file mode 100644
index 000000000..fdbded4a8
--- /dev/null
+++ b/xdks/csharp/reference/clients/community-notes.mdx
@@ -0,0 +1,239 @@
+---
+title: "CommunityNotesClient (C# XDK)"
+sidebarTitle: "Community Notes"
+description: "C# XDK CommunityNotesClient reference — 5 methods for X API v2 Community Notes endpoints."
+---
+
+Access **Community Notes** endpoints via `client.CommunityNotes` (`CommunityNotesClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateAsync`](#createasync) | `POST /2/notes` | Standard | Create a Community Note |
+| [`DeleteAsync`](#deleteasync) | `DELETE /2/notes/{id}` | Standard | Delete a Community Note |
+| [`EvaluateAsync`](#evaluateasync) | `POST /2/notes/evaluate` | Standard | Evaluate a Community Note |
+| [`SearchEligiblePostsAsync`](#searcheligiblepostsasync) | `GET /2/notes/search/posts_eligible_for_notes` | Paginated | Search for Posts Eligible for Community Notes |
+| [`SearchWrittenAsync`](#searchwrittenasync) | `GET /2/notes/search/notes_written` | Paginated | Search for Community Notes Written |
+
+## `CreateAsync`
+
+POST `/2/notes`
+
+**Create a Community Note**
+
+Creates a Community Note on a Post. With test_mode set to true, the note is only for testing and is not publicly visible.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.CommunityNotes.CreateAsync(
+ new CreateCommunityNotesRequest { TestMode = true, PostId = "1895000000000000000" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteAsync`
+
+DELETE `/2/notes/{id}`
+
+**Delete a Community Note**
+
+Deletes a community note.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.CommunityNotes.DeleteAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `EvaluateAsync`
+
+POST `/2/notes/evaluate`
+
+**Evaluate a Community Note**
+
+Evaluates the text of a proposed Community Note on a Post and returns its claim-opinion score.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.CommunityNotes.EvaluateAsync(
+ new EvaluateCommunityNotesRequest { PostId = "1895000000000000000", NoteText = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `SearchEligiblePostsAsync`
+
+GET `/2/notes/search/posts_eligible_for_notes` Paginated
+
+**Search for Posts Eligible for Community Notes**
+
+Retrieves Posts that are eligible for Community Notes.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.CommunityNotes.SearchEligiblePostsPages(true))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `test_mode` (query parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ `post_selection` (query parameter).
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `SearchEligiblePostsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `SearchWrittenAsync`
+
+GET `/2/notes/search/notes_written` Paginated
+
+**Search for Community Notes Written**
+
+Retrieves the Community Notes written by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.CommunityNotes.SearchWrittenPages(true))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `test_mode` (query parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ A comma separated list of Note fields to display.
+
+
+
+
+**Returns:** `Task` (use `SearchWrittenPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
diff --git a/xdks/csharp/reference/clients/compliance.mdx b/xdks/csharp/reference/clients/compliance.mdx
new file mode 100644
index 000000000..23fd4bc98
--- /dev/null
+++ b/xdks/csharp/reference/clients/compliance.mdx
@@ -0,0 +1,270 @@
+---
+title: "ComplianceClient (C# XDK)"
+sidebarTitle: "Compliance"
+description: "C# XDK ComplianceClient reference — 6 methods for X API v2 Compliance endpoints."
+---
+
+Access **Compliance** endpoints via `client.Compliance` (`ComplianceClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateJobsAsync`](#createjobsasync) | `POST /2/compliance/jobs` | Standard | Create Compliance Job |
+| [`DeleteJobsByIdAsync`](#deletejobsbyidasync) | `DELETE /2/compliance/jobs/{id}` | Standard | Cancel Compliance Job |
+| [`DownloadJobResultsAsync`](#downloadjobresultsasync) | `GET /2/compliance/jobs/{id}/download` | Standard | Download Compliance Job Results |
+| [`GetJobsAsync`](#getjobsasync) | `GET /2/compliance/jobs` | Standard | Get Compliance Jobs |
+| [`GetJobsByIdAsync`](#getjobsbyidasync) | `GET /2/compliance/jobs/{id}` | Standard | Get Compliance Job by ID |
+| [`UploadJobSubmissionAsync`](#uploadjobsubmissionasync) | `PUT /2/compliance/jobs/{id}/upload` | Standard | Upload Compliance Job Submission |
+
+## `CreateJobsAsync`
+
+POST `/2/compliance/jobs`
+
+**Create Compliance Job**
+
+Creates a new Compliance Job for the specified job type.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.CreateJobsAsync(new CreateComplianceJobsRequest { Type = "tweets" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteJobsByIdAsync`
+
+DELETE `/2/compliance/jobs/{id}`
+
+**Cancel Compliance Job**
+
+Cancels a Compliance Job that has not finished processing; its status becomes failed and a new job of the same type can be created.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.DeleteJobsByIdAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `DownloadJobResultsAsync`
+
+GET `/2/compliance/jobs/{id}/download`
+
+**Download Compliance Job Results**
+
+Downloads the results file of a completed Compliance Job using the signed URL returned at job creation.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.DownloadJobResultsAsync("1895000000000000000", "example");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Signed download token from the job's download_url.
+
+
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetJobsAsync`
+
+GET `/2/compliance/jobs`
+
+**Get Compliance Jobs**
+
+Retrieves a list of Compliance Jobs filtered by job type and optional status.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.GetJobsAsync("tweets");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `type` (query parameter).
+
+
+
+
+
+ `status` (query parameter).
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetJobsByIdAsync`
+
+GET `/2/compliance/jobs/{id}`
+
+**Get Compliance Job by ID**
+
+Retrieves details of a specific Compliance Job by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.GetJobsByIdAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `UploadJobSubmissionAsync`
+
+PUT `/2/compliance/jobs/{id}/upload`
+
+**Upload Compliance Job Submission**
+
+Uploads the newline-delimited ID file for a Compliance Job using the signed URL returned at job creation.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Compliance.UploadJobSubmissionAsync("1895000000000000000", "example", Array.Empty());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Signed upload token from the job's upload_url.
+
+
+
+ Request payload.
+
+
+
+
+
+ A comma separated list of ComplianceJob fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/connections.mdx b/xdks/csharp/reference/clients/connections.mdx
new file mode 100644
index 000000000..0c0c48533
--- /dev/null
+++ b/xdks/csharp/reference/clients/connections.mdx
@@ -0,0 +1,161 @@
+---
+title: "ConnectionsClient (C# XDK)"
+sidebarTitle: "Connections"
+description: "C# XDK ConnectionsClient reference — 4 methods for X API v2 Connections endpoints."
+---
+
+Access **Connections** endpoints via `client.Connections` (`ConnectionsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`DeleteAllAsync`](#deleteallasync) | `DELETE /2/connections/all` | Standard | Terminate All Connections |
+| [`DeleteByEndpointAsync`](#deletebyendpointasync) | `DELETE /2/connections/{endpoint_id}` | Standard | Terminate Connections by Endpoint |
+| [`DeleteByUuidsAsync`](#deletebyuuidsasync) | `DELETE /2/connections` | Standard | Terminate Multiple Connections |
+| [`GetConnectionHistoryAsync`](#getconnectionhistoryasync) | `GET /2/connections` | Paginated | Get Connection History |
+
+## `DeleteAllAsync`
+
+DELETE `/2/connections/all`
+
+**Terminate All Connections**
+
+Terminates all active streaming connections for the authenticated application.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Connections.DeleteAllAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `DeleteByEndpointAsync`
+
+DELETE `/2/connections/{endpoint_id}`
+
+**Terminate Connections by Endpoint**
+
+Terminates all streaming connections for a specific endpoint ID for the authenticated application.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Connections.DeleteByEndpointAsync("filtered_stream");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `endpoint_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteByUuidsAsync`
+
+DELETE `/2/connections`
+
+**Terminate Multiple Connections**
+
+Terminates multiple streaming connections by their UUIDs for the authenticated application.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Connections.DeleteByUuidsAsync(
+ new DeleteConnectionsByUuidsRequest { Uuids = new List { "example" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetConnectionHistoryAsync`
+
+GET `/2/connections` Paginated
+
+**Get Connection History**
+
+Returns active and historical streaming connections with disconnect reasons for the authenticated application.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Connections.GetConnectionHistoryPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `status` (query parameter).
+
+
+
+ `endpoints` (query parameter).
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `pagination_token` (query parameter).
+
+
+
+ A comma separated list of Connection fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetConnectionHistoryPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
diff --git a/xdks/csharp/reference/clients/direct-messages.mdx b/xdks/csharp/reference/clients/direct-messages.mdx
new file mode 100644
index 000000000..41ed0265b
--- /dev/null
+++ b/xdks/csharp/reference/clients/direct-messages.mdx
@@ -0,0 +1,467 @@
+---
+title: "DirectMessagesClient (C# XDK)"
+sidebarTitle: "Direct Messages"
+description: "C# XDK DirectMessagesClient reference — 9 methods for X API v2 Direct Messages endpoints."
+---
+
+Access **Direct Messages** endpoints via `client.DirectMessages` (`DirectMessagesClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateByConversationIdAsync`](#createbyconversationidasync) | `POST /2/dm_conversations/{dm_conversation_id}/messages` | Standard | Create DM Message by Conversation ID |
+| [`CreateByParticipantIdAsync`](#createbyparticipantidasync) | `POST /2/dm_conversations/with/{participant_id}/messages` | Standard | Create DM Message by Participant ID |
+| [`CreateConversationAsync`](#createconversationasync) | `POST /2/dm_conversations` | Standard | Create DM Conversation |
+| [`DeleteEventsAsync`](#deleteeventsasync) | `DELETE /2/dm_events/{event_id}` | Standard | Delete DM Event |
+| [`DmConversationsMediaDownloadAsync`](#dmconversationsmediadownloadasync) | `GET /2/dm_conversations/media/{dm_id}/{media_id}/{resource_id}` | Standard | Download DM Media |
+| [`GetEventsAsync`](#geteventsasync) | `GET /2/dm_events` | Paginated | Get DM Events |
+| [`GetEventsByConversationIdAsync`](#geteventsbyconversationidasync) | `GET /2/dm_conversations/{id}/dm_events` | Paginated | Get DM Events by Conversation ID |
+| [`GetEventsByIdAsync`](#geteventsbyidasync) | `GET /2/dm_events/{event_id}` | Standard | Get DM Event by ID |
+| [`GetEventsByParticipantIdAsync`](#geteventsbyparticipantidasync) | `GET /2/dm_conversations/with/{participant_id}/dm_events` | Paginated | Get DM Events by Participant ID |
+
+## `CreateByConversationIdAsync`
+
+POST `/2/dm_conversations/{dm_conversation_id}/messages`
+
+**Create DM Message by Conversation ID**
+
+Sends a new direct message to a specific conversation by its ID.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.CreateByConversationIdAsync(
+ "1500000000000000000",
+ new CreateDirectMessagesByConversationIdRequest { Text = "Hello from XDK!" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `dm_conversation_id` (path parameter).
+
+
+
+ At least one of `text`, `attachments` is required.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateByParticipantIdAsync`
+
+POST `/2/dm_conversations/with/{participant_id}/messages`
+
+**Create DM Message by Participant ID**
+
+Sends a new direct message to a specific participant by their ID.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.CreateByParticipantIdAsync(
+ "2244994945",
+ new CreateDirectMessagesByParticipantIdRequest { Text = "Hello from XDK!" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `participant_id` (path parameter).
+
+
+
+ At least one of `text`, `attachments` is required.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateConversationAsync`
+
+POST `/2/dm_conversations`
+
+**Create DM Conversation**
+
+Initiates a new direct message conversation with specified participants.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.CreateConversationAsync(
+ new CreateDirectMessagesConversationRequest { ConversationType = "Group", ParticipantIds = new List { "2244994945" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteEventsAsync`
+
+DELETE `/2/dm_events/{event_id}`
+
+**Delete DM Event**
+
+Deletes a specific direct message event by its ID, if owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.DeleteEventsAsync("1600000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `event_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DmConversationsMediaDownloadAsync`
+
+GET `/2/dm_conversations/media/{dm_id}/{media_id}/{resource_id}`
+
+**Download DM Media**
+
+Downloads media attached to a legacy Direct Message. The requesting user must be a participant in the conversation containing the specified DM event. The response body contains raw binary bytes.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.DmConversationsMediaDownloadAsync(
+ "1895000000000000000",
+ "3_1895000000000000000",
+ "1895000000000000000"
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `dm_id` (path parameter).
+
+
+
+ `media_id` (path parameter).
+
+
+
+ `resource_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetEventsAsync`
+
+GET `/2/dm_events` Paginated
+
+**Get DM Events**
+
+Retrieves a list of recent direct message events across all conversations.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.DirectMessages.GetEventsPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `event_types` (query parameter).
+
+
+
+ A comma separated list of DmEvent fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetEventsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetEventsByConversationIdAsync`
+
+GET `/2/dm_conversations/{id}/dm_events` Paginated
+
+**Get DM Events by Conversation ID**
+
+Retrieves direct message events for a specific conversation by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.DirectMessages.GetEventsByConversationIdPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `event_types` (query parameter).
+
+
+
+ A comma separated list of DmEvent fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetEventsByConversationIdPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetEventsByIdAsync`
+
+GET `/2/dm_events/{event_id}`
+
+**Get DM Event by ID**
+
+Retrieves details of a specific direct message event by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.DirectMessages.GetEventsByIdAsync("1600000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `event_id` (path parameter).
+
+
+
+
+
+ A comma separated list of DmEvent fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetEventsByParticipantIdAsync`
+
+GET `/2/dm_conversations/with/{participant_id}/dm_events` Paginated
+
+**Get DM Events by Participant ID**
+
+Retrieves direct message events for the one-to-one conversation between the authenticated user and a specific participant.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.DirectMessages.GetEventsByParticipantIdPages("2244994945"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `participant_id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `event_types` (query parameter).
+
+
+
+ A comma separated list of DmEvent fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetEventsByParticipantIdPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
diff --git a/xdks/csharp/reference/clients/general.mdx b/xdks/csharp/reference/clients/general.mdx
new file mode 100644
index 000000000..404973994
--- /dev/null
+++ b/xdks/csharp/reference/clients/general.mdx
@@ -0,0 +1,39 @@
+---
+title: "GeneralClient (C# XDK)"
+sidebarTitle: "General"
+description: "C# XDK GeneralClient reference — 1 methods for X API v2 General endpoints."
+---
+
+Access **General** endpoints via `client.General` (`GeneralClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`GetOpenApiSpecAsync`](#getopenapispecasync) | `GET /2/openapi.json` | Standard | Get OpenAPI Spec |
+
+## `GetOpenApiSpecAsync`
+
+GET `/2/openapi.json`
+
+**Get OpenAPI Spec**
+
+Retrieves the full OpenAPI Specification in JSON format. (See https://github.com/OAI/OpenAPI-Specification/blob/master/README.md)
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.General.GetOpenApiSpecAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task>`
+
+---
+
diff --git a/xdks/csharp/reference/clients/lists.mdx b/xdks/csharp/reference/clients/lists.mdx
new file mode 100644
index 000000000..768b22f72
--- /dev/null
+++ b/xdks/csharp/reference/clients/lists.mdx
@@ -0,0 +1,425 @@
+---
+title: "ListsClient (C# XDK)"
+sidebarTitle: "Lists"
+description: "C# XDK ListsClient reference — 9 methods for X API v2 Lists endpoints."
+---
+
+Access **Lists** endpoints via `client.Lists` (`ListsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`AddMemberAsync`](#addmemberasync) | `POST /2/lists/{id}/members` | Standard | Add List Member |
+| [`CreateAsync`](#createasync) | `POST /2/lists` | Standard | Create List |
+| [`DeleteAsync`](#deleteasync) | `DELETE /2/lists/{id}` | Standard | Delete List |
+| [`GetByIdAsync`](#getbyidasync) | `GET /2/lists/{id}` | Standard | Get List by ID |
+| [`GetFollowersAsync`](#getfollowersasync) | `GET /2/lists/{id}/followers` | Paginated | Get List Followers |
+| [`GetMembersAsync`](#getmembersasync) | `GET /2/lists/{id}/members` | Paginated | Get List Members |
+| [`GetPostsAsync`](#getpostsasync) | `GET /2/lists/{id}/tweets` | Paginated | Get List Posts |
+| [`RemoveMemberByUserIdAsync`](#removememberbyuseridasync) | `DELETE /2/lists/{id}/members/{user_id}` | Standard | Remove List Member |
+| [`UpdateAsync`](#updateasync) | `PUT /2/lists/{id}` | Standard | Update List |
+
+## `AddMemberAsync`
+
+POST `/2/lists/{id}/members`
+
+**Add List Member**
+
+Adds a User to a specific List by its ID.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Lists.AddMemberAsync(
+ "1450000000000000000",
+ new AddListsMemberRequest { UserId = "2244994945" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateAsync`
+
+POST `/2/lists`
+
+**Create List**
+
+Creates a new List for the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Lists.CreateAsync(new CreateListsRequest { Name = "My List" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteAsync`
+
+DELETE `/2/lists/{id}`
+
+**Delete List**
+
+Deletes a specific List owned by the authenticated user by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Lists.DeleteAsync("1450000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByIdAsync`
+
+GET `/2/lists/{id}`
+
+**Get List by ID**
+
+Retrieves details of a specific List by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Lists.GetByIdAsync("1450000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of List fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetFollowersAsync`
+
+GET `/2/lists/{id}/followers` Paginated
+
+**Get List Followers**
+
+Retrieves a list of Users who follow a specific List by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Lists.GetFollowersPages("1450000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A 64-bit signed integer.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetFollowersPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetMembersAsync`
+
+GET `/2/lists/{id}/members` Paginated
+
+**Get List Members**
+
+Retrieves a list of Users who are members of a specific List by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Lists.GetMembersPages("1450000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A 64-bit signed integer.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetMembersPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetPostsAsync`
+
+GET `/2/lists/{id}/tweets` Paginated
+
+**Get List Posts**
+
+Retrieves a list of Posts associated with a specific List by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Lists.GetPostsPages("1450000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetPostsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `RemoveMemberByUserIdAsync`
+
+DELETE `/2/lists/{id}/members/{user_id}`
+
+**Remove List Member**
+
+Removes a User from a List by their ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Lists.RemoveMemberByUserIdAsync("1450000000000000000", "2244994945");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ `user_id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateAsync`
+
+PUT `/2/lists/{id}`
+
+**Update List**
+
+Updates the details of a specific List owned by the authenticated user by its ID.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Lists.UpdateAsync("1450000000000000000", new UpdateListsRequest { Name = "My List" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/media.mdx b/xdks/csharp/reference/clients/media.mdx
new file mode 100644
index 000000000..3e77bb461
--- /dev/null
+++ b/xdks/csharp/reference/clients/media.mdx
@@ -0,0 +1,706 @@
+---
+title: "MediaClient (C# XDK)"
+sidebarTitle: "Media"
+description: "C# XDK MediaClient reference — 19 methods for X API v2 Media endpoints."
+---
+
+Access **Media** endpoints via `client.Media` (`MediaClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`AddPostToAmplifyProgramsAsync`](#addposttoamplifyprogramsasync) | `POST /2/media/amplify/posts` | Standard | Add Post to Amplify Programs |
+| [`AddToLibraryAsync`](#addtolibraryasync) | `POST /2/media/library` | Standard | Add Media to Library |
+| [`AppendUploadAsync`](#appenduploadasync) | `POST /2/media/upload/{id}/append` | Standard | Append Media Upload |
+| [`CreateMetadataAsync`](#createmetadataasync) | `POST /2/media/metadata` | Standard | Create Media Metadata |
+| [`CreateSubtitlesAsync`](#createsubtitlesasync) | `POST /2/media/subtitles` | Standard | Create Media Subtitles |
+| [`DeleteSubtitlesAsync`](#deletesubtitlesasync) | `DELETE /2/media/subtitles` | Standard | Delete Media Subtitles |
+| [`FinalizeUploadAsync`](#finalizeuploadasync) | `POST /2/media/upload/{id}/finalize` | Standard | Finalize Media Upload |
+| [`GetAmplifyProgramAsync`](#getamplifyprogramasync) | `GET /2/media/amplify/programs/{program_id}` | Standard | Get Amplify Program |
+| [`GetAmplifyProgramPostsAsync`](#getamplifyprogrampostsasync) | `GET /2/media/amplify/programs/{program_id}/posts` | Standard | Get Amplify Program Posts |
+| [`GetAmplifyProgramsAsync`](#getamplifyprogramsasync) | `GET /2/media/amplify/programs` | Standard | Get Amplify Programs |
+| [`GetAnalyticsAsync`](#getanalyticsasync) | `GET /2/media/analytics` | Standard | Get Media Analytics |
+| [`GetByKeyAsync`](#getbykeyasync) | `GET /2/media/{media_key}` | Standard | Get Media by Media Key |
+| [`GetByKeysAsync`](#getbykeysasync) | `GET /2/media` | Standard | Get Media by Media Keys |
+| [`GetLibraryCategoriesAsync`](#getlibrarycategoriesasync) | `GET /2/media/library/categories` | Standard | Get Media Library Categories |
+| [`GetUploadStatusAsync`](#getuploadstatusasync) | `GET /2/media/upload` | Standard | Get Media Upload Status |
+| [`InitializeUploadAsync`](#initializeuploadasync) | `POST /2/media/upload/initialize` | Standard | Initialize Media Upload |
+| [`RemoveFromLibraryAsync`](#removefromlibraryasync) | `DELETE /2/media/library/{media_key}` | Standard | Remove Media Library Item |
+| [`UpdateInLibraryAsync`](#updateinlibraryasync) | `PUT /2/media/library/{media_key}` | Standard | Update Media Library Item |
+| [`UploadAsync`](#uploadasync) | `POST /2/media/upload` | Standard | Upload Media |
+
+## `AddPostToAmplifyProgramsAsync`
+
+POST `/2/media/amplify/posts`
+
+**Add Post to Amplify Programs**
+
+Publishes one of the authenticated user's video posts into one or more active Amplify pre-roll programs the user is enrolled in as a publisher.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.AddPostToAmplifyProgramsAsync(
+ new AddPostToAmplifyProgramsRequest { PostId = "1895000000000000000", ProgramIds = new List { "1895000000000000000" } }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `AddToLibraryAsync`
+
+POST `/2/media/library`
+
+**Add Media to Library**
+
+Adds previously uploaded media to the authenticated user's Media Library with its library metadata. The user must own the media. Geo restrictions, content expiry, the preview image and the audience policy are set with the Media metadata endpoint.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.AddToLibraryAsync(new AddMediaToLibraryRequest { MediaKey = "3_1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `AppendUploadAsync`
+
+POST `/2/media/upload/{id}/append`
+
+**Append Media Upload**
+
+Appends one segment of the file to a chunked upload. Send the segment base64-encoded in media (raw bytes in multipart bodies) and its position in the file in segment_index, counting from 0. A segment can be up to 8 MB; in a JSON body keep it to 4 MB or less, because base64 adds a third. After the last segment, call Finalize Media Upload.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.AppendUploadAsync(
+ "1895000000000000000",
+ new AppendMediaUploadRequest { Media = "example", SegmentIndex = 1 }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The upload id from Initialize Media Upload.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateMetadataAsync`
+
+POST `/2/media/metadata`
+
+**Create Media Metadata**
+
+Creates metadata for a Media file.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.CreateMetadataAsync(new CreateMediaMetadataRequest { Id = "1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreateSubtitlesAsync`
+
+POST `/2/media/subtitles`
+
+**Create Media Subtitles**
+
+Creates subtitles for a specific Media file.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.CreateSubtitlesAsync(
+ new CreateMediaSubtitlesRequest { Id = "1895000000000000000", MediaCategory = "AmplifyVideo" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteSubtitlesAsync`
+
+DELETE `/2/media/subtitles`
+
+**Delete Media Subtitles**
+
+Deletes subtitles for a specific Media file.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.DeleteSubtitlesAsync(
+ new DeleteMediaSubtitlesRequest { Id = "1895000000000000000", MediaCategory = "example", LanguageCode = "example" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `FinalizeUploadAsync`
+
+POST `/2/media/upload/{id}/finalize`
+
+**Finalize Media Upload**
+
+Completes a chunked upload once every segment is appended. For video the result carries processing_info: the media can go on a Post only when its state is succeeded, so call Get Media Upload Status until it is. A result without processing_info is ready to use.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.FinalizeUploadAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The upload id from Initialize Media Upload.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetAmplifyProgramAsync`
+
+GET `/2/media/amplify/programs/{program_id}`
+
+**Get Amplify Program**
+
+Returns one Amplify pre-roll program the authenticated user is enrolled in as a publisher. A program the user is not enrolled in is reported as not found.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetAmplifyProgramAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Identifier of the program.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetAmplifyProgramPostsAsync`
+
+GET `/2/media/amplify/programs/{program_id}/posts`
+
+**Get Amplify Program Posts**
+
+Returns the posts published into an Amplify pre-roll program the authenticated user is enrolled in as a publisher.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetAmplifyProgramPostsAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Identifier of the program.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetAmplifyProgramsAsync`
+
+GET `/2/media/amplify/programs`
+
+**Get Amplify Programs**
+
+Returns the Amplify pre-roll programs the authenticated user is enrolled in as a publisher.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetAmplifyProgramsAsync();
+Console.WriteLine(response);
+```
+
+**Returns:** `Task`
+
+---
+
+## `GetAnalyticsAsync`
+
+GET `/2/media/analytics`
+
+**Get Media Analytics**
+
+Retrieves analytics data for media.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetAnalyticsAsync(
+ new List { "3_1895000000000000000" },
+ "2026-01-01T00:00:00Z",
+ "2026-01-02T00:00:00Z"
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `media_keys` (query parameter).
+
+
+
+ `start_time` (query parameter).
+
+
+
+ `end_time` (query parameter).
+
+
+
+
+
+ `granularity` (query parameter).
+
+
+
+ A comma separated list of MediaAnalytics fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByKeyAsync`
+
+GET `/2/media/{media_key}`
+
+**Get Media by Media Key**
+
+Retrieves details of a specific Media file by its media key.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Media.GetByKeyAsync("3_1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `media_key` (path parameter).
+
+
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByKeysAsync`
+
+GET `/2/media`
+
+**Get Media by Media Keys**
+
+Retrieves details of Media files by their media keys.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Media.GetByKeysAsync(new List { "3_1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `media_keys` (query parameter).
+
+
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetLibraryCategoriesAsync`
+
+GET `/2/media/library/categories`
+
+**Get Media Library Categories**
+
+Returns the video categories a publisher can assign to a media library item and the advertiser categories whose ads can be blocked from running against it.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetLibraryCategoriesAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ Language tag for category descriptions, e.g. `en` or `pt-BR`.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetUploadStatusAsync`
+
+GET `/2/media/upload`
+
+**Get Media Upload Status**
+
+Returns how far X has processed an uploaded media file, in processing_info.state: pending, in_progress, succeeded or failed. Call it after Finalize Media Upload returns processing_info, waiting check_after_secs between calls, until the state is succeeded. A failed state means the media can't be used.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.GetUploadStatusAsync("3_1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The media id from Initialize Media Upload.
+
+
+
+
+
+ Always STATUS; can be left out.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `InitializeUploadAsync`
+
+POST `/2/media/upload/initialize`
+
+**Initialize Media Upload**
+
+Starts a chunked media upload and returns its id. Use it for video and for other files too large for one request. For a video on a Post, set media_category to tweet_video, media_type to the file's type (for example video/mp4) and total_bytes to the file's size. Send the file with Append Media Upload, call Finalize Media Upload, then pass the id in media.media_ids on Create or Edit Post.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.InitializeUploadAsync(new InitializeMediaUploadRequest { MediaCategory = "amplify_video" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `RemoveFromLibraryAsync`
+
+DELETE `/2/media/library/{media_key}`
+
+**Remove Media Library Item**
+
+Removes an item from the authenticated user's Media Library. Posts scheduled through the API that have not yet been published and still use the media are cancelled. Published posts and the underlying media are not affected.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.RemoveFromLibraryAsync("3_1895000000000000000", new RemoveMediaFromLibraryRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The media key of the library item to remove.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UpdateInLibraryAsync`
+
+PUT `/2/media/library/{media_key}`
+
+**Update Media Library Item**
+
+Updates the library metadata of an item in the authenticated user's Media Library. Only the fields sent are changed; the others keep their values. Geo restrictions, content expiry, the preview image and the audience policy are set with the Media metadata endpoint.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.UpdateInLibraryAsync(
+ "3_1895000000000000000",
+ new UpdateMediaInLibraryRequest { Name = "My List" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The media key of the library item to update.
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `UploadAsync`
+
+POST `/2/media/upload`
+
+**Upload Media**
+
+Uploads a media file in one request and returns its id. Send the file base64-encoded in media (raw bytes in multipart bodies). For a Post, set media_category to tweet_image (JPG, PNG, GIF or WEBP, up to 5 MB) or tweet_gif, then pass the returned id in media.media_ids on Create or Edit Post. DM media uses dm_image or dm_gif. For video, use Initialize Media Upload.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Media.UploadAsync(
+ new MediaUploadRequest { Media = "example", MediaCategory = "tweet_image" }
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/news.mdx b/xdks/csharp/reference/clients/news.mdx
new file mode 100644
index 000000000..2f6708a32
--- /dev/null
+++ b/xdks/csharp/reference/clients/news.mdx
@@ -0,0 +1,101 @@
+---
+title: "NewsClient (C# XDK)"
+sidebarTitle: "News"
+description: "C# XDK NewsClient reference — 2 methods for X API v2 News endpoints."
+---
+
+Access **News** endpoints via `client.News` (`NewsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`GetAsync`](#getasync) | `GET /2/news/{id}` | Standard | Get News Stories by ID |
+| [`SearchAsync`](#searchasync) | `GET /2/news/search` | Standard | Search News |
+
+## `GetAsync`
+
+GET `/2/news/{id}`
+
+**Get News Stories by ID**
+
+Retrieves news story by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.News.GetAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of News fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `SearchAsync`
+
+GET `/2/news/search`
+
+**Search News**
+
+Retrieves a list of News stories matching the specified search query.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.News.SearchAsync("from:XDevelopers");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ `max_age_hours` (query parameter).
+
+
+
+ A comma separated list of News fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/posts.mdx b/xdks/csharp/reference/clients/posts.mdx
new file mode 100644
index 000000000..9e1130a6d
--- /dev/null
+++ b/xdks/csharp/reference/clients/posts.mdx
@@ -0,0 +1,996 @@
+---
+title: "PostsClient (C# XDK)"
+sidebarTitle: "Posts"
+description: "C# XDK PostsClient reference — 17 methods for X API v2 Posts endpoints."
+---
+
+Access **Posts** endpoints via `client.Posts` (`PostsClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`CreateAsync`](#createasync) | `POST /2/tweets` | Standard | Create or Edit Post |
+| [`CreatePostDraftAsync`](#createpostdraftasync) | `POST /2/posts/drafts` | Standard | Create Post Draft |
+| [`DeleteAsync`](#deleteasync) | `DELETE /2/tweets/{id}` | Standard | Delete Post |
+| [`DeletePostDraftAsync`](#deletepostdraftasync) | `DELETE /2/posts/drafts/{id}` | Standard | Delete Post Draft |
+| [`GetAnalyticsAsync`](#getanalyticsasync) | `GET /2/tweets/analytics` | Standard | Get Post Analytics |
+| [`GetByIdAsync`](#getbyidasync) | `GET /2/tweets/{id}` | Standard | Get Post by ID |
+| [`GetByIdsAsync`](#getbyidsasync) | `GET /2/tweets` | Standard | Get Posts by IDs |
+| [`GetCountsAllAsync`](#getcountsallasync) | `GET /2/tweets/counts/all` | Paginated | Get Count of All Posts |
+| [`GetCountsRecentAsync`](#getcountsrecentasync) | `GET /2/tweets/counts/recent` | Paginated | Get Count of Recent Posts |
+| [`GetLikingUsersAsync`](#getlikingusersasync) | `GET /2/tweets/{id}/liking_users` | Paginated | Get Liking Users |
+| [`GetPostDraftsAsync`](#getpostdraftsasync) | `GET /2/posts/drafts` | Paginated | Get Post Drafts |
+| [`GetQuotedAsync`](#getquotedasync) | `GET /2/tweets/{id}/quote_tweets` | Paginated | Get Quoted Posts |
+| [`GetRepostedByAsync`](#getrepostedbyasync) | `GET /2/tweets/{id}/retweeted_by` | Paginated | Get Reposted By |
+| [`GetRepostsAsync`](#getrepostsasync) | `GET /2/tweets/{id}/retweets` | Paginated | Get Reposts |
+| [`HideReplyAsync`](#hidereplyasync) | `PUT /2/tweets/{tweet_id}/hidden` | Standard | Hide Reply |
+| [`SearchAllAsync`](#searchallasync) | `GET /2/tweets/search/all` | Paginated | Search All Posts |
+| [`SearchRecentAsync`](#searchrecentasync) | `GET /2/tweets/search/recent` | Paginated | Search Recent Posts |
+
+## `CreateAsync`
+
+POST `/2/tweets`
+
+**Create or Edit Post**
+
+Creates a new Post for the authenticated user, or edits an existing Post when edit_options are provided. Media in media.media_ids is attached in the order given; get the ids by uploading each image with Upload Media, or a video with Initialize Media Upload. Supports paid partnership disclosure via the paid_partnership field. To share a clip of another Post's video, set clip to that Post's id and a range of 5 to 60 seconds.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.CreateAsync(new CreatePostsRequest { Text = "Hello from XDK!" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `CreatePostDraftAsync`
+
+POST `/2/posts/drafts`
+
+**Create Post Draft**
+
+Saves a Post draft to the authenticated user's X account without publishing it. Takes the body of Create or Edit Post, of which a draft stores text, media with tagged users, a reply and the AI and paid partnership disclosures. Any other field that is set is a 400 that names it.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.CreatePostDraftAsync(new CreatePostDraftRequest { Text = "Hello from XDK!" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `DeleteAsync`
+
+DELETE `/2/tweets/{id}`
+
+**Delete Post**
+
+Deletes a specific Post by its ID, if owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.DeleteAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+**Returns:** `Task`
+
+---
+
+## `DeletePostDraftAsync`
+
+DELETE `/2/posts/drafts/{id}`
+
+**Delete Post Draft**
+
+Deletes one of the authenticated user's Post drafts by its ID. The whole draft is deleted, including any part Get Post Drafts does not list, and cannot be restored. An ID that is not one of the user's drafts also returns deleted: true.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.DeletePostDraftAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ The ID of the draft to delete.
+
+
+**Returns:** `Task`
+
+---
+
+## `GetAnalyticsAsync`
+
+GET `/2/tweets/analytics`
+
+**Get Post Analytics**
+
+Retrieves analytics data for specified Posts within a defined time range.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.GetAnalyticsAsync(
+ new List { "1895000000000000000" },
+ "2026-01-01T00:00:00Z",
+ "2026-01-02T00:00:00Z"
+);
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `ids` (query parameter).
+
+
+
+ `start_time` (query parameter).
+
+
+
+ `end_time` (query parameter).
+
+
+
+
+
+ `granularity` (query parameter).
+
+
+
+ A comma separated list of Analytics fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByIdAsync`
+
+GET `/2/tweets/{id}`
+
+**Get Post by ID**
+
+Retrieves details of a specific Post by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Posts.GetByIdAsync("1895000000000000000");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByIdsAsync`
+
+GET `/2/tweets`
+
+**Get Posts by IDs**
+
+Retrieves details of multiple Posts by their IDs.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Posts.GetByIdsAsync(new List { "1895000000000000000" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `ids` (query parameter).
+
+
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetCountsAllAsync`
+
+GET `/2/tweets/counts/all` Paginated
+
+**Get Count of All Posts**
+
+Retrieves the count of Posts matching a search query from the full archive.
+
+At most one of `pagination_token`, `next_token` may be provided.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetCountsAllPages("from:XDevelopers"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `start_time` (query parameter).
+
+
+
+ `end_time` (query parameter).
+
+
+
+ `since_id` (query parameter).
+
+
+
+ `until_id` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `granularity` (query parameter).
+
+
+
+ `search_count.fields` (query parameter).
+
+
+
+
+**Returns:** `Task` (use `GetCountsAllPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetCountsRecentAsync`
+
+GET `/2/tweets/counts/recent` Paginated
+
+**Get Count of Recent Posts**
+
+Retrieves the count of Posts from the last 7 days matching a search query.
+
+At most one of `pagination_token`, `next_token` may be provided.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetCountsRecentPages("from:XDevelopers"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ Must be within the last 7 days.
+
+
+
+ `end_time` (query parameter).
+
+
+
+ `since_id` (query parameter).
+
+
+
+ `until_id` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `granularity` (query parameter).
+
+
+
+ `search_count.fields` (query parameter).
+
+
+
+
+**Returns:** `Task` (use `GetCountsRecentPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetLikingUsersAsync`
+
+GET `/2/tweets/{id}/liking_users` Paginated
+
+**Get Liking Users**
+
+Retrieves a list of Users who liked a specific Post by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetLikingUsersPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetLikingUsersPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetPostDraftsAsync`
+
+GET `/2/posts/drafts` Paginated
+
+**Get Post Drafts**
+
+Returns the authenticated user's Post drafts, newest first, in the fields of the Create or Edit Post body. thread holds the Posts after the first. A draft with unsupported_content is not listed in full: do not publish it from this list or delete it unless the user asks. Needs the tweet.write scope.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetPostDraftsPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ The maximum number of drafts to return.
+
+
+
+ The meta.next_token of the previous page.
+
+
+
+
+**Returns:** `Task` (use `GetPostDraftsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetQuotedAsync`
+
+GET `/2/tweets/{id}/quote_tweets` Paginated
+
+**Get Quoted Posts**
+
+Retrieves a list of Posts that quote a specific Post by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetQuotedPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `exclude` (query parameter).
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetQuotedPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetRepostedByAsync`
+
+GET `/2/tweets/{id}/retweeted_by` Paginated
+
+**Get Reposted By**
+
+Retrieves a list of Users who reposted a specific Post by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetRepostedByPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetRepostedByPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetRepostsAsync`
+
+GET `/2/tweets/{id}/retweets` Paginated
+
+**Get Reposts**
+
+Retrieves a list of Posts that repost a specific Post by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.GetRepostsPages("1895000000000000000"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetRepostsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `HideReplyAsync`
+
+PUT `/2/tweets/{tweet_id}/hidden`
+
+**Hide Reply**
+
+Hides or unhides a reply to a conversation owned by the authenticated user.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+var response = await client.Posts.HideReplyAsync("1895000000000000000", new HidePostsReplyRequest { Hidden = true });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `tweet_id` (path parameter).
+
+
+
+ Request payload.
+
+
+**Returns:** `Task`
+
+---
+
+## `SearchAllAsync`
+
+GET `/2/tweets/search/all` Paginated
+
+**Search All Posts**
+
+Retrieves Posts from the full archive matching a search query.
+
+At most one of `start_time`, `since_id` may be provided. At most one of `end_time`, `until_id` may be provided. At most one of `pagination_token`, `next_token` may be provided.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.SearchAllPages("from:XDevelopers"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `start_time` (query parameter).
+
+
+
+ `end_time` (query parameter).
+
+
+
+ `since_id` (query parameter).
+
+
+
+ `until_id` (query parameter).
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ `sort_order` (query parameter).
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `SearchAllPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `SearchRecentAsync`
+
+GET `/2/tweets/search/recent` Paginated
+
+**Search Recent Posts**
+
+Retrieves Posts from the last 7 days matching a search query.
+
+At most one of `start_time`, `since_id` may be provided. At most one of `end_time`, `until_id` may be provided. At most one of `pagination_token`, `next_token` may be provided.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Posts.SearchRecentPages("from:XDevelopers"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ Must be within the last 7 days.
+
+
+
+ `end_time` (query parameter).
+
+
+
+ `since_id` (query parameter).
+
+
+
+ `until_id` (query parameter).
+
+
+
+ `sort_order` (query parameter).
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `SearchRecentPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
diff --git a/xdks/csharp/reference/clients/spaces.mdx b/xdks/csharp/reference/clients/spaces.mdx
new file mode 100644
index 000000000..94ef49b46
--- /dev/null
+++ b/xdks/csharp/reference/clients/spaces.mdx
@@ -0,0 +1,359 @@
+---
+title: "SpacesClient (C# XDK)"
+sidebarTitle: "Spaces"
+description: "C# XDK SpacesClient reference — 6 methods for X API v2 Spaces endpoints."
+---
+
+Access **Spaces** endpoints via `client.Spaces` (`SpacesClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`GetBuyersAsync`](#getbuyersasync) | `GET /2/spaces/{id}/buyers` | Paginated | Get Space Ticket Buyers |
+| [`GetByCreatorIdsAsync`](#getbycreatoridsasync) | `GET /2/spaces/by/creator_ids` | Standard | Get Spaces by Creator IDs |
+| [`GetByIdAsync`](#getbyidasync) | `GET /2/spaces/{id}` | Standard | Get Space by ID |
+| [`GetByIdsAsync`](#getbyidsasync) | `GET /2/spaces` | Standard | Get Spaces by IDs |
+| [`GetPostsAsync`](#getpostsasync) | `GET /2/spaces/{id}/tweets` | Paginated | Get Space Posts |
+| [`SearchAsync`](#searchasync) | `GET /2/spaces/search` | Standard | Search Spaces |
+
+## `GetBuyersAsync`
+
+GET `/2/spaces/{id}/buyers` Paginated
+
+**Get Space Ticket Buyers**
+
+Retrieves a list of Users who purchased tickets to a specific Space by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
+});
+
+await foreach (var page in client.Spaces.GetBuyersPages("1YqKDqWLPPlGV"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetBuyersPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `GetByCreatorIdsAsync`
+
+GET `/2/spaces/by/creator_ids`
+
+**Get Spaces by Creator IDs**
+
+Retrieves details of Spaces created by specified User IDs.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Spaces.GetByCreatorIdsAsync(new List { "2244994945" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `user_ids` (query parameter).
+
+
+
+
+
+ A comma separated list of Space fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Topic fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByIdAsync`
+
+GET `/2/spaces/{id}`
+
+**Get Space by ID**
+
+Retrieves details of a specific Space by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Spaces.GetByIdAsync("1YqKDqWLPPlGV");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ A comma separated list of Space fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Topic fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetByIdsAsync`
+
+GET `/2/spaces`
+
+**Get Spaces by IDs**
+
+Retrieves details of multiple Spaces by their IDs.
+
+```csharp
+using System;
+using System.Collections.Generic;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Spaces.GetByIdsAsync(new List { "1YqKDqWLPPlGV" });
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `ids` (query parameter).
+
+
+
+
+
+ A comma separated list of Space fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Topic fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetPostsAsync`
+
+GET `/2/spaces/{id}/tweets` Paginated
+
+**Get Space Posts**
+
+Retrieves a list of Posts shared in a specific Space by its ID.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Spaces.GetPostsPages("1YqKDqWLPPlGV"))
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+ `id` (path parameter).
+
+
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token.
+
+
+
+ A comma separated list of Post fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task` (use `GetPostsPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `SearchAsync`
+
+GET `/2/spaces/search`
+
+**Search Spaces**
+
+Retrieves a list of Spaces matching the specified search query.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Spaces.SearchAsync("from:XDevelopers");
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ `query` (query parameter).
+
+
+
+
+
+ `state` (query parameter).
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A comma separated list of Space fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Topic fields to display.
+
+
+
+
+**Returns:** `Task`
+
+---
+
diff --git a/xdks/csharp/reference/clients/stream.mdx b/xdks/csharp/reference/clients/stream.mdx
new file mode 100644
index 000000000..d2580d743
--- /dev/null
+++ b/xdks/csharp/reference/clients/stream.mdx
@@ -0,0 +1,1109 @@
+---
+title: "StreamClient (C# XDK)"
+sidebarTitle: "Stream"
+description: "C# XDK StreamClient reference — 18 methods for X API v2 Stream endpoints."
+---
+
+Access **Stream** endpoints via `client.Stream` (`StreamClient`).
+
+## Methods
+
+| Method | Endpoint | Behavior | Summary |
+| :--- | :--- | :--- | :--- |
+| [`ActivityStream`](#activitystream) | `GET /2/activity/stream` | Streaming | Activity Stream |
+| [`GetRuleCountsAsync`](#getrulecountsasync) | `GET /2/tweets/search/stream/rules/counts` | Standard | Get Stream Rule Counts |
+| [`GetRulesAsync`](#getrulesasync) | `GET /2/tweets/search/stream/rules` | Paginated | Get Stream Rules |
+| [`LabelsComplianceStream`](#labelscompliancestream) | `GET /2/tweets/label/stream` | Streaming | Stream Post Labels |
+| [`LikesComplianceStream`](#likescompliancestream) | `GET /2/likes/compliance/stream` | Streaming | Stream Likes Compliance Data |
+| [`LikesFirehoseStream`](#likesfirehosestream) | `GET /2/likes/firehose/stream` | Streaming | Stream All Likes |
+| [`LikesSample10Stream`](#likessample10stream) | `GET /2/likes/sample10/stream` | Streaming | Stream Sampled Likes |
+| [`PostsStream`](#postsstream) | `GET /2/tweets/search/stream` | Streaming | Stream Filtered Posts |
+| [`PostsComplianceStream`](#postscompliancestream) | `GET /2/tweets/compliance/stream` | Streaming | Stream Posts Compliance Data |
+| [`PostsFirehoseStream`](#postsfirehosestream) | `GET /2/tweets/firehose/stream` | Streaming | Stream All Posts |
+| [`PostsFirehoseEnStream`](#postsfirehoseenstream) | `GET /2/tweets/firehose/stream/lang/en` | Streaming | Stream English Posts |
+| [`PostsFirehoseJaStream`](#postsfirehosejastream) | `GET /2/tweets/firehose/stream/lang/ja` | Streaming | Stream Japanese Posts |
+| [`PostsFirehoseKoStream`](#postsfirehosekostream) | `GET /2/tweets/firehose/stream/lang/ko` | Streaming | Stream Korean Posts |
+| [`PostsFirehosePtStream`](#postsfirehoseptstream) | `GET /2/tweets/firehose/stream/lang/pt` | Streaming | Stream Portuguese Posts |
+| [`PostsSampleStream`](#postssamplestream) | `GET /2/tweets/sample/stream` | Streaming | Stream Sampled Posts |
+| [`PostsSample10Stream`](#postssample10stream) | `GET /2/tweets/sample10/stream` | Streaming | Stream 10% Sampled Posts |
+| [`UpdateRulesAsync`](#updaterulesasync) | `POST /2/tweets/search/stream/rules` | Standard | Update Stream Rules |
+| [`UsersComplianceStream`](#userscompliancestream) | `GET /2/users/compliance/stream` | Streaming | Stream Users Compliance Data |
+
+## `ActivityStream`
+
+GET `/2/activity/stream` Streaming
+
+**Activity Stream**
+
+Stream of X Activities
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.ActivityStream();
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the activities will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the activities will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `GetRuleCountsAsync`
+
+GET `/2/tweets/search/stream/rules/counts`
+
+**Get Stream Rule Counts**
+
+Retrieves the count of rules in the active rule set for the filtered stream.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Stream.GetRuleCountsAsync();
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+
+
+ `rules_count.fields` (query parameter).
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `GetRulesAsync`
+
+GET `/2/tweets/search/stream/rules` Paginated
+
+**Get Stream Rules**
+
+Returns the active filtered-stream rules for the authenticated app. Provide `ids` to fetch specific rules; omit it to list all rules.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await foreach (var page in client.Stream.GetRulesPages())
+{
+ Console.WriteLine(page);
+}
+```
+
+### Parameters
+
+
+
+
+ `ids` (query parameter).
+
+
+
+ `max_results` (query parameter).
+
+
+
+ A base32hex-encoded pagination token that decodes to 8 bytes.
+
+
+
+
+**Returns:** `Task` (use `GetRulesPages(...)` for `IAsyncEnumerable` page iteration)
+
+---
+
+## `LabelsComplianceStream`
+
+GET `/2/tweets/label/stream` Streaming
+
+**Stream Post Labels**
+
+Streams all labeling events applied to Posts.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.LabelsComplianceStream();
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Post labels will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Post labels will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `LikesComplianceStream`
+
+GET `/2/likes/compliance/stream` Streaming
+
+**Stream Likes Compliance Data**
+
+Streams all compliance data related to Likes for Users.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.LikesComplianceStream();
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Likes Compliance events will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Likes Compliance events will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `LikesFirehoseStream`
+
+GET `/2/likes/firehose/stream` Streaming
+
+**Stream All Likes**
+
+Streams all public Likes in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.LikesFirehoseStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+ A comma separated list of LikeWithTweetAuthor fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `LikesSample10Stream`
+
+GET `/2/likes/sample10/stream` Streaming
+
+**Stream Sampled Likes**
+
+Streams a 10% sample of public Likes in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.LikesSample10Stream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Likes will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+ A comma separated list of LikeWithTweetAuthor fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsStream`
+
+GET `/2/tweets/search/stream` Streaming
+
+**Stream Filtered Posts**
+
+Streams Posts in real-time matching the active rule set.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsStream();
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsComplianceStream`
+
+GET `/2/tweets/compliance/stream` Streaming
+
+**Stream Posts Compliance Data**
+
+Streams all compliance data related to Posts.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsComplianceStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Post Compliance events will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Post Compliance events will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsFirehoseStream`
+
+GET `/2/tweets/firehose/stream` Streaming
+
+**Stream All Posts**
+
+Streams all public Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsFirehoseStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsFirehoseEnStream`
+
+GET `/2/tweets/firehose/stream/lang/en` Streaming
+
+**Stream English Posts**
+
+Streams all public English-language Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsFirehoseEnStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsFirehoseJaStream`
+
+GET `/2/tweets/firehose/stream/lang/ja` Streaming
+
+**Stream Japanese Posts**
+
+Streams all public Japanese-language Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsFirehoseJaStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsFirehoseKoStream`
+
+GET `/2/tweets/firehose/stream/lang/ko` Streaming
+
+**Stream Korean Posts**
+
+Streams all public Korean-language Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsFirehoseKoStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsFirehosePtStream`
+
+GET `/2/tweets/firehose/stream/lang/pt` Streaming
+
+**Stream Portuguese Posts**
+
+Streams all public Portuguese-language Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsFirehosePtStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsSampleStream`
+
+GET `/2/tweets/sample/stream` Streaming
+
+**Stream Sampled Posts**
+
+Streams a 1% sample of public Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsSampleStream();
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `PostsSample10Stream`
+
+GET `/2/tweets/sample10/stream` Streaming
+
+**Stream 10% Sampled Posts**
+
+Streams a 10% sample of public Posts in real-time.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.PostsSample10Stream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+
+ The number of minutes of backfill requested.
+
+
+
+ A comma separated list of Tweet fields to display.
+
+
+
+ A comma separated list of fields to expand.
+
+
+
+ A comma separated list of Media fields to display.
+
+
+
+ A comma separated list of Poll fields to display.
+
+
+
+ A comma separated list of User fields to display.
+
+
+
+ A comma separated list of Place fields to display.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp to which the Posts will be provided.
+
+
+
+ YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Posts will be provided.
+
+
+
+
+**Returns:** `Task>`
+
+---
+
+## `UpdateRulesAsync`
+
+POST `/2/tweets/search/stream/rules`
+
+**Update Stream Rules**
+
+Adds or deletes rules from the active rule set for the filtered stream. Exactly one of `add`, `delete`, or `?delete_all=true` must be specified. Use `?dry_run=true` to validate without committing.
+
+```csharp
+using System;
+using Xdk;
+using Xdk.Models;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+var response = await client.Stream.UpdateRulesAsync(new UpdateRulesRequest());
+Console.WriteLine(response);
+```
+
+### Parameters
+
+
+ Request payload.
+
+
+
+
+
+ `dry_run` (query parameter).
+
+
+
+ `delete_all` (query parameter).
+
+
+
+
+**Returns:** `Task`
+
+---
+
+## `UsersComplianceStream`
+
+GET `/2/users/compliance/stream` Streaming
+
+**Stream Users Compliance Data**
+
+Streams all compliance data related to Users.
+
+```csharp
+using System;
+using Xdk;
+
+using var client = new XClient(new XClientOptions
+{
+ BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
+});
+
+await using var stream = await client.Stream.UsersComplianceStream(1);
+await foreach (var item in stream)
+{
+ Console.WriteLine(item);
+}
+```
+
+### Parameters
+
+
+ The partition number.
+
+
+
+
+