Skip to main content
< رجوع

نظرة عامة

العمليات المتاحة

  • get - جلب بيانات NewsQuantified

get

جلب بيانات Newsquantified

مثال على الاستخدام

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.BzhttpResp;
import org.benzinga.BZClient.models.operations.GetNewsquantifiedDataRequest;
import org.benzinga.BZClient.models.operations.GetNewsquantifiedDataResponse;

public class Application {

    public static void main(String[] args) throws BzhttpResp, Exception {

        Bzclient sdk = Bzclient.builder()
                .apiKeyAuth("<YOUR_API_KEY_HERE>")
            .build();

        GetNewsquantifiedDataRequest req = GetNewsquantifiedDataRequest.builder()
                .build();

        GetNewsquantifiedDataResponse res = sdk.newsquantified().get()
                .request(req)
                .call();

        if (res.modelsNewsquantifieds().isPresent()) {
            // معالجة الاستجابة
        }
    }
}

المعاملات

المعاملالنوعمطلوبالوصف
requestGetNewsquantifiedDataRequest:heavy_check_mark:كائن الطلب المستخدم في هذا الاستدعاء.

الاستجابة

GetNewsquantifiedDataResponse

الأخطاء

نوع الخطأرمز الحالةنوع المحتوى
models/errors/BzhttpResp404application/json
models/errors/APIException4XX, 5XX/