3.1.0 • Published 6 months ago

app-store-ratings v3.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 months ago
StatementsBranchesFunctionsLines
StatementsBranchesFunctionsLines

app-store-ratings 🌟

https://img.shields.io/npm/v/app-store-ratings https://img.shields.io/github/issues-raw/ssbarbee/app-store-ratings https://img.shields.io/npm/dw/app-store-ratings

Ever had the need to fetch ratings for your IOS App using node? Tired of deducing the types returned by the App Store API? Then app-store-ratings is what you're looking for!

Description 📚

Simple wrapper that let you fetch ratings for your IOS APP. Written in Typescript.

Why? 🧐

There is no well documented API that returns JSON objects for the IOS App ratings. There is an endpoint that returns XML or JSON. The API that returns XML contains more data than the one that returns JSON. Converting from XML to JSON on several projects got a bit tedious. And voilà the package was born.

Installation 📦

npm

npm install app-store-ratings

yarn

yarn add app-store-ratings

Usage 🚀

No extensive tutorials required. Learn by example.

Examples

Classic promise

import { fetchRatings } from 'app-store-ratings';

function getRatings() {
    fetchRatings({ 
        projectId: 'XXX', // the IOS App projectId
        country: 'YYY' // Optional country if your app is available across many stores
    })
    .then(ratings => console.log(ratings));
}

Async await

import { fetchRatings } from 'app-store-ratings';

async function getRatings() {
    const ratings = await fetchRatings({ 
        projectId: 'XXX', // the IOS App projectId
        country: 'YYY' // Optional country if your app is available across many stores
    });
    console.log(ratings);
}

Entry type

export interface IAppStoreRating {
    id: string;
    title: string;
    updatedAt: string;
    content: string;
    rating: number;
    voteCount: number;
    voteSum: number;
    version: string;
    author: {
        name: string;
        uri: string;
    };
}
3.1.0

6 months ago

3.0.9

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

2.0.0

2 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago