mentortools/libs/: static-server-connector-1.1.0+1607441668 metadata and description
Mentortools Static Landing Page Server
| author | OpenAPI Generator Community |
| author_email | team@openapitools.org |
| classifiers |
|
| description_content_type | text/markdown |
| keywords | OpenAPI, OpenAPI-Generator, Mentortools Static Landing Page Server |
| license | NoLicense |
| project_urls |
|
| requires_dist |
|
| requires_python | >=3.7,<4.0 |
| File | Tox results | History |
|---|---|---|
static_server_connector-1.1.0+1607441668-py3-none-any.whl
|
|
|
static_server_connector-1.1.0+1607441668.tar.gz
|
|
static-server-connector
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.1.0
- Package version: 1.1.0+1607441668
- Generator version: 7.8.0
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
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 static_server_connector
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 static_server_connector
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import static_server_connector
from static_server_connector.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = static_server_connector.Configuration(
host = "/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ServerNameSecurity
configuration.api_key['ServerNameSecurity'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ServerNameSecurity'] = 'Bearer'
# Enter a context with an instance of the API client
async with static_server_connector.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = static_server_connector.DefaultApi(api_client)
page_publish = static_server_connector.PagePublish() # PagePublish |
try:
api_response = await api_instance.file_v1_publish_post(page_publish)
print("The response of DefaultApi->file_v1_publish_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->file_v1_publish_post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to /api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | file_v1_publish_post | POST /file/v1/publish | |
| DefaultApi | file_v1_unpublish_post | POST /file/v1/unpublish |
Documentation For Models
Documentation For Authorization
Authentication schemes defined for the API:
ServerNameSecurity
- Type: API key
- API key parameter name: server_name
- Location: HTTP header