All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| delete_listing_image | DELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id} | |
| get_listing_image | GET /v3/application/listings/{listing_id}/images/{listing_image_id} | |
| get_listing_image_deprecated | GET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id} | |
| get_listing_images | GET /v3/application/listings/{listing_id}/images | |
| get_listing_images_deprecated | GET /v3/application/shops/{shop_id}/listings/{listing_id}/images | |
| upload_listing_image | POST /v3/application/shops/{shop_id}/listings/{listing_id}/images |
delete_listing_image(shop_id, listing_id, listing_image_id)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopListingImageApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
listing_image_id = 56 # Integer | The numeric ID of the primary [listing image](/documentation/reference#tag/ShopListing-Image) for this transaction.
begin
api_instance.delete_listing_image(shop_id, listing_id, listing_image_id)
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->delete_listing_image: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_listing_image_with_http_info(shop_id, listing_id, listing_image_id)
begin
data, status_code, headers = api_instance.delete_listing_image_with_http_info(shop_id, listing_id, listing_image_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->delete_listing_image_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| listing_id | Integer | The numeric ID for the listing associated to this transaction. | |
| listing_image_id | Integer | The numeric ID of the primary listing image for this transaction. |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_listing_image(listing_id, listing_image_id)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::ShopListingImageApi.new
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
listing_image_id = 56 # Integer | The numeric ID of the primary [listing image](/documentation/reference#tag/ShopListing-Image) for this transaction.
begin
result = api_instance.get_listing_image(listing_id, listing_image_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_image: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_image_with_http_info(listing_id, listing_image_id)
begin
data, status_code, headers = api_instance.get_listing_image_with_http_info(listing_id, listing_image_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingImage>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_image_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| listing_id | Integer | The numeric ID for the listing associated to this transaction. | |
| listing_image_id | Integer | The numeric ID of the primary listing image for this transaction. |
- Content-Type: Not defined
- Accept: application/json
get_listing_image_deprecated(shop_id, listing_id, listing_image_id)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::ShopListingImageApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
listing_image_id = 56 # Integer | The numeric ID of the primary [listing image](/documentation/reference#tag/ShopListing-Image) for this transaction.
begin
result = api_instance.get_listing_image_deprecated(shop_id, listing_id, listing_image_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_image_deprecated: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_image_deprecated_with_http_info(shop_id, listing_id, listing_image_id)
begin
data, status_code, headers = api_instance.get_listing_image_deprecated_with_http_info(shop_id, listing_id, listing_image_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingImage>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_image_deprecated_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| listing_id | Integer | The numeric ID for the listing associated to this transaction. | |
| listing_image_id | Integer | The numeric ID of the primary listing image for this transaction. |
- Content-Type: Not defined
- Accept: application/json
get_listing_images(listing_id)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::ShopListingImageApi.new
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
begin
result = api_instance.get_listing_images(listing_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_images: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_images_with_http_info(listing_id)
begin
data, status_code, headers = api_instance.get_listing_images_with_http_info(listing_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingImages>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_images_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| listing_id | Integer | The numeric ID for the listing associated to this transaction. |
- Content-Type: Not defined
- Accept: application/json
get_listing_images_deprecated(shop_id, listing_id)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::ShopListingImageApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
begin
result = api_instance.get_listing_images_deprecated(shop_id, listing_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_images_deprecated: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_images_deprecated_with_http_info(shop_id, listing_id)
begin
data, status_code, headers = api_instance.get_listing_images_deprecated_with_http_info(shop_id, listing_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingImages>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->get_listing_images_deprecated_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| listing_id | Integer | The numeric ID for the listing associated to this transaction. |
- Content-Type: Not defined
- Accept: application/json
upload_listing_image(shop_id, listing_id, opts)
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopListingImageApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
opts = {
image: File.new('/path/to/some/file'), # File | The file name string of a file to upload
listing_image_id: 56, # Integer | The numeric ID of the primary [listing image](/documentation/reference#tag/ShopListing-Image) for this transaction.
rank: 56, # Integer | The positive non-zero numeric position in the images displayed in a listing, with rank 1 images appearing in the left-most position in a listing.
overwrite: true, # Boolean | When true, this request replaces the existing image at a given rank.
is_watermarked: true, # Boolean | When true, indicates that the uploaded image has a watermark.
alt_text: 'alt_text_example' # String | Alt text for the listing image.
}
begin
result = api_instance.upload_listing_image(shop_id, listing_id, opts)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->upload_listing_image: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> upload_listing_image_with_http_info(shop_id, listing_id, opts)
begin
data, status_code, headers = api_instance.upload_listing_image_with_http_info(shop_id, listing_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingImage>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingImageApi->upload_listing_image_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| listing_id | Integer | The numeric ID for the listing associated to this transaction. | |
| image | File | The file name string of a file to upload | [optional] |
| listing_image_id | Integer | The numeric ID of the primary listing image for this transaction. | [optional] |
| rank | Integer | The positive non-zero numeric position in the images displayed in a listing, with rank 1 images appearing in the left-most position in a listing. | [optional][default to 1] |
| overwrite | Boolean | When true, this request replaces the existing image at a given rank. | [optional][default to false] |
| is_watermarked | Boolean | When true, indicates that the uploaded image has a watermark. | [optional][default to false] |
| alt_text | String | Alt text for the listing image. | [optional][default to ''] |
- Content-Type: multipart/form-data
- Accept: application/json