app-store-ratings
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "app-store-ratings", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Fetches data for app store ratings", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# app-store-ratings | ||
Ever had the need to fetch ratings for your IOS App using node? Tired of deducing the types returned by the AppStore API? Then app-store-ratings is what you're looking for! | ||
Ever had the need to fetch ratings for your IOS App using node? Tired of deducing the types returned by the AppStore API? Then ```app-store-ratings``` is what you're looking for! | ||
@@ -8,4 +8,5 @@ # Description | ||
# Why | ||
There is no exposed API that returns JSON objects of the IOS App ratings. Had to rely on converting from xml to json on several | ||
projects and create a package for it. | ||
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 voila the package was born. | ||
@@ -28,4 +29,25 @@ # Installation | ||
}) | ||
.then(entries => console.log(entries)) | ||
.then(ratings => console.log(ratings)) | ||
``` | ||
# Entry type | ||
```typescript | ||
export interface IAppStoreRating { | ||
id: string; | ||
title: string; | ||
updatedAt: string; | ||
content: string; | ||
rating: number; | ||
voteCount: number; | ||
voteSum: number; | ||
version: string; | ||
author: { | ||
name: string; | ||
uri: string; | ||
}; | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8310
51