Skip to main content

Python library to access the Internode API: https://customer-webtools-api.internode.on.net/api/v1.5

Project description

Internode is a package to pull data from https://customer-webtools-api.internode.on.net/api/v1.5. To use the Internode API you need a valid account with Internode.

Requirements

  • Install Python 3.9 (for all users)
  • Pip install requests

Usage

Connect to Internode API:

import internode
Internode = internode.api("user.name@outlook.com", "password")
Internode.connect()

To get service information use the following:

Internode.getservice()

To get current usage information use the following:

Internode.getusage()

To get the last day's history information use the following:

Internode.gethistory()

Full example:

Internode = internode.api("user.name@outlook.com", "password")
Internode.connect()
Internode.getservice()
print(Internode.service)
    
Internode.getusage()
print(Internode.usage)
    
Internode.gethistory()
print(Internode.history)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

internode-1.5.5.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page