Hoppysearch Search JavaScript Client
Project description
swagger-client
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
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.v3.generators.python.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_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 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: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
try:
# /clearIndex
api_instance.v1_clear_index_delete()
except ApiException as e:
print("Exception when calling GeneralApi->v1_clear_index_delete: %s\n" % e)
# Configure API key authorization: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
body = NULL # object | (optional)
show_stats = true # bool | (optional)
diag = true # bool | (optional)
try:
# /delete
api_instance.v1_delete_post(body=body, show_stats=show_stats, diag=diag)
except ApiException as e:
print("Exception when calling GeneralApi->v1_delete_post: %s\n" % e)
# Configure API key authorization: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
body = NULL # object | (optional)
diag = true # bool | (optional)
try:
# /index
api_instance.v1_index_post(body=body, diag=diag)
except ApiException as e:
print("Exception when calling GeneralApi->v1_index_post: %s\n" % e)
# Configure API key authorization: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
q = 56 # int | (optional)
key_list = 'key_list_example' # str | (optional)
page_size = 56 # int | (optional)
page_index = 56 # int | (optional)
diag = true # bool | (optional)
show_stats = true # bool | (optional)
try:
# /search (simple search)
api_instance.v1_search_get(q=q, key_list=key_list, page_size=page_size, page_index=page_index, diag=diag, show_stats=show_stats)
except ApiException as e:
print("Exception when calling GeneralApi->v1_search_get: %s\n" % e)
# Configure API key authorization: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
body = NULL # object | (optional)
show_stats = true # bool | (optional)
diag = true # bool | (optional)
page_size = 56 # int | (optional)
page_index = 56 # int | (optional)
try:
# /search
api_instance.v1_search_post(body=body, show_stats=show_stats, diag=diag, page_size=page_size, page_index=page_index)
except ApiException as e:
print("Exception when calling GeneralApi->v1_search_post: %s\n" % e)
# Configure API key authorization: api_key
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.GeneralApi(swagger_client.ApiClient(configuration))
try:
# /stats
api_instance.v1_stats_get()
except ApiException as e:
print("Exception when calling GeneralApi->v1_stats_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://xbsbszzngd.execute-api.ap-south-1.amazonaws.com
Class | Method | HTTP request | Description |
---|---|---|---|
GeneralApi | v1_clear_index_delete | DELETE /v1/clearIndex | /clearIndex |
GeneralApi | v1_delete_post | POST /v1/delete | /delete |
GeneralApi | v1_index_post | POST /v1/index | /index |
GeneralApi | v1_search_get | GET /v1/search | /search (simple search) |
GeneralApi | v1_search_post | POST /v1/search | /search |
GeneralApi | v1_stats_get | GET /v1/stats | /stats |
Documentation For Models
Documentation For Authorization
api_key
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
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
Built Distribution
Hashes for hoppysearch-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be3ac3f2b9fe1722d453783fa967a4c95a9b1f23074e3bd03a298e4040bd4d21 |
|
MD5 | 0c4e3b4cca9e5c0ece0be4dd46df97ab |
|
BLAKE2b-256 | 357e5b209e7021c4c2fec63bb6744a9400d92d59071477c1894d782dd4334f46 |