Documentation Index
Fetch the complete documentation index at: https://benzinga-2-locadex-parallel-main.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
< رجوع
- getV22 - جلب توزيعات الأرباح V2.2
- get - جلب توزيعات الأرباح V2 و V2.1
يُرجِع قائمة بتوزيعات الأرباح
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()) {
// معالجة الرد
}
}
}
| المعامل | النوع | مطلوب | الوصف |
|---|
request | GetDividendsV22Request | :heavy_check_mark: | كائن الطلب المستخدم في هذه العملية. |
GetDividendsV22Response
| نوع الخطأ | رمز الحالة | نوع المحتوى |
|---|
| models/errors/APIException | 4XX, 5XX | / |
يُرجع قائمة بتوزيعات الأرباح
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetDividendsRequest;
import org.benzinga.BZClient.models.operations.GetDividendsResponse;
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()) {
// معالجة الرد
}
}
}
المعلمات
| المعلمة | النوع | مطلوب | الوصف |
|---|
request | GetDividendsRequest | :heavy_check_mark: | كائن الطلب المستخدم لتنفيذ الطلب. |
GetDividendsResponse
| نوع الخطأ | رمز الحالة | نوع المحتوى |
|---|
| models/errors/APIException | 4XX, 5XX | / |