alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 735 forks source link

Missing support for SMAPI Metrics API v2 #739

Open ilovelinux opened 11 months ago

ilovelinux commented 11 months ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[X] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

SMAPI client supports the older and very limited Metrics API v1, but it doesn't support the newest and improved Metrics API v2.

Expected Behavior

Support for Metrics API v2

Current Behavior

Missing support for Metrics API v2. Only Metrics API v1 are supported.

Possible Solution

Implement Metrics API v2 support.

Context

We need to fetch Alexa skill's metrics in order to make statistics and analytics charts about it. We are currently limited to one week (Metrics API v1 limit) and it doesn't fit very well our needs. We would really like to have Metrics API v2 support in order to make statistics about periods longer than one week.

Your Environment

Node.js and NPM Info

ilovelinux commented 11 months ago

I created a npm package based on ASK Smapi SDK to fetch data from metrics v2 api: https://www.npmjs.com/package/ask-metrics-v2

Repository: https://github.com/ilovelinux/ask-metrics-v2

I could make a PR to official repositories when I'll find the time to do that.