Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GreyNewfie
Copy link
Contributor

  • Add optional base URL parameter to the SDK initialization
  • Set base URL to the US by default
  • Add region constants to easily and reliably set the region base URLs
  • Add tests to ensure the correct endpoints are being set for each region

- Introduce optional base_url parameter in init() method
- Add US_REGION import for default base URL
- Update request() method to use dynamic base URL
- Ensure backward compatibility with existing initialization
- Define constants for US, EU, and CA regions
- Provide easy access to predefined base URLs for different geographical regions
- Create test suite for region initialization and URL selection
- Test default, EU, CA, and custom region configurations
- Verify correct base URL is used during API requests
- Import US_REGION constant in test file
- Update API send path to use US_REGION base URL
- Align test configuration with SDK region support
- Delete test case for initializing NotificationAPI with a custom URL to focus on initialization with regions
@GreyNewfie GreyNewfie requested a review from mbasadi February 26, 2025 19:20
Copy link
Member

@mbasadi mbasadi left a comment

Choose a reason for hiding this comment

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

Check the node
we pass the actual url
ask Sahand ether we should change node SDK or this one

@GreyNewfie
Copy link
Contributor Author

@mbasadi Sahand wants me to update the Node SDK

@GreyNewfie GreyNewfie merged commit 153e075 into main Feb 27, 2025
3 checks passed
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.

4 participants