Skip to main content
< VOLVER

Descripción general

Operaciones disponibles

  • get - Obtener Analyst Insights V1

get

Obtener perspectivas de analistas V1

Ejemplo de uso

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.ApiErrorResponse;
import org.benzinga.BZClient.models.operations.GetAnalystInsightsV1Request;
import org.benzinga.BZClient.models.operations.GetAnalystInsightsV1Response;

public class Application {

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

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

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

        GetAnalystInsightsV1Response res = sdk.analystInsights().get()
                .request(req)
                .call();

        if (res.modelsAnalystInsightsJSON().isPresent()) {
            // manejar la respuesta
        }
    }
}

Parámetros

ParámetroTipoObligatorioDescripción
requestGetAnalystInsightsV1Request:heavy_check_mark:Objeto de solicitud que se utilizará en la petición.

Respuesta

GetAnalystInsightsV1Response

Errores

Tipo de errorCódigo de estadoTipo de contenido
models/errors/ApiErrorResponse400, 500application/json
models/errors/APIException4XX, 5XX/