1.0.0 • Published 12 months ago

divine-api-wrapper v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Divine API Wrapper

A Node.js wrapper for the DivineAPI REST API. This wrapper provides easy access to DivineAPI's astrological and panchang-related endpoints.

Installation

Install the package using npm:

npm install divine-api-wrapper

```javascript

const DivineApiWrapper = require('divine-api-wrapper');

const api = new DivineApiWrapper('YOUR_API_KEY', 'YOUR_AUTH_TOKEN');
api.findPanchang({
  day: '24',
  month: '05',
  year: '2023',
  place: 'New Delhi',
  lat: '28.6139',
  lon: '77.2090',
  tzone: '5.5',
  lan: 'en'
})
  .then(response => {
    console.log('Panchang information:', response);
  })
  .catch(error => {
    console.error('Error fetching panchang:', error);
  });

License

This project is licensed under the MIT License. See the LICENSE file for details. Acknowledgments

Thanks to DivineAPI for providing the astrological data API Inspired by the need for an easy-to-use Node.js wrapper for DivineAPI

1.0.0

12 months ago