Skip to main content

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

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)

Source distribution for peplink_api_client 1.0.2
File Size Uploaded
peplink_api_client-1.0.2.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for peplink_api_client 1.0.2
File Interpreter ABI Platform
peplink_api_client-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 75.4 kB

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page