@landmineaknpm/quos-architecto-adipisci

1.0.0 • Public • Published

Microsoft PartnerCenter RestAPI SDK for NodeJS

Getting Started

You can install the package with the following command:

npm install @landmineaknpm/quos-architecto-adipisci
yarn add @landmineaknpm/quos-architecto-adipisci

Import the package

import { MicrosoftPartnerCenter } from '@landmineaknpm/quos-architecto-adipisci'

Initialize with Client ID and Client Secret Auth & Partner Domain:

  const msPartnerCenter = new MicrosoftPartnerCenter ({
        partnerDomain: 'partner.onmicrosoft.com',
        authentication: {
            clientId: '1',
            clientSecret: '1',
        },
    })

Example Usage

Get all Customers

await msPartnerCenter.getAllCustomers()

Create Order

const customerId = '123'
const billingCycle = 'monthly'

const lineItems = [
  {
    offerId: '1',
    quantity: 16,
    termDuration: 'P1M',
},
]

await msPartnerCenter.createOrder(customerId, billingCycle, lineItems)

Readme

Keywords

Package Sidebar

Install

npm i @landmineaknpm/quos-architecto-adipisci

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • hai836799