Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1.2 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.2 KB

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.