Skip to content

Task/Update SDK CU-869adq005 - #21

Merged
cristinabotu merged 11 commits into
masterfrom
task/update-sdk
Nov 6, 2025
Merged

Task/Update SDK CU-869adq005#21
cristinabotu merged 11 commits into
masterfrom
task/update-sdk

Conversation

@cristinabotu

@cristinabotu cristinabotu commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Contents (#21)

Uncategorised!

  • accept all
  • Added new methods.
  • Added readme.
  • Merged w/ master
  • Added tests.
  • Merges.
  • Merge branch 'master' into task/update-sdk
  • Little change
  • Tests.
  • Changes to the Controller
  • Changes after PR.

Comment thread README.md Outdated
@@ -87,6 +87,10 @@
ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis);
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For consistency reasons you may remove this space.

Comment thread README.md Outdated
```

```java
ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 thread README.md Outdated
```
- Initialize the SDK with your API key and URL:
```java
ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,"<YOUR_API_BASE_URL>");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 thread README.md
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread README.md
### 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
#### Migration / Usage
#### Migration / Usage

Comment thread README.md
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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:

Comment thread README.md Outdated
### Usage Example:
To use the EU endpoint for initialization:
```java
ZeroBounceSDK.getInstance().initialize("<YOUR_API_KEY>", timeoutInMillis,ZBConstants.getInstance().API_EU_URL);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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].

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
public class ZBConstants {
/**
* Defines API endpoint constants. This object is a singleton and provides
* global access to the constants.
*/
public class ZBConstants {

@cristinabotu
cristinabotu merged commit d28f0e7 into master Nov 6, 2025
3 checks passed
@cristinabotu
cristinabotu deleted the task/update-sdk branch November 6, 2025 08:31
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