Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 2.3 KB

File metadata and controls

67 lines (48 loc) · 2.3 KB

floriday_supplier_client.MediaApi

All URIs are relative to https://api.staging.floriday.io/suppliers-api-2024v1

Method HTTP request Description
add_image POST /media catalog:write - rate limit: 2.0 per second - burst limit: 200 - Uploads an image.

add_image

MediaReference add_image(image)

catalog:write - rate limit: 2.0 per second - burst limit: 200 - Uploads an image.

Successfully posted images can be accessed with the url: https://image.floriday.io/mediaId.jpg

Example

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

# Configure API key authorization: JWT Token
configuration = floriday_supplier_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'
# Configure API key authorization: X-Api-Key
configuration = floriday_supplier_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 = floriday_supplier_client.MediaApi(floriday_supplier_client.ApiClient(configuration))
image = 'image_example' # str | 

try:
    # catalog:write - rate limit: 2.0 per second - burst limit: 200 - Uploads an image.
    api_response = api_instance.add_image(image)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MediaApi->add_image: %s\n" % e)

Parameters

Name Type Description Notes
image str

Return type

MediaReference

Authorization

[JWT Token](../README.md#JWT Token), X-Api-Key

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: text/plain, application/json, text/json

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