All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| ping | GET /v3/application/openapi-ping | |
| token_scopes | POST /v3/application/scopes |
ping
General ReleaseReport bug
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::OtherApi.new
begin
result = api_instance.ping
p result
rescue EtsyApi::ApiError => e
puts "Error when calling OtherApi->ping: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> ping_with_http_info
begin
data, status_code, headers = api_instance.ping_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <Pong>
rescue EtsyApi::ApiError => e
puts "Error when calling OtherApi->ping_with_http_info: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Object token_scopes(token)
General ReleaseReport bug
This endpoint is ready for production use.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
end
api_instance = EtsyApi::OtherApi.new
token = 'token_example' # String |
begin
result = api_instance.token_scopes(token)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling OtherApi->token_scopes: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> token_scopes_with_http_info(token)
begin
data, status_code, headers = api_instance.token_scopes_with_http_info(token)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue EtsyApi::ApiError => e
puts "Error when calling OtherApi->token_scopes_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| token | String |
Object
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json