All URIs are relative to https://openapi.etsy.com
Method | HTTP request | Description |
---|---|---|
findShops | GET /v3/application/shops | |
getShop | GET /v3/application/shops/{shop_id} | |
getShopByOwnerUserId | GET /v3/application/users/{user_id}/shops | |
updateShop | PUT /v3/application/shops/{shop_id} |
\Swagger\Client\Model\Shops findShops($shop_name, $limit, $offset)
This endpoint is ready for production use.
<?php
require_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 = new Swagger\Client\Api\ShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_name = "shop_name_example"; // string | The shop's name string.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
try {
$result = $apiInstance->findShops($shop_name, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopApi->findShops: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_name | string | The shop's name string. | |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Shop getShop($shop_id)
This endpoint is ready for production use.
<?php
require_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 = new Swagger\Client\Api\ShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
try {
$result = $apiInstance->getShop($shop_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopApi->getShop: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Shop getShopByOwnerUserId($user_id)
This endpoint is ready for production use.
<?php
require_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 = new Swagger\Client\Api\ShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$user_id = 56; // int | The numeric user ID of the [user](/documentation/reference#tag/User) who owns this shop.
try {
$result = $apiInstance->getShopByOwnerUserId($user_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopApi->getShopByOwnerUserId: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
user_id | int | The numeric user ID of the user who owns this shop. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Shop updateShop($shop_id, $title, $announcement, $sale_message, $digital_sale_message, $policy_additional)
This endpoint is ready for production use.
<?php
require_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');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$title = "title_example"; // string |
$announcement = "announcement_example"; // string |
$sale_message = "sale_message_example"; // string |
$digital_sale_message = "digital_sale_message_example"; // string |
$policy_additional = "policy_additional_example"; // string |
try {
$result = $apiInstance->updateShop($shop_id, $title, $announcement, $sale_message, $digital_sale_message, $policy_additional);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopApi->updateShop: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
title | string | [optional] | |
announcement | string | [optional] | |
sale_message | string | [optional] | |
digital_sale_message | string | [optional] | |
policy_additional | string | [optional] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]