0.3.0 • Published 4 years ago

@egodigital/google-play-store v0.3.0

Weekly downloads
5
License
LGPL-3.0
Repository
github
Last release
4 years ago

npm

@egodigital/google-play-store

A simplfied library for Node.js 10+ for accessing Google's Play Store APIs, written in TypeScript.

The module is quite new, so issues and pull requests are very welcome :-)

Install

Execute the following command from your project folder, where your package.json file is stored:

npm install --save @egodigital/google-play-store

Usage

import * as fs from 'fs';
import { Client as GooglePlayStoreClient } from '@egodigital/google-play-store';

const PRIVATE_KEY = fs.readFileSync(
    '/path/to/your/json/key/file'
);

const CLIENT = new GooglePlayStoreClient({
    key: PRIVATE_KEY,
});

const SUMMARY = await CLIENT.getAppDownloads({
    projectId: '<YOUR-PROJECT-ID>',
});

console.log(
    SUMMARY
);

Documentation

The API documentation can be found here.