https://api.lotto-haru.kr/win/payout.json
지원하는 HTTP Method : GET
파라메타 정보
- chasu
- [숫자][다중] 차수를 설정
- chasuStart
- [숫자] 시작 차수를 설정 (※ chasuEnd 와 함께 사용시, chasuEnd 보다 같거나 작아야함)
- chasuEnd
- [숫자] 종료 차수를 설정 (※ chasuStart 와 함께 사용시, chasuStart 보다 같거나 커야함)
선택 1. https://api.lotto-haru.kr/win/payout.json
선택 2. https://api.lotto-haru.kr/win/payout/{chasu}.json
선택 3. https://api.lotto-haru.kr/win/payout/0/{chasuStart}.json
선택 4. https://api.lotto-haru.kr/win/payout/0/{chasuStart}/{chasuEnd}.json
[
{
"chasu": 1200,
"chasuStr": "1,200",
"win1Payout": 2357299875,
"win1PayoutStr": "2,357,299,875",
"win1PayoutHangul": "이십삼억오천칠백이십구만구천팔백칠십오",
"win2Payout": 58932497,
"win2PayoutStr": "58,932,497",
"win2PayoutHangul": "오천팔백구십삼만이천사백구십칠",
"win3Payout": 1315458,
"win3PayoutStr": "1,315,458",
"win3PayoutHangul": "일백삼십일만오천사백오십팔",
"win4Payout": 50000,
"win4PayoutStr": "50,000",
"win4PayoutHangul": "오만",
"win5Payout": 5000,
"win5PayoutStr": "5,000",
"win5PayoutHangul": "오천"
}
]
parseResponse({
"data": [
{
"chasu": 1200,
"chasuStr": "1,200",
"win1Payout": 2357299875,
"win1PayoutStr": "2,357,299,875",
"win1PayoutHangul": "이십삼억오천칠백이십구만구천팔백칠십오",
"win2Payout": 58932497,
"win2PayoutStr": "58,932,497",
"win2PayoutHangul": "오천팔백구십삼만이천사백구십칠",
"win3Payout": 1315458,
"win3PayoutStr": "1,315,458",
"win3PayoutHangul": "일백삼십일만오천사백오십팔",
"win4Payout": 50000,
"win4PayoutStr": "50,000",
"win4PayoutHangul": "오만",
"win5Payout": 5000,
"win5PayoutStr": "5,000",
"win5PayoutHangul": "오천"
}
]
});
<?xml version="1.0"?>
<response>
<item>
<chasu>1200</chasu>
<chasuStr>1,200</chasuStr>
<win1Payout>2357299875</win1Payout>
<win1PayoutStr>2,357,299,875</win1PayoutStr>
<win1PayoutHangul>이십삼억오천칠백이십구만구천팔백칠십오</win1PayoutHangul>
<win2Payout>58932497</win2Payout>
<win2PayoutStr>58,932,497</win2PayoutStr>
<win2PayoutHangul>오천팔백구십삼만이천사백구십칠</win2PayoutHangul>
<win3Payout>1315458</win3Payout>
<win3PayoutStr>1,315,458</win3PayoutStr>
<win3PayoutHangul>일백삼십일만오천사백오십팔</win3PayoutHangul>
<win4Payout>50000</win4Payout>
<win4PayoutStr>50,000</win4PayoutStr>
<win4PayoutHangul>오만</win4PayoutHangul>
<win5Payout>5000</win5Payout>
<win5PayoutStr>5,000</win5PayoutStr>
<win5PayoutHangul>오천</win5PayoutHangul>
</item>
</response>
리턴 정보
- chasu
- 로또 차수
- win1Payout
- 1등 당첨 금액
- win2Payout
- 2등 당첨 금액
- win3Payout
- 3등 당첨 금액
- win4Payout
- 4등 당첨 금액
- win5Payout
- 5등 당첨 금액