Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

app-annie-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-annie-api - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

36

lib/index.js

@@ -29,38 +29,32 @@ var Query = require('./query');

AppAnnie.prototype.app = {
list: function(){
return new this.Query(this._accountUrl() + 'apps');
}
AppAnnie.prototype.appList = function(){
return new this.Query(this._accountUrl() + 'apps');
};
['sales', 'reviews'].forEach(function(i){
AppAnnie.prototype.app[i] = function(){
return new this.Query(this._appUrl() + i);
['Sales', 'Reviews'].forEach(function(i){
AppAnnie.prototype['app' + i] = function(){
return new this.Query(this._appUrl() + i.toLowerCase());
};
});
['ranks', 'ratings', 'features', 'details'].forEach(function(i){
AppAnnie.prototype.app[i] = function(){
['Ranks', 'Ratings', 'Features', 'Details'].forEach(function(i){
AppAnnie.prototype['app' + i] = function(){
if (!this.options.market) throw new Error('options.market is required!');
if (!this.options.appId) throw new Error('options.appId is required!');
return new this.Query('https://api.appannie.com/v1.1/apps/' + this.options.market + '/app/' + this.options.appId + '/' + i);
return new this.Query('https://api.appannie.com/v1.1/apps/' + this.options.market + '/app/' + this.options.appId + '/' + i.toLowerCase());
};
});
AppAnnie.prototype.account = {
list: function(){
return new this.Query(apiBaseUrl + 'accounts');
}
AppAnnie.prototype.accountList = function(){
return new this.Query(apiBaseUrl + 'accounts');
};
['sales', 'apps', 'iaps'].forEach(function(i){
AppAnnie.prototype.account[i] = function(){
return new this.Query(this._accountUrl() + i);
['Sales', 'Apps', 'Iaps'].forEach(function(i){
AppAnnie.prototype['account' + i] = function(){
return new this.Query(this._accountUrl() + i.toLowerCase());
};
});
AppAnnie.prototype.sharing = {
apps: function(){
return new this.Query(apiBaseUrl + 'sharing/apps');
}
AppAnnie.prototype.sharingApps = function(){
return new this.Query(apiBaseUrl + 'sharing/apps');
};
{
"name": "app-annie-api",
"version": "0.0.2",
"version": "0.0.3",
"description": "App Annie API for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -17,6 +17,69 @@ # App Annie API

``` js
var AppAnnie = require('app-annie-api');
var annie = new AppAnnie({
apiKey: '',
accountId: '',
appId: '',
market: ''
});
```
## API
### appList()
### appSales()
### appReviews()
### appRanks()
### appRatings()
### appFeatures()
### appDetails()
### accountList()
### accountSales()
### accountApps()
### accountIaps()
### sharingApps()
### Query.startDate(date)
**Alias:** start
### Query.endDate(date)
**Alias:** end
### Query.pageIndex(page)
**Alias:** page
### Query.currency(currency)
### Query.countries(countries)
### Query.breakDown(breakDown)
### Query.interval(interval)
### Query.feed(feed)
### Query.device(device)
### Query.version(version)
### Query.exec([callback])
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc