https://api.lotto-haru.kr/prime-number/hit.json
지원하는 HTTP Method : GET
파라메타 정보
- chasu
- [숫자][다중] 차수를 설정
- chasuStart
- [숫자] 시작 차수를 설정 (※ chasuEnd 와 함께 사용시, chasuEnd 보다 같거나 작아야함)
- chasuEnd
- [숫자] 종료 차수를 설정 (※ chasuStart 와 함께 사용시, chasuStart 보다 같거나 커야함)
선택 1. https://api.lotto-haru.kr/prime-number/hit.json
선택 2. https://api.lotto-haru.kr/prime-number/hit/{chasu}.json
선택 3. https://api.lotto-haru.kr/prime-number/hit/0/{chasuStart}.json
선택 4. https://api.lotto-haru.kr/prime-number/hit/0/{chasuStart}/{chasuEnd}.json
{
"primeNumber0": 101,
"primeNumber0Str": "101",
"primeNumber1": 333,
"primeNumber1Str": "333",
"primeNumber2": 410,
"primeNumber2Str": "410",
"primeNumber3": 235,
"primeNumber3Str": "235",
"primeNumber4": 59,
"primeNumber4Str": "59",
"primeNumber5": 8,
"primeNumber5Str": "8",
"primeNumber6": 0,
"primeNumber6Str": "0"
}
parseResponse({
"data": {
"primeNumber0": 101,
"primeNumber0Str": "101",
"primeNumber1": 333,
"primeNumber1Str": "333",
"primeNumber2": 410,
"primeNumber2Str": "410",
"primeNumber3": 235,
"primeNumber3Str": "235",
"primeNumber4": 59,
"primeNumber4Str": "59",
"primeNumber5": 8,
"primeNumber5Str": "8",
"primeNumber6": 0,
"primeNumber6Str": "0"
}
});
<?xml version="1.0"?>
<response>
<primeNumber0>101</primeNumber0>
<primeNumber0Str>101</primeNumber0Str>
<primeNumber1>333</primeNumber1>
<primeNumber1Str>333</primeNumber1Str>
<primeNumber2>410</primeNumber2>
<primeNumber2Str>410</primeNumber2Str>
<primeNumber3>235</primeNumber3>
<primeNumber3Str>235</primeNumber3Str>
<primeNumber4>59</primeNumber4>
<primeNumber4Str>59</primeNumber4Str>
<primeNumber5>8</primeNumber5>
<primeNumber5Str>8</primeNumber5Str>
<primeNumber6>0</primeNumber6>
<primeNumber6Str>0</primeNumber6Str>
</response>