위치:
HTTP 작업으로 통합 절차 만들기
NASA를 원격 사이트로 구성하고 NASA API 키를 가져온 후 예제 통합 절차를 만들고 실행할 수 있으며, 이는 해당 날짜의 천문 현황을 검색합니다.
- HTTP 작업 구성 요소를 추가합니다.
-
다음 설정을 사용하여 HTTP 작업 구성 요소를 구성합니다.
속성
값
HTTP 경로
https://api.nasa.gov/planetary/apod HTTP 메서드
GETREST 옵션: 매개 변수 추가
- 키:
api_key - 값:
%ApiKey%
- 키:
-
HTTP 작업 아래의 구조 패널에 응답 작업 구성 요소를 추가하고 다음 설정을 사용하여 구성합니다.
속성
값
JSON 경로 보내기
HTTPAction1JSON 노드 보내기
PictureInfo -
입력 JSON을 편집하고 키
ApiKey및 API 키를 값으로 추가합니다. -
실행을 클릭합니다. 출력은 다음 예와 유사합니다.
{ "PictureInfo": { "url": "https://apod.nasa.gov/apod/image/2006/Eclipse-under-bamboos1024c.jpg", "title": "Eclipse under the Bamboo", "service_version": "v1", "media_type": "image", "hdurl": "https://apod.nasa.gov/apod/image/2006/Eclipse-under-bamboos.jpg", "explanation": "Want to watch a solar eclipse safely? Try looking down instead of up, though you might discover you have a plethora of images to choose from. For example, during the June 21st solar eclipse this confusing display appeared under a shady bamboo grove in Pune, India. Small gaps between close knit leaves on the tall plants effectively created a network of randomly placed pinholes. Each one projected a separate image of the eclipsed Sun. The snapshot was taken close to the time of maximum eclipse in Pune when the Moon covered about 60 percent of the Sun's diameter. But an annular eclipse, the Moon in silhouette completely surrounded by a bright solar disk at maximum, could be seen along a narrow path where the Moon's dark shadow crossed central Africa, south Asia, and Ch", "date": "2020-06-26", "copyright": "Somak Raychaudhury" } } -
(옵션)
url또는hdurl값을 브라우저에 붙여넣고 그림을 봅니다.
