Easy to get the mcdonald lottery daily api.
npm install
npm run start
Get the token witch call mcdonald api will need.
curl --request POST \
--url localhost:5000/api/users \
--header 'content-type: application/json' \
--data '{
"account": "<yourAccount>",
"password": "<password>"
}'
Get the lottery vai call mcdonald api and show today's lottery which you get.
curl --request POST \
--url localhost:5000/api/lottery \
--header 'content-type: application/json' \
--data '{
"accessToken": "<mcdonaldToken>"
}'
Get the lottery list and stickers witch the date is not expired.
curl --request GET \
--url 'http://localhost:5000/api/lottery?accessToken=<mcdonaldToken>'
Get the lottery daily , cronFormat default is UTF+8 00:01:00
curl --request POST \
--url http://localhost:5000/api/subscription \
--header 'content-type: application/json' \
--data '{
"accessToken": "<mcdonaldToken>",
"lineNotifiyToken": "<yourLineNotifiyToken>",
"cronFormat": "<cronFormat>"
}'