7cd8c3946a | ||
---|---|---|
.. | ||
__pycache__ | ||
build | ||
dist | ||
docs | ||
indictrans | ||
python-client-generated | ||
swagger_client | ||
swagger_client.egg-info | ||
test | ||
.testing_languages_working_translation.py.swp | ||
=1.10 | ||
Adding_Scripts_To_SampleSCripts.py | ||
README.md | ||
all_transliteration.py | ||
all_transliteration_actionline.py | ||
authentication.json | ||
buck_2_unicode.py | ||
cleaned_file.txt | ||
createDict.py | ||
debu1414.log | ||
debug99.log | ||
detect55ion.py | ||
detectio11n.py | ||
detection.py | ||
detection4march.py | ||
detection5april.py | ||
detection123.py | ||
detection_20_dec.py | ||
detection_w.py | ||
detectiongood.py | ||
detectiongood2.py | ||
detectionnew.py | ||
detectionold.py | ||
dev-rom-ritwik.py | ||
dev-rom-sheetal.py | ||
ek_new_file.py | ||
external_conversion.py | ||
external_conversion_bkp1704.py | ||
extra.py | ||
f1.txt | ||
file.txt | ||
file.txt.py | ||
file1.txt | ||
file1.txt.py | ||
file2.txt | ||
file2.txt.py | ||
file_lines.docx | ||
file_lines.txt | ||
file_lines_200.txt | ||
file_lines_2003.txt | ||
final_translation.py | ||
final_transliteration.py | ||
final_transliteration_only.py | ||
final_transliteration_only1april.py | ||
final_transliteration_only2.py | ||
final_transliteration_only23.py | ||
final_transliteration_only_working.py | ||
final_transliteration_onlypreb.py | ||
final_transliteration_translation.py | ||
fourstepconversion.py | ||
fourstepconversion2.py | ||
getting_languages_Codes.py | ||
getting_languages_Scripts.py | ||
git_push.sh | ||
google_check.py | ||
keys_aws.json | ||
language_codes.json | ||
language_pairs_languages.json | ||
list_languages.py | ||
lls.json | ||
lls2.json | ||
logger.py | ||
multiprocessing_funcs.py | ||
multiprocessing_funcs2.py | ||
newconversion.py | ||
output.txt | ||
readme.txt | ||
readme.txt.py | ||
requirements.txt | ||
requirements.txt.py | ||
requirementslib.txt | ||
s2s.py | ||
script_actionline.py | ||
script_detector.py | ||
script_reading.py | ||
script_reading_actionline.py | ||
script_translation_log.txt | ||
script_writing.py | ||
scripts.json | ||
selection_source.py | ||
selection_source_actionline.py | ||
setup.py | ||
subtitle.py | ||
test-requirements.txt | ||
test-requirements.txt.py | ||
test20-1.py | ||
test20_2.py | ||
test22.py | ||
testing.py | ||
testing2.py | ||
testing_fonts_all_langs.py | ||
testing_languages.py | ||
testing_languages_working_translation.py | ||
testing_response_times.py | ||
testing_scripts.py | ||
testing_scripts_mini.py | ||
testttttt.py | ||
testttttt2.py | ||
tox.ini | ||
transString.py | ||
translation_comparison.py | ||
translation_function.py | ||
translation_metric.py | ||
translation_resources.py | ||
translation_resources_actionline.py | ||
translation_resources_old.py | ||
translation_variables.py | ||
transliteration.zh.tar.bz2 | ||
transliteration_function.py | ||
transliteration_resources.py | ||
transliteration_testing.py | ||
twostepconversion.py | ||
urls.py | ||
vector_transliteration.py | ||
vector_transliteration_13may.py | ||
vector_transliteration_working.py |
README.md
swagger-client
Lingvanex works via HTTPS requests. The URL of all requests starts with https://api-b2b.backenster.com/b1/api/v3/. In case of a protocol selection error and using HTTP, the request will be redirected to the address with the HTTPS protocol (status code 302).
Authentication of requests is done by adding the “Authorization” header with the following data format: Bearer The key can be created on the user control panel page https://lingvanex.com/account. Example: "Authorization: Bearer <YOUR_API_KEY>".
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import swagger_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 swagger_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TranslateApi(swagger_client.ApiClient(configuration))
platform = 'api' # str | api (default to api)
code = 'en_GB' # str | the language code in the format “language code_code of the country”, which is used to display the names of the languages. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en_GB, es_ES, ru_RU etc). If this option is not present, then English is used by default (optional) (default to en_GB)
try:
# Getting the list of languages
api_response = api_instance.get_languages_get(platform, code=code)
pprint(api_response)
except ApiException as e:
print("Exception when calling TranslateApi->get_languages_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api-b2b.backenster.com/b1/api/v3
Class | Method | HTTP request | Description |
---|---|---|---|
TranslateApi | get_languages_get | GET /getLanguages | Getting the list of languages |
TranslateApi | translate_post | POST /translate | Text translation |
Documentation For Models
- AuthError
- InlineResponse200
- InlineResponse2001
- InlineResponse200Modes
- InlineResponse200Result
- Request
Documentation For Authorization
APIKeyHeader
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header