Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SwaggerClient-php

Etsy's Open API provides a simple RESTful interface for various Etsy.com features. The API endpoints are meant to replace Etsy's Open API v2, which is scheduled to end service in 2022.

All of the endpoints are callable and the majority of the API endpoints are now in a beta phase. This means we do not expect to make any breaking changes before our general release. A handful of endpoints are currently interface stubs (labeled “Feedback Only”) and returns a \"501 Not Implemented\" response code when called.

If you'd like to report an issue or provide feedback on the API design, please add an issue in Github.

© 2021-2023 Etsy, Inc. All Rights Reserved. Use of this code is subject to Etsy's API Developer Terms of Use.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getBuyerTaxonomyNodes();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getBuyerTaxonomyNodes: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: api_key$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');$apiInstance = newSwagger\Client\Api\BuyerTaxonomyApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
$taxonomy_id = 56; // int | The unique numeric ID of an Etsy taxonomy node, which is a metadata category for listings organized into the seller taxonomy hierarchy tree. For example, the \"shoes\" taxonomy node (ID: 1429, level: 1) is higher in the hierarchy than \"girls' shoes\" (ID: 1440, level: 2). The taxonomy nodes assigned to a listing support access to specific standardized product scales and properties. For example, listings assigned the taxonomy nodes \"shoes\" or \"girls' shoes\" support access to the \"EU\" shoe size scale with its associated property names and IDs for EU shoe sizes, such as property `value_id`:\"1394\", and `name`:\"38\".try {
$result = $apiInstance->getPropertiesByBuyerTaxonomyId($taxonomy_id);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling BuyerTaxonomyApi->getPropertiesByBuyerTaxonomyId: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
BuyerTaxonomyApigetBuyerTaxonomyNodesGET /v3/application/buyer-taxonomy/nodes
BuyerTaxonomyApigetPropertiesByBuyerTaxonomyIdGET /v3/application/buyer-taxonomy/nodes/{taxonomy_id}/properties
LedgerEntryApigetShopPaymentAccountLedgerEntriesGET /v3/application/shops/{shop_id}/payment-account/ledger-entries
LedgerEntryApigetShopPaymentAccountLedgerEntryGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/{ledger_entry_id}
OtherApipingGET /v3/application/openapi-ping
OtherApitokenScopesPOST /v3/application/scopes
PaymentApigetPaymentAccountLedgerEntryPaymentsGET /v3/application/shops/{shop_id}/payment-account/ledger-entries/payments
PaymentApigetPaymentsGET /v3/application/shops/{shop_id}/payments
PaymentApigetShopPaymentByReceiptIdGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/payments
ReviewApigetReviewsByListingGET /v3/application/listings/{listing_id}/reviews
ReviewApigetReviewsByShopGET /v3/application/shops/{shop_id}/reviews
SellerTaxonomyApigetPropertiesByTaxonomyIdGET /v3/application/seller-taxonomy/nodes/{taxonomy_id}/properties
SellerTaxonomyApigetSellerTaxonomyNodesGET /v3/application/seller-taxonomy/nodes
ShopApifindShopsGET /v3/application/shops
ShopApigetShopGET /v3/application/shops/{shop_id}
ShopApigetShopByOwnerUserIdGET /v3/application/users/{user_id}/shops
ShopApiupdateShopPUT /v3/application/shops/{shop_id}
ShopListingApicreateDraftListingPOST /v3/application/shops/{shop_id}/listings
ShopListingApideleteListingDELETE /v3/application/listings/{listing_id}
ShopListingApideleteListingPropertyDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingApifindAllActiveListingsByShopGET /v3/application/shops/{shop_id}/listings/active
ShopListingApifindAllListingsActiveGET /v3/application/listings/active
ShopListingApigetFeaturedListingsByShopGET /v3/application/shops/{shop_id}/listings/featured
ShopListingApigetListingGET /v3/application/listings/{listing_id}
ShopListingApigetListingPropertiesGET /v3/application/shops/{shop_id}/listings/{listing_id}/properties
ShopListingApigetListingPropertyGET /v3/application/listings/{listing_id}/properties/{property_id}
ShopListingApigetListingsByListingIdsGET /v3/application/listings/batch
ShopListingApigetListingsByShopGET /v3/application/shops/{shop_id}/listings
ShopListingApigetListingsByShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings
ShopListingApigetListingsByShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings
ShopListingApigetListingsByShopSectionIdGET /v3/application/shops/{shop_id}/shop-sections/listings
ShopListingApiupdateListingPATCH /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingDeprecatedPUT /v3/application/shops/{shop_id}/listings/{listing_id}
ShopListingApiupdateListingPropertyPUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id}
ShopListingFileApideleteListingFileDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApigetAllListingFilesGET /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingFileApigetListingFileGET /v3/application/shops/{shop_id}/listings/{listing_id}/files/{listing_file_id}
ShopListingFileApiuploadListingFilePOST /v3/application/shops/{shop_id}/listings/{listing_id}/files
ShopListingImageApideleteListingImageDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageGET /v3/application/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImageDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images/{listing_image_id}
ShopListingImageApigetListingImagesGET /v3/application/listings/{listing_id}/images
ShopListingImageApigetListingImagesDeprecatedGET /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingImageApiuploadListingImagePOST /v3/application/shops/{shop_id}/listings/{listing_id}/images
ShopListingInventoryApigetListingInventoryGET /v3/application/listings/{listing_id}/inventory
ShopListingInventoryApiupdateListingInventoryPUT /v3/application/listings/{listing_id}/inventory
ShopListingOfferingApigetListingOfferingGET /v3/application/listings/{listing_id}/products/{product_id}/offerings/{product_offering_id}
ShopListingProductApigetListingProductGET /v3/application/listings/{listing_id}/inventory/products/{product_id}
ShopListingTranslationApicreateListingTranslationPOST /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApigetListingTranslationGET /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingTranslationApiupdateListingTranslationPUT /v3/application/shops/{shop_id}/listings/{listing_id}/translations/{language}
ShopListingVariationImageApigetListingVariationImagesGET /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVariationImageApiupdateVariationImagesPOST /v3/application/shops/{shop_id}/listings/{listing_id}/variation-images
ShopListingVideoApideleteListingVideoDELETE /v3/application/shops/{shop_id}/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideoGET /v3/application/listings/{listing_id}/videos/{video_id}
ShopListingVideoApigetListingVideosGET /v3/application/listings/{listing_id}/videos
ShopListingVideoApiuploadListingVideoPOST /v3/application/shops/{shop_id}/listings/{listing_id}/videos
ShopProductionPartnerApigetShopProductionPartnersGET /v3/application/shops/{shop_id}/production-partners
ShopReceiptApicreateReceiptShipmentPOST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking
ShopReceiptApigetShopReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptApigetShopReceiptsGET /v3/application/shops/{shop_id}/receipts
ShopReceiptApiupdateShopReceiptPUT /v3/application/shops/{shop_id}/receipts/{receipt_id}
ShopReceiptTransactionsApigetShopReceiptTransactionGET /v3/application/shops/{shop_id}/transactions/{transaction_id}
ShopReceiptTransactionsApigetShopReceiptTransactionsByListingGET /v3/application/shops/{shop_id}/listings/{listing_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByReceiptGET /v3/application/shops/{shop_id}/receipts/{receipt_id}/transactions
ShopReceiptTransactionsApigetShopReceiptTransactionsByShopGET /v3/application/shops/{shop_id}/transactions
ShopReturnPolicyApiconsolidateShopReturnPoliciesPOST /v3/application/shops/{shop_id}/policies/return/consolidate
ShopReturnPolicyApicreateShopReturnPolicyPOST /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApideleteShopReturnPolicyDELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApigetShopReturnPoliciesGET /v3/application/shops/{shop_id}/policies/return
ShopReturnPolicyApigetShopReturnPolicyGET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopReturnPolicyApiupdateShopReturnPolicyPUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
ShopSectionApicreateShopSectionPOST /v3/application/shops/{shop_id}/sections
ShopSectionApideleteShopSectionDELETE /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionGET /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopSectionApigetShopSectionsGET /v3/application/shops/{shop_id}/sections
ShopSectionApiupdateShopSectionPUT /v3/application/shops/{shop_id}/sections/{shop_section_id}
ShopShippingProfileApicreateShopShippingProfilePOST /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApicreateShopShippingProfileDestinationPOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApicreateShopShippingProfileUpgradePOST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApideleteShopShippingProfileDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApideleteShopShippingProfileDestinationDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApideleteShopShippingProfileUpgradeDELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
ShopShippingProfileApigetShippingCarriersGET /v3/application/shipping-carriers
ShopShippingProfileApigetShopShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApigetShopShippingProfileDestinationsByShippingProfileGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations
ShopShippingProfileApigetShopShippingProfileUpgradesGET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades
ShopShippingProfileApigetShopShippingProfilesGET /v3/application/shops/{shop_id}/shipping-profiles
ShopShippingProfileApiupdateShopShippingProfilePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}
ShopShippingProfileApiupdateShopShippingProfileDestinationPUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id}
ShopShippingProfileApiupdateShopShippingProfileUpgradePUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id}
UserApigetMeGET /v3/application/users/me
UserApigetUserGET /v3/application/users/{user_id}
UserAddressApideleteUserAddressDELETE /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressGET /v3/application/user/addresses/{user_address_id}
UserAddressApigetUserAddressesGET /v3/application/user/addresses

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.etsy.com/oauth/connect
  • Scopes:
  • address_r: see billing and shipping addresses
  • address_w: update billing and shipping addresses
  • billing_r: see all billing statement data
  • cart_r: read shopping carts
  • cart_w: add/remove from shopping carts
  • email_r: Read a member's email address
  • favorites_r: see private favorites
  • favorites_w: add/remove favorites
  • feedback_r: see purchase info in feedback
  • listings_d: delete listings
  • listings_r: see all listings (including expired etc)
  • listings_w: create/edit listings
  • profile_r: see all profile data
  • profile_w: update user profile, avatar, etc
  • recommend_r: see recommended listings
  • recommend_w: accept/reject recommended listings
  • shops_r: see private shop info
  • shops_w: update shop
  • transactions_r: see all checkout/payment data
  • transactions_w: update receipts

Author

developers@etsy.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages