cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
546 stars 126 forks source link

Querying the API on an Angular app (client-side) #90

Closed christopherkade closed 7 years ago

christopherkade commented 7 years ago

I had previously developed a web app to simply display wait-times using a small node server, I wish to rewrite this app statically by doing all the themepark API calls client-side, would that be possible? If not, why?

Thank you for your work 🥇

cubehouse commented 7 years ago

Hi,

It is theoretically possible to do this entirely client-side, largely the issues come down to:

Generally it is totally possible, but it is not something this library would ever implement as it requires a lot more framework-specific work to implement correct caching and network requests. You would also lose functionality such as wait-time history, which is very powerful.

If you're only interested in implementing a single park, I would investigate if you can reproduce the authentication in the browser first, and start building from there.