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
Metadata
Release files for peplink_api_client 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| peplink_api_client-1.0.2.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| peplink_api_client-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.4 kB
Release files / peplink_api_client-1.0.2.tar.gz
| Download URL | peplink_api_client-1.0.2.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ad4805f29e7804f2f32841af512af15fb59a6715dca0301cd96a446e31becfe
|
|
BLAKE2b-256 checksum How to use checksums |
5eefb6ed4852ffc4fe54db482b8f58a05b4d21eec4317d76dfdd6b841e1a1db4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure
|
Release files / peplink_api_client-1.0.2-py3-none-any.whl
| Download URL | peplink_api_client-1.0.2-py3-none-any.whl |
|---|---|
| Size | 50.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
199cd4365b790bf769923904e0fb5eabbb2668b4d098395b8145fa90d69ccfa8
|
|
BLAKE2b-256 checksum How to use checksums |
64d21f9c4ce904fa88e3cad968b77954e846b31bf967d2c5f7bb6f288b7036ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure
|