A simple NodeJS interface to NASA's Mars Rover Photos API.
Installation
Using npm:
$ npm install --save mrp-api
If you don't have or don't want to use npm:
$ cd ~/.node_modules
$ git clone git://github.com/gmontalvoriv/mrp-api.git
Usage
const mrp = 'apiKey'; // => your NASA developer API key const options = /** * Earth date on which a photo was taken * @type {String|Date object (YYYY-MM-DD)} */ earth_date: '2015-08-03' /** * Martian sol (ranges from 0 to max found in endpoint) * @type */ //sol: 1000, /** * See the camera name abbreviations table here https://api.nasa.gov/api.html#MarsPhotos * @type */ camera: 'FHAZ' /** * 25 items per page returned * @type */ page: 1; mrp; mrp; mrp;
Example Images
License
MIT © Gabriel Montalvo