Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 2.81 KB

ShopProductionPartnerApi.md

File metadata and controls

82 lines (54 loc) · 2.81 KB

EtsyApi::ShopProductionPartnerApi

All URIs are relative to https://openapi.etsy.com

Method HTTP request Description
get_shop_production_partners GET /v3/application/shops/{shop_id}/production-partners

get_shop_production_partners

get_shop_production_partners(shop_id)

General ReleaseReport bug

This endpoint is ready for production use.

Retrieves a list of production partners available in the specific Etsy shop identified by its shop ID.

Examples

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::ShopProductionPartnerApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.

begin
  
  result = api_instance.get_shop_production_partners(shop_id)
  p result
rescue EtsyApi::ApiError => e
  puts "Error when calling ShopProductionPartnerApi->get_shop_production_partners: #{e}"
end

Using the get_shop_production_partners_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_shop_production_partners_with_http_info(shop_id)

begin
  
  data, status_code, headers = api_instance.get_shop_production_partners_with_http_info(shop_id)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ShopProductionPartners>
rescue EtsyApi::ApiError => e
  puts "Error when calling ShopProductionPartnerApi->get_shop_production_partners_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
shop_id Integer The unique positive non-zero numeric ID for an Etsy Shop.

Return type

ShopProductionPartners

Authorization

api_key, oauth2

HTTP request headers

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