All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| delete_listing_video | DELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id} | |
| get_listing_video | GET /v3/application/listings/{listing_id}/videos/{video_id} | |
| get_listing_videos | GET /v3/application/listings/{listing_id}/videos | |
| upload_listing_video | POST /v3/application/shops/{shop_id}/listings/{listing_id}/videos |
delete_listing_video(shop_id, listing_id, video_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::ShopListingVideoApi.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.
video_id = 56 # Integer | The unique ID of a video associated with a listing.
begin
api_instance.delete_listing_video(shop_id, listing_id, video_id)
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->delete_listing_video: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_listing_video_with_http_info(shop_id, listing_id, video_id)
begin
data, status_code, headers = api_instance.delete_listing_video_with_http_info(shop_id, listing_id, video_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->delete_listing_video_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. | |
| video_id | Integer | The unique ID of a video associated with a listing. |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_listing_video(video_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::ShopListingVideoApi.new
video_id = 56 # Integer | The unique ID of a video associated with a listing.
listing_id = 56 # Integer | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
begin
result = api_instance.get_listing_video(video_id, listing_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->get_listing_video: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_video_with_http_info(video_id, listing_id)
begin
data, status_code, headers = api_instance.get_listing_video_with_http_info(video_id, listing_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingVideo>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->get_listing_video_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| video_id | Integer | The unique ID of a video associated with a listing. | |
| listing_id | Integer | The numeric ID for the listing associated to this transaction. |
- Content-Type: Not defined
- Accept: application/json
get_listing_videos(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::ShopListingVideoApi.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_videos(listing_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->get_listing_videos: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_listing_videos_with_http_info(listing_id)
begin
data, status_code, headers = api_instance.get_listing_videos_with_http_info(listing_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingVideos>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->get_listing_videos_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
upload_listing_video(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::ShopListingVideoApi.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 = {
video_id: 56, # Integer | The unique ID of a video associated with a listing.
video: File.new('/path/to/some/file'), # File | A video file to upload.
name: 'name_example' # String | The file name string for the video to upload.
}
begin
result = api_instance.upload_listing_video(shop_id, listing_id, opts)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->upload_listing_video: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> upload_listing_video_with_http_info(shop_id, listing_id, opts)
begin
data, status_code, headers = api_instance.upload_listing_video_with_http_info(shop_id, listing_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListingVideo>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopListingVideoApi->upload_listing_video_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. | |
| video_id | Integer | The unique ID of a video associated with a listing. | [optional] |
| video | File | A video file to upload. | [optional] |
| name | String | The file name string for the video to upload. | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json