JSPM

@prokerala/api-client

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q57170F
  • License MIT

Client for accessing Prokerala Astrology API.

Package Exports

  • @prokerala/api-client

Readme

Javascript client

This is a sample API client written in Javascript for accessing Prokerala Astrology API from NodeJS.

Usage

You can find your clientId and clientSecret in your dashboard

Install the api clientId

npm install --save @prokerala/api-client

Kundli

const { ApiClient } = require('@prokerala/api-client');

(async () => {
    const client = new ApiClient('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET');
    const data = await client.get('v2/astrology/panchang', {
        'ayanamsa': 1,
        'coordinates': '23.1765,75.7885',
        'datetime': '2020-10-19T12:31:14+00:00'
    });

    console.log(data);
})();