Polling

리포트를 Polling방식으로 수신합니다.

Polling 방식이란? 클라이언트(사용자)에서 서버(OMNI API)로 주기적으로 요청하여 변경사항을 확인하는 방식입니다.

  • 리포트 가져오기로 발급 받은 reportId는 반드시 리포트 수신 확인 처리를 해야 다음 리포트를 수신 받을 수 있습니다.

  • 1회 호출 시 최대 1,000개의 리포트를 가져올 수 있습니다.

  • 전달되지 않고 3일이 지난 리포트는 삭제 됩니다.

  • 전달할 리포트가 없는 경우 reportId와 report는 빈값("", null)으로 전달 됩니다.

리포트 가져오기

curl -X GET https://omni.ibapi.kr/v1/report/polling \
-H "content-type: application/json" \
-H "Accept: application/json" \
-H "Authorization:Bearer 발급받은 토큰" 

Request

Header

NameTypeDescription

Authorization

String

schema + “ “ + token

Accept

String

application/json

Response

Header

NameTypeDescription

Content-Type

String

application/json

Body

NameTypeDescription

String(4)

API호출 결과 코드

result

String

API호출 결과 설명

Object

API호출 데이터

Schema

data

NameTypeDescription

reportId

String

리포트 ID

report

Object Array

리포트 정보

리포트 수신 확인

curl -X DELETE https://omni.ibapi.kr/v1/report/polling/리포트ID \
-H "content-type: application/json" \
-H "Accept: application/json" \
-H "Authorization:Bearer 발급받은 토큰" 

Request

Header

NameTypeDescription

Authorization

String

schema + “ “ + token

Accept

String

application/json

Path Parameter

NameTypeRequiredDescription

reportId

String

YES

리포트 ID

Response

Header

NameTypeDescription

Content-Type

String

application/json

Body

NameTypeDescription

String(4)

API호출 결과 코드

result

String

API호출 결과 설명

Last updated