FSUInnovationHub / Hub-App

React Native application for interacting with the iHub and its resources.
MIT License
1 stars 3 forks source link

Research LibCal and ways we can interface with it. #2

Open Azure-Agst opened 6 years ago

Azure-Agst commented 6 years ago

I'm gonna convert this to an issue from a note, since there seems to be a lot more to it then just "research." I'm pivoting from my original goal from last week of "reversing libcal's API" to requesting official access.

TL;DR: Libcal has a officially supported javascript? based API that ships with the service. I plan on getting us access to it.

I need to talk to whoever is in charge of running LibCal over at the library to see if we can get a LibCal account with API permissions so we can interface with their service. When (and if) I get access, I'll make a simple script with some functions to interface. That way, grabbing data from the servers should be as easy as one function call. I'll keep everyone posted.

Azure-Agst commented 6 years ago

Update: From what I've read, the API endpoints for LibCal requires that we do not expose the link, as the link itself contains many private auth details that could wreak a whole world of havoc if exposed to the public. 🙃

We could simply host a redirect server on Heroku or AWS Free Tier. (In fact, someone's already published code to do so.) We could also, instead of just making a redirect, add some code on our host to make our own pseudo API to add our own security measures, but that may be outside of the scope of this particular project.

Regarding the LibCal API itself, I'm emailing some people to get us access. I'll keep you all posted regarding developments on that in our team page.