All URIs are relative to https://api.shop-pro.jp
Method | HTTP request | Description |
---|---|---|
create_script_tag | POST /v1/script_tags.json | スクリプトタグの作成 |
delete_script_tag | DELETE /v1/script_tags/{scriptTagId}.json | スクリプトタグの削除 |
get_script_tag | GET /v1/script_tags/{scriptTagId}.json | スクリプトタグの取得 |
get_script_tags | GET /v1/script_tags.json | スクリプトタグの取得 |
update_script_tag | PUT /v1/script_tags/{scriptTagId}.json | スクリプトタグの更新 |
Object create_script_tag(unknown_base_type)
スクリプトタグの作成
# load the gem
require 'color_me_shop'
# setup authorization
ColorMeShop.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ColorMeShop::ScriptApi.new
unknown_base_type = ColorMeShop::UNKNOWN_BASE_TYPE.new # UNKNOWN_BASE_TYPE | 作成するスクリプトタグの情報
begin
#スクリプトタグの作成
result = api_instance.create_script_tag(unknown_base_type)
p result
rescue ColorMeShop::ApiError => e
puts "Exception when calling ScriptApi->create_script_tag: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
unknown_base_type | UNKNOWN_BASE_TYPE | 作成するスクリプトタグの情報 |
Object
- Content-Type: application/json
- Accept: application/json
delete_script_tag(script_tag_id)
スクリプトタグの削除
# load the gem
require 'color_me_shop'
# setup authorization
ColorMeShop.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ColorMeShop::ScriptApi.new
script_tag_id = 56 # Integer |
begin
#スクリプトタグの削除
api_instance.delete_script_tag(script_tag_id)
rescue ColorMeShop::ApiError => e
puts "Exception when calling ScriptApi->delete_script_tag: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
script_tag_id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Object get_script_tag(script_tag_id)
スクリプトタグの取得
# load the gem
require 'color_me_shop'
# setup authorization
ColorMeShop.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ColorMeShop::ScriptApi.new
script_tag_id = 56 # Integer |
begin
#スクリプトタグの取得
result = api_instance.get_script_tag(script_tag_id)
p result
rescue ColorMeShop::ApiError => e
puts "Exception when calling ScriptApi->get_script_tag: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
script_tag_id | Integer |
Object
- Content-Type: Not defined
- Accept: application/json
Object get_script_tags
スクリプトタグの取得
# load the gem
require 'color_me_shop'
# setup authorization
ColorMeShop.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ColorMeShop::ScriptApi.new
begin
#スクリプトタグの取得
result = api_instance.get_script_tags
p result
rescue ColorMeShop::ApiError => e
puts "Exception when calling ScriptApi->get_script_tags: #{e}"
end
This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object update_script_tag(script_tag_id, unknown_base_type)
スクリプトタグの更新
# load the gem
require 'color_me_shop'
# setup authorization
ColorMeShop.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ColorMeShop::ScriptApi.new
script_tag_id = 56 # Integer |
unknown_base_type = ColorMeShop::UNKNOWN_BASE_TYPE.new # UNKNOWN_BASE_TYPE | 作成するスクリプトタグの情報
begin
#スクリプトタグの更新
result = api_instance.update_script_tag(script_tag_id, unknown_base_type)
p result
rescue ColorMeShop::ApiError => e
puts "Exception when calling ScriptApi->update_script_tag: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
script_tag_id | Integer | ||
unknown_base_type | UNKNOWN_BASE_TYPE | 作成するスクリプトタグの情報 |
Object
- Content-Type: application/json
- Accept: application/json