4 ms·
Ask HN: How do I use the Firebase Hacker News API with their 3.0 version
Since Firebase was bought by Google they have released a 3.0 version of their SDK which no longer just takes a URL to a DB but also takes an apiKey. I've done a fair bit of googling and reading the docs but I can't find a way to connect to the Hacker News API with the new SDK as I'm not sure where I'm supposed to get an apiKey from.
- cloudjacker 10y agotried empty string or null?
- joshstrange 10y agoYes, but it still threw the error.
- tonyle 10y agoThere was some people talking about this issue in the support forums and their response was to stick with v2 until they sort out the issues. They recently made a change with the node sdk recently so you don't need the apiKey for public access. Not sure about the web version, You would probably have to use the Browserify or something. https://firebase.googleblog.com/2016/07/firebase-react-native.html https://firebase.googleblog.com/2016/07/firebase-react-nativ... That said, If I were you, I would stick with V2 sdk since I don't think hacker news has actually updated yet. An easier way is to just use the rest apis, That is still clearly working. https://hacker-news.firebaseio.com/v0/item/8863.json https://hacker-news.firebaseio.com/v0/item/8863.json
- joshstrange 10y agoOk, I thought that was probably the answer (stick with V2 for now) but I didn't want to build out on that and then have it discontinued, thank you!