API 상품보기
- End Point 기본그룹
- GET국내 예보 1시간 단위
- GET국내 예보 6시간 단위
- GET국내 예보 12시간 단위
- GET국내 예보 일 단위
GET/getXML_life_1hr.php
국내 예보 1시간 단위 - 국내 케이웨더 예보 1시간 단위
curl –i - X GET
- H x-waple-authorization : 고객 키
// console 에서 직접 입력하여 사용 가능합니다.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/kweather//getXML_life_1hr.php")
.header("x-waple-authorization", "고객 키")
.field("region", "10000")
.asJson();
// These code snippets use an open-source library.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/kweather//getXML_life_1hr.php")
.header("x-waple-authorization", "고객 키")
.field("region", "10000")
.end(function (result) {
console.log(result.status, result.headers, result.body);
});
response = Unirest.GET "http://api.apistore.co.kr/kweather//getXML_life_1hr.php",
headers:{:"x-waple-authorization" => "고객 키"},
parameters:{
:region => "10000" }
org.springframework.web.filter.ShallowEtagHeaderFilter$ShallowEtagResponseWrapper@633c129f = Unirest::GET ("http://api.apistore.co.kr/kweather//getXML_life_1hr.php",
array(
"x-waple-authorization" => "고객 키"
),
array(
region => "10000" )
);
response = Unirest.GET ("http://api.apistore.co.kr/kweather//getXML_life_1hr.php",
headers={"x-waple-authorization": "고객 키"},
params={
region:"10000" }
)
NSDictionary *headers = @{@"x-waple-authorization": @"고객 키"};
NSDictionary *parameters = @{
@region: @"10000"};
UNIUrlConnection *asyncConnection = [[UNIRest GET :^(UNISimpleRequest *request) {
[request setUrl:@"http://api.apistore.co.kr/kweather//getXML_life_1hr.php"];
[request setHeaders:headers];
[request setParameters:parameters];
}] asJsonAsync:^(UNIHTTPJsonResponse *response, NSError *error) {
NSInteger code = response.code;
NSDictionary *responseHeaders = response.headers;
UNIJsonNode *body = response.body;
NSData *rawBody = response.rawBody;
}];
Task> response = Unirest.GET ("http://api.apistore.co.kr/kweather//getXML_life_1hr.php")
.header("x-waple-authorization", "고객 키")
.field(region, "10000")
.asJson();
이 code snippet은 unirest.의 Open source Client Library를 사용하고 있습니다.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.