Project

synnex

0.0
No commit activity in last 3 years
No release in over 3 years
Wraps the API up in object for managing office 365 licenses through Partner CSP
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Synnex Gem

Use this gem to interact with Synnex API to query against office 365 CSP. It is possible to get customers, purchase subscriptions, and manage seats

Install the gem

gem install synnex or using bundler bundle add synnex

To connect to the API, start with the Synnex::Msp object

msp = Synnex::Msp.new(user_name: 'user', password: 'pass', reseller: 12345) to use the production instance include endpoint: "production"

To get customers

msp.customers

Synnex::Customer

The customer object has the following attributes:

  • snx_eu_no
  • company_name
  • address1
  • address2
  • city
  • state
  • zip_code
  • country
  • contact_name
  • email
  • phone
  • tenant_id

Customer can also perform the following operations:

  • create_order(line_items, reseller_po, end_user_po, email)
    • line_items follow the {snx_sku_no: 12345, quantity: 1} pattern

subscriptions for a customer can be queried and manipulated by calling .subscriptions on the Synnex::Customer object