Skip to main content

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

Documentation For Authorization

Endpoints do not require authorization.

Author

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

peplink_api_client-1.0.2.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

peplink_api_client-1.0.2-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page