@prokerala/api-client

0.1.2 • Public • Published

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
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);
})();

/@prokerala/api-client/

    Package Sidebar

    Install

    npm i @prokerala/api-client

    Weekly Downloads

    34

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • joycebabu
    • joshyjacob