All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
get_v1_trending_search | GET /v1/trending-search | Gets trending search results. |
post_v1_trending_search | POST /v1/trending-search | Saves trending search results. |
list[TrendingResult] get_v1_trending_search()
Gets trending search results.
Gets trending search results.
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['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TrendingApi(swagger_client.ApiClient(configuration))
try:
# Gets trending search results.
api_response = api_instance.get_v1_trending_search()
pprint(api_response)
except ApiException as e:
print("Exception when calling TrendingApi->get_v1_trending_search: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_v1_trending_search(body)
Saves trending search results.
Saves trending search results.
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['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.TrendingApi(swagger_client.ApiClient(configuration))
body = swagger_client.TrendingRequest() # TrendingRequest | Trending search request
try:
# Saves trending search results.
api_instance.post_v1_trending_search(body)
except ApiException as e:
print("Exception when calling TrendingApi->post_v1_trending_search: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | TrendingRequest | Trending search request |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]