Showcase how your app is doing using this API that provides endpoints for shields badges. This makes use of the official Microsoft Store API to get analytics information.
Currently, the API has the installs endpoint ready to use. Just go to https://shields.io/endpoint and use https://yourapi.address/AppID/installs
as the endpoint URL. And you can easily expand this API using information available in the MS Store API documentation.
For a live demo, you can check out the ms store downloads badge on the WSA Sideloader readme.
Variable | Required | Description |
---|---|---|
PORT | No | Uses port 8080 by default |
TENANT_ID | Yes | ID of your Azure AD tenant. You can find this in Partner Center settings under Tenants. If you don't have one, you can create it from this page. |
CLIENT_ID | Yes | Client ID of your Azure AD application |
CLIENT_SECRET | Yes | Client secret of your Azure AD application |
- Log in to https://portal.azure.com using your Azure AD credentials.
- On the home page, click Manage Azure Active Directory. Then click on app registration which can be found on the left hand column and then new registration.
- Enter any name you want and click Register.
- Now go to your app you just created, select certificates & secrets and make a new secret. This secret is what you need for the CLIENT_SECRET variable. You can also find your client ID in the overview page.
- Go to Partner Center settings, user management, Azure AD applications. Add the app you just created however on the permission screen, click customize permissions, and only select the analytics permission for the apps you want the API to access.