package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetDividendsV22Request;
import org.benzinga.BZClient.models.operations.GetDividendsV22Response;
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
        }
    }
}