This is a Python client library for Cradlepoint NCM API
INSTALL AND RUN INSTRUCTIONS
-
Install the ncm pip package:
pip3 install ncm
-
Set NCM API Keys. API Keys must be passed as a dictionary:
api_keys = { 'X-CP-API-ID': 'aaaa', 'X-CP-API-KEY': 'bbbb', 'X-ECM-API-ID': 'cccc', 'X-ECM-API-KEY': 'dddd' }
-
Import the module and create an instance of the NcmClient object:
from ncm import ncm n = ncm.NcmClient(api_keys)
-
Call functions from the module as needed. For example:
print(n.get_accounts())