A better API from NASA
To take a look at some great web APIs, you can go to: http://bit.ly/NasaWebAPI and see the list of APIs that you can use, or better yet, use some web APIs you've already written. React VR makes it very easy to integrate these through the power of React and React Native. We will use the Mars photo API. To enable it, you will probably need a Developer key. When you make the requests, you can add your API key to the URL or use DEMO_KEY. This becomes part of the API call, for example, https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?sol=1000&api_key=DEMO_KEY. Note that there is no period on the end of the URL.
If you start getting errors while developing your code, you might be using the DEMO_KEY a little ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access