Peplink API
Project description
peplink-api-client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.1
- Package version: 1.0.0
- Generator version: 7.8.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import peplink_api_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import peplink_api_client
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import peplink_api_client
from peplink_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = peplink_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with peplink_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = peplink_api_client.DefaultApi(api_client)
token_request = peplink_api_client.TokenRequest() # TokenRequest | (optional)
try:
# Generate a new access token
api_response = api_instance.api_auth_token_grant_post(token_request=token_request)
print("The response of DefaultApi->api_auth_token_grant_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->api_auth_token_grant_post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | api_auth_token_grant_post | POST /api/auth.token.grant | Generate a new access token |
DefaultApi | api_status_wan_connection_get | GET /api/status.wan.connection | Get WAN status |
Documentation For Models
- BWAllowanceMonitorObj
- BandObj
- CarrierObj
- CellTowerObj
- GobiObj
- MEIDObj
- ModemObj
- MonthlyAllowanceObj
- RATObj
- RemoteSIMObj
- RoamingObj
- SIMGroupObj
- SIMObj
- SignalObj
- TokenRequest
- TokenResponse
- WanStatusResponse
- WanStatusResponseResponseValue
- WifiObj
Documentation For Authorization
Endpoints do not require authorization.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file peplink_api_client-1.0.1.tar.gz
.
File metadata
- Download URL: peplink_api_client-1.0.1.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b89a97c4c0f4a6e9d77afcff97ba94fa45b7161a733317a4d33684e97b2afa3b |
|
MD5 | a79da54aeaf460a8053a859dc6ebdb78 |
|
BLAKE2b-256 | b634b100264294d98cd6196d803f1889143798b55ecda030d9a5ca9030efc44c |
File details
Details for the file peplink_api_client-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: peplink_api_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 50.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b46d24af453fdc71c624baf226f3acd54deec1ff605d5220bd88711156aee72 |
|
MD5 | 482dddfe08211a6758ebe3122515b35e |
|
BLAKE2b-256 | 431331208b95ee65869b2148cbb57ed608f5f431846948c69cd975b50e160244 |