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.0
- 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.0.tar.gz
.
File metadata
- Download URL: peplink_api_client-1.0.0.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 | 421d11e144660755c45a68324a1a7df0d083d543aa61b8128a2e36e64e23f456 |
|
MD5 | dee544c1c62278c242191cc97528192c |
|
BLAKE2b-256 | 67f92e54aa8f785b8b4b4d0e59ed61d7ccc1286b5c54893a37a43bbc934a2080 |
File details
Details for the file peplink_api_client-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: peplink_api_client-1.0.0-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 | e8d11a8f9727e9f8a71128f7b1c5059ea2049e4553446cfc5ba9c660181a2d1b |
|
MD5 | 04b05e9a98490e6c98dbc10ebed4b2ae |
|
BLAKE2b-256 | 9d5da84a71f84002c02659b5737fc89786f3470807539f217a3d753a1aaf4c6f |