Code Monkey home page Code Monkey logo

msstore-shields's Introduction

Microsoft Store Shields API

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.

ko-fi

Environment variables

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

Setting up the Azure AD application

  1. Log in to https://portal.azure.com using your Azure AD credentials.
  2. 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.
  3. Enter any name you want and click Register.
  4. 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.
  5. 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.

Screenshot 2023-04-03 122956

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.