Mediana-sdk
Mediana sms api doc
sdks for some programming languages is in out github at https://github.com/ippanelippanel
api-key format: Authorization: "AccessKey your-api-key"
Authentication
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.1
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python >= 3.6
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 Mediana-sdk
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 Mediana-sdk
Getting Started
Please follow the installation procedure and then run the following:
import time
import Mediana-sdk
from pprint import pprint
from Mediana-sdk.api import auth_api
from Mediana-sdk.model.inline_response200 import InlineResponse200
from Mediana-sdk.model.inline_response401 import InlineResponse401
configuration = Mediana-sdk.Configuration(
host = "http://rest.ippanel.com"
)
configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
with Mediana-sdk.ApiClient(configuration) as api_client:
api_instance = auth_api.AuthApi(api_client)
try:
api_response = api_instance.get_authorized_user()
pprint(api_response)
except Mediana-sdk.ApiException as e:
print("Exception when calling AuthApi->get_authorized_user: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://rest.ippanel.com
Documentation For Models
Documentation For Authorization
ApiKeyAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in Mediana-sdk.apis and Mediana-sdk.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1:
Use specific imports for apis and models like:
from Mediana-sdk.api.default_api import DefaultApi
from Mediana-sdk.model.pet import Pet
Solution 2:
Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import Mediana-sdk
from Mediana-sdk.apis import *
from Mediana-sdk.models import *