생성자
constructor
• new NewsClient(client): NewsClient
새 news 클라이언트 인스턴스를 생성합니다
매개변수
반환값
NewsClient
정의 위치
news/client.ts:96메서드
get
▸ get(id, options): Promise<Response>
Get news stories by ID
ID로 뉴스 스토리를 검색합니다.
매개변수
반환값
Promise<Response>
API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise
정의 위치
news/client.ts:141 ▸ get(id, options?): Promise<Get2NewsIdResponse>
매개변수
반환값
Promise<Get2NewsIdResponse>
정의 위치
news/client.ts:154search
▸ search(query, options): Promise<Response>
Search News
지정된 검색 쿼리와 일치하는 News 스토리 목록을 검색합니다.
매개변수
반환값
Promise<Response>
API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise
정의 위치
news/client.ts:288 ▸ search(query, options?): Promise<Get2NewsSearchResponse>
매개변수
반환값
Promise<Get2NewsSearchResponse>