(dividends())
- getV22 - Get Dividends V2.2
- get - Get Dividends V2 & V2.1
Returns a list of dividends
package hello.world;
import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetDividendsV22Request;
import com.benzinga.bzclient.models.operations.GetDividendsV22Response;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetDividendsV22Request req = GetDividendsV22Request.builder()
.build();
GetDividendsV22Response res = sdk.dividends().getV22()
.request(req)
.call();
if (res.modelsDividendJSON().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
request |
GetDividendsV22Request |
✔️ |
The request object to use for the request. |
GetDividendsV22Response
Error Type |
Status Code |
Content Type |
models/errors/APIException |
4XX, 5XX |
*/* |
Returns a list of dividends
package hello.world;
import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetDividendsRequest;
import com.benzinga.bzclient.models.operations.GetDividendsResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetDividendsRequest req = GetDividendsRequest.builder()
.build();
GetDividendsResponse res = sdk.dividends().get()
.request(req)
.call();
if (res.modelsDividendJSON().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
request |
GetDividendsRequest |
✔️ |
The request object to use for the request. |
GetDividendsResponse
Error Type |
Status Code |
Content Type |
models/errors/APIException |
4XX, 5XX |
*/* |