All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| create_shop_section | POST /v3/application/shops/{shop_id}/sections | |
| delete_shop_section | DELETE /v3/application/shops/{shop_id}/sections/{shop_section_id} | |
| get_shop_section | GET /v3/application/shops/{shop_id}/sections/{shop_section_id} | |
| get_shop_sections | GET /v3/application/shops/{shop_id}/sections | |
| update_shop_section | PUT /v3/application/shops/{shop_id}/sections/{shop_section_id} |
create_shop_section(shop_id, title)
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::ShopSectionApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
title = 'title_example' # String | The title string for a shop section.
begin
result = api_instance.create_shop_section(shop_id, title)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->create_shop_section: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_shop_section_with_http_info(shop_id, title)
begin
data, status_code, headers = api_instance.create_shop_section_with_http_info(shop_id, title)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopSection>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->create_shop_section_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| title | String | The title string for a shop section. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
delete_shop_section(shop_id, shop_section_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::ShopSectionApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
shop_section_id = 56 # Integer | The numeric ID of a section in a specific Etsy shop.
begin
api_instance.delete_shop_section(shop_id, shop_section_id)
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->delete_shop_section: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_shop_section_with_http_info(shop_id, shop_section_id)
begin
data, status_code, headers = api_instance.delete_shop_section_with_http_info(shop_id, shop_section_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->delete_shop_section_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| shop_section_id | Integer | The numeric ID of a section in a specific Etsy shop. |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_shop_section(shop_id, shop_section_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::ShopSectionApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
shop_section_id = 56 # Integer | The numeric ID of a section in a specific Etsy shop.
begin
result = api_instance.get_shop_section(shop_id, shop_section_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->get_shop_section: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_shop_section_with_http_info(shop_id, shop_section_id)
begin
data, status_code, headers = api_instance.get_shop_section_with_http_info(shop_id, shop_section_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopSection>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->get_shop_section_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| shop_section_id | Integer | The numeric ID of a section in a specific Etsy shop. |
- Content-Type: Not defined
- Accept: application/json
get_shop_sections(shop_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::ShopSectionApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
begin
result = api_instance.get_shop_sections(shop_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->get_shop_sections: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_shop_sections_with_http_info(shop_id)
begin
data, status_code, headers = api_instance.get_shop_sections_with_http_info(shop_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopSections>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->get_shop_sections_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. |
- Content-Type: Not defined
- Accept: application/json
update_shop_section(shop_id, shop_section_id, title)
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::ShopSectionApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
shop_section_id = 56 # Integer | The numeric ID of a section in a specific Etsy shop.
title = 'title_example' # String | The title string for a shop section.
begin
result = api_instance.update_shop_section(shop_id, shop_section_id, title)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->update_shop_section: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_shop_section_with_http_info(shop_id, shop_section_id, title)
begin
data, status_code, headers = api_instance.update_shop_section_with_http_info(shop_id, shop_section_id, title)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopSection>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopSectionApi->update_shop_section_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| shop_section_id | Integer | The numeric ID of a section in a specific Etsy shop. | |
| title | String | The title string for a shop section. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json