Skip to main content
< 뒤로

개요

사용 가능한 작업

  • bulkSync - 주어진 검색 키에 대한 로고를 가져오기
  • search - 주어진 검색 키에 대한 로고를 가져오기

bulkSync

지정된 검색 키에 대한 로고를 가져옵니다

사용 예시

package hello.world;

import java.lang.Exception;
import java.util.List;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.BzhttpResp;
import org.benzinga.BZClient.models.operations.LogoBulkSyncRequest;
import org.benzinga.BZClient.models.operations.LogoBulkSyncResponse;

public class Application {

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

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

        LogoBulkSyncRequest req = LogoBulkSyncRequest.builder()
                .searchKeys("<value>")
                .fields(List.of(
                    "<value>"))
                .build();

        LogoBulkSyncResponse res = sdk.logos().bulkSync()
                .request(req)
                .call();

        if (res.bzhttpResp().isPresent()) {
            // 응답 처리
        }
    }
}

매개변수

매개변수타입필수 여부설명
requestLogoBulkSyncRequest:heavy_check_mark:요청 시 사용할 요청 객체입니다.

응답

LogoBulkSyncResponse

오류

오류 유형상태 코드콘텐츠 타입
models/errors/BzhttpResp400, 404, 500application/json
models/errors/APIException4XX, 5XX/
지정한 검색 키에 대한 로고를 가져옵니다

사용 예시

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.GetSearchLogosRequest;
import org.benzinga.BZClient.models.operations.GetSearchLogosResponse;

public class Application {

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

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

        GetSearchLogosRequest req = GetSearchLogosRequest.builder()
                .searchKeys("<value>")
                .fields("<value>")
                .build();

        GetSearchLogosResponse res = sdk.logos().search()
                .request(req)
                .call();

        if (res.logoapiLogoRevisions().isPresent()) {
            // 응답 처리
        }
    }
}

매개변수

매개변수타입필수 여부설명
requestGetSearchLogosRequest:heavy_check_mark:요청에 사용할 객체입니다.

응답

GetSearchLogosResponse

오류

오류 유형상태 코드콘텐츠 유형
models/errors/BzhttpResp400, 404, 500application/json
models/errors/APIException4XX, 5XX/