Giter Club home page Giter Club logo

microsoft-partnercenter-node's Introduction

Microsoft PartnerCenter RestAPI SDK for NodeJS

Getting Started

You can install the package with the following command:

npm install microsoft-partnercenter
yarn add microsoft-partnercenter

Import the package

import { MicrosoftPartnerCenter } from 'microsoft-partnercenter'

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)

microsoft-partnercenter-node's People

Contributors

calebalbers avatar dependabot[bot] avatar dillondylan avatar noticeeverything avatar renovate[bot] avatar santese avatar zenion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

microsoft-partnercenter-node's Issues

Readme

For God's sake write a better read me so we can understand what this package does :|

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Fallback to renovate.json file as a preset is deprecated, please use a default.json file instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/push.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
  • stefanzweifel/git-auto-commit-action v5
npm
package.json
  • axios 1.6.7
  • jsonwebtoken 9.0.2
  • tslib 2.6.2
  • @digitalroute/cz-conventional-changelog-for-jira 8.0.1
  • @pliancy/eslint-config-ts 1.1.0
  • @pliancy/semantic-release-config-npm 2.2.0
  • @types/jest 29.5.12
  • @types/jsonwebtoken 9.0.6
  • @types/node 20.11.25
  • commitizen 4.3.0
  • cpy-cli 5.0.0
  • husky 9.0.11
  • jest 29.7.0
  • jest-mock-axios 4.7.3
  • npm-run-all2 5.0.0
  • open-cli 8.0.0
  • pinst 3.0.0
  • rimraf 5.0.5
  • ts-jest 29.1.2
  • typescript 5.4.2
  • node 20.11.1
  • yarn 1.22.21

  • Check this box to trigger a request for Renovate to run again on this repository

Setup Github Actions and settings.yml

Leaving this as a reminder for myself to set up Github Actions for automated testing/deployment + add a settings.yml for Github configuration as code.

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.