Task/Update SDK CU-869adq005 - #21
Merged
Merged
Conversation
mihaiborcansst
approved these changes
Nov 6, 2025
| @@ -87,6 +87,10 @@ | |||
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis); | |||
| ``` | |||
|
|
|||
Contributor
There was a problem hiding this comment.
For consistency reasons you may remove this space.
| ``` | ||
|
|
||
| ```java | ||
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>"); |
Contributor
There was a problem hiding this comment.
Suggested change
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>"); | |
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis," <YOUR_API_BASE_URL>"); |
| ``` | ||
| - Initialize the SDK with your API key and URL: | ||
| ```java | ||
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>"); |
Contributor
There was a problem hiding this comment.
Suggested change
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>"); | |
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis," <YOUR_API_BASE_URL>"); |
Comment on lines
+610
to
+612
| The SDK now exposes a set of predefined constants for different geographical API endpoints, | ||
| allowing for more precise network routing. | ||
| ### Available API Endpoints |
Contributor
There was a problem hiding this comment.
Suggested change
| The SDK now exposes a set of predefined constants for different geographical API endpoints, | |
| allowing for more precise network routing. | |
| ### Available API Endpoints | |
| The SDK now exposes a set of predefined constants for different geographical API endpoints, | |
| allowing for more precise network routing. | |
| ### Available API Endpoints |
| ### Custom API URL Support | ||
| The `ZeroBounceSDK.initialize()` method can now accepts an `apiBaseUrl` parameter. | ||
| This allows you to specify a custom base URL for the ZeroBounce API. | ||
| #### Migration / Usage |
Contributor
There was a problem hiding this comment.
Suggested change
| #### Migration / Usage | |
| #### Migration / Usage |
| This allows you to specify a custom base URL for the ZeroBounce API. | ||
| #### Migration / Usage | ||
| The existing way of initializing the SDK is still valid. | ||
| - Default Usage (No Change Required). If you don't provide a URL, the SDK will continue to use the standard ZeroBounce API endpoint: |
Contributor
There was a problem hiding this comment.
Suggested change
| - Default Usage (No Change Required). If you don't provide a URL, the SDK will continue to use the standard ZeroBounce API endpoint: | |
| - Default Usage (No Change Required). If you don't provide a URL, the SDK will continue to use the standard ZeroBounce API endpoint: |
| ### Usage Example: | ||
| To use the EU endpoint for initialization: | ||
| ```java | ||
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,ZBConstants.getInstance().API_EU_URL); |
Contributor
There was a problem hiding this comment.
Suggested change
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,ZBConstants.getInstance().API_EU_URL); | |
| ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis, ZBConstants.getInstance().API_EU_URL); |
| } | ||
|
|
||
| /** | ||
| * Calls the *find email* method of the [ZeroBounceSDK]. |
Contributor
There was a problem hiding this comment.
Suggested change
| * Calls the *find email* method of the [ZeroBounceSDK]. | |
| * Calls the *find domain* method of the [ZeroBounceSDK]. |
| @@ -0,0 +1,10 @@ | |||
| package com.zerobounce; | |||
|
|
|||
| public class ZBConstants { | |||
Contributor
There was a problem hiding this comment.
Suggested change
| public class ZBConstants { | |
| /** | |
| * Defines API endpoint constants. This object is a singleton and provides | |
| * global access to the constants. | |
| */ | |
| public class ZBConstants { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contents (#21)
Uncategorised!