Skip to main content
< 뒤로 가기

개요

사용 가능한 작업

  • get - 삭제된 항목 가져오기 (v2)

get

v2 Removed 엔드포인트에서 데이터 가져오기

사용 예시

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetRemovedResponse;
import org.benzinga.BZClient.models.operations.Type;

public class Application {

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

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

        GetRemovedResponse res = sdk.removed().get()
                .page(700347L)
                .pageSize(558834L)
                .type(Type.OFFERINGS)
                .updated(521235L)
                .call();

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

매개변수

매개변수타입필수설명
pageOptional<Long>:heavy_minus_sign:페이지 번호
pageSizeOptional<Long>:heavy_minus_sign:페이지 크기
typeOptional<Type>:heavy_minus_sign:유형
updatedOptional<Long>:heavy_minus_sign:Unix 형식의 업데이트 시각

응답

GetRemovedResponse

오류

오류 유형상태 코드콘텐츠 유형
models/errors/APIException4XX, 5XX/