FelicianoTech / para

A useful tool for software package manager analytics.
MIT License
1 stars 0 forks source link

Add metrics support for Snap/Snapcraft #2

Open FelicianoTech opened 4 years ago

chayev commented 3 years ago

This seems like the right documentation: https://dashboard.snapcraft.io/docs/api/snap.html#fetch-metrics-for-snaps

However it's not clear how authorization works. Need to do additional research.

FelicianoTech commented 3 years ago

That's for an older API version. APIv2 doc is: https://dashboard.snapcraft.io/docs/v2/en/stores.html#api-store-metrics-models

Macaroons (.. I don't know) is what's used for permission handling. I don't see one for APIv2 but there's a v1 doc: https://dashboard.snapcraft.io/docs/api/macaroon.html