Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/fetch data dynamically #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

baron-chiu
Copy link
Contributor

This PR aims to solve #9.

Once the PR is merged, TaiwanHoliday.init will fetch the first 1000 results and fetch the remaining data based on result.count in the response of first 1000 results.

A new function, requestData is added to lib/opendata-tw.js to support the operations.

The hard-coded URLs in OpendataTW are considered deprecated because of the new operation. Hence they are removed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant