class Uiza::Category
Constants
- OBJECT_API_DESCRIPTION_LINK
- OBJECT_API_PATH
Public Class Methods
create_relation(params)
click to toggle source
# File lib/uiza/category.rb, line 21 def create_relation params url = "https://#{Uiza.workspace_api_domain}/api/public/#{Uiza.api_version}/media/entity/related/metadata" method = :post headers = {"Authorization" => Uiza.authorization} description_link = OBJECT_API_DESCRIPTION_LINK[:create_relation] params["appId"] = Uiza.app_id uiza_client = UizaClient.new url, method, headers, params, description_link uiza_client.execute_request end
delete_relation(params)
click to toggle source
# File lib/uiza/category.rb, line 32 def delete_relation params url = "https://#{Uiza.workspace_api_domain}/api/public/#{Uiza.api_version}/media/entity/related/metadata" method = :post headers = {"Authorization" => Uiza.authorization} description_link = OBJECT_API_DESCRIPTION_LINK[:delete_relation] params["appId"] = Uiza.app_id uiza_client = UizaClient.new url, method, headers, params, description_link uiza_client.execute_request end