Skip to content

client snippet update#769

Merged
DZakh merged 1 commit intomainfrom
nb/hypersync-api-key-update
Dec 26, 2025
Merged

client snippet update#769
DZakh merged 1 commit intomainfrom
nb/hypersync-api-key-update

Conversation

@nikbhintade
Copy link
Member

@nikbhintade nikbhintade commented Dec 26, 2025

HyperSync client now accepts API tokens from the apiToken or api_token field. The Python client is not updated yet, so it still uses the bearer_token field.

Summary by CodeRabbit

  • Documentation
    • Updated API token usage documentation and code examples across TypeScript, Python, and Rust
    • Revised environment variable naming conventions for API token configuration to ensure consistency

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
envio-docs Ready Ready Preview, Comment Dec 26, 2025 7:35am

@nikbhintade nikbhintade self-assigned this Dec 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 26, 2025

📝 Walkthrough

Walkthrough

Documentation update standardizing API token naming across HyperSync examples. Replaces bearer_token parameter and HYPERSYNC_BEARER_TOKEN environment variable with api_token and ENVIO_API_TOKEN respectively in TypeScript, Python, and Rust code snippets.

Changes

Cohort / File(s) Summary
HyperSync API Token Documentation
docs/HyperSync/api-tokens.mdx
Updated parameter naming from bearer_token to api_token and environment variable from HYPERSYNC_BEARER_TOKEN to ENVIO_API_TOKEN across all language examples (TypeScript, Python, Rust).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

codex

Suggested reviewers

  • DZakh
  • JasoonS
  • Piroddi

Poem

🐰 Token names unified with grace,
From bearer's old to api's place,
ENVIO_API_TOKEN shines so bright,
Across all tongues—TypeScript, Python's light,
Consistency hops through every line! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'client snippet update' is vague and generic, using non-descriptive language that doesn't convey the specific nature of the changes (API token parameter renaming across documentation examples). Consider a more specific title like 'Update API token parameter names in client examples' or 'Replace bearer_token with api_token in HyperSync documentation' to better reflect the actual changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch nb/hypersync-api-key-update

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68a8d34 and 6ab2790.

📒 Files selected for processing (1)
  • docs/HyperSync/api-tokens.mdx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nikbhintade nikbhintade requested a review from DZakh December 26, 2025 07:37
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/HyperSync/api-tokens.mdx (1)

37-70: Update line 37 to clarify parameter naming differences across languages, and verify consistency with other Rust implementations.

Line 37 states "pass it as a bearer_token" but the examples use three different parameter names: apiToken (TypeScript), bearer_token (Python), and api_token (Rust). Additionally, other documentation files use bearer_token for Rust (e.g., HyperFuel), creating inconsistency in the Rust client API across the docs.

Recommend either:

  1. Updating line 37 to note that parameter names differ by language and explaining why, or
  2. Verifying that the Rust parameter should be api_token or bearer_token and aligning all Rust examples across the documentation
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68a8d34 and 6ab2790.

📒 Files selected for processing (1)
  • docs/HyperSync/api-tokens.mdx

@DZakh
Copy link
Member

DZakh commented Dec 26, 2025

Thanks

@DZakh DZakh merged commit ac8cdaf into main Dec 26, 2025
3 checks passed
@DZakh DZakh deleted the nb/hypersync-api-key-update branch December 26, 2025 08:47
@DenhamPreen DenhamPreen mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants