Skip to content

Latest commit

 

History

History
106 lines (74 loc) · 2.69 KB

File metadata and controls

106 lines (74 loc) · 2.69 KB

shutterstock_api.TestApi

All URIs are relative to https://api.shutterstock.com

Method HTTP request Description
echo GET /v2/test Echo text
validate GET /v2/test/validate Validate input

echo

TestEcho echo(text=text)

Echo text

Example

from __future__ import print_function
import time
import shutterstock_api
from shutterstock_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = shutterstock_api.TestApi()
text = 'ok' # str | Text to echo (optional) (default to ok)

try:
    # Echo text
    api_response = api_instance.echo(text=text)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TestApi->echo: %s\n" % e)

Parameters

Name Type Description Notes
text str Text to echo [optional] [default to ok]

Return type

TestEcho

Authorization

No authorization required

HTTP request headers

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

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

validate

TestValidate validate(id, tag=tag, user_agent=user_agent)

Validate input

Example

from __future__ import print_function
import time
import shutterstock_api
from shutterstock_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = shutterstock_api.TestApi()
id = 123 # int | Integer ID
tag = ['tag_example'] # list[str] | List of tags (optional)
user_agent = 'user_agent_example' # str | User agent (optional)

try:
    # Validate input
    api_response = api_instance.validate(id, tag=tag, user_agent=user_agent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TestApi->validate: %s\n" % e)

Parameters

Name Type Description Notes
id int Integer ID
tag list[str] List of tags [optional]
user_agent str User agent [optional]

Return type

TestValidate

Authorization

No authorization required

HTTP request headers

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

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