Skip to content

Latest commit

 

History

History
113 lines (78 loc) · 3.27 KB

TrendingApi.md

File metadata and controls

113 lines (78 loc) · 3.27 KB

swagger_client.TrendingApi

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.

get_v1_trending_search

list[TrendingResult] get_v1_trending_search()

Gets trending search results.

Gets trending search results.

Example

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)

Parameters

This endpoint does not need any parameter.

Return type

list[TrendingResult]

Authorization

api_key

HTTP request headers

  • 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

post_v1_trending_search(body)

Saves trending search results.

Saves trending search results.

Example

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)

Parameters

Name Type Description Notes
body TrendingRequest Trending search request

Return type

void (empty response body)

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]