Module: JPSClient::API::ExperienceCategory

Defined in:
lib/jpsclient/api/archived_outdated/experience_category.rb

Overview

ExperienceCategory 相关 API 自动生成的模块,处理 experience_category 相关接口

Instance Method Summary collapse

Instance Method Details

#create_experience_categories(params: {}) ⇒ Hash

Create Experience Categories

Parameters:

  • params (Hash) (defaults to: {})

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



51
52
53
54
55
56
57
58
# File 'lib/jpsclient/api/archived_outdated/experience_category.rb', line 51

def create_experience_categories(params: {})
  config = @request_config && @request_config["experience_category_experience_categories"]
  raise JPSClient::ExceptionError, "Missing config for experience_category_experience_categories" unless config && config["url"]

  path = config["url"]

  return request_with_auth(:post, path, body: params)
end

#create_experience_category(params: {}) ⇒ Hash

Create Experience Category

Parameters:

  • params (Hash) (defaults to: {})

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



25
26
27
28
29
30
31
32
# File 'lib/jpsclient/api/archived_outdated/experience_category.rb', line 25

def create_experience_category(params: {})
  config = @request_config && @request_config["experience_category_experience_category"]
  raise JPSClient::ExceptionError, "Missing config for experience_category_experience_category" unless config && config["url"]

  path = config["url"]

  return request_with_auth(:post, path, body: params)
end

#create_weights(params: {}) ⇒ Hash

Create Weights

Parameters:

  • params (Hash) (defaults to: {})

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



38
39
40
41
42
43
44
45
# File 'lib/jpsclient/api/archived_outdated/experience_category.rb', line 38

def create_weights(params: {})
  config = @request_config && @request_config["experience_category_weights"]
  raise JPSClient::ExceptionError, "Missing config for experience_category_weights" unless config && config["url"]

  path = config["url"]

  return request_with_auth(:post, path, body: params)
end

#update_experience_category(categoryId:, params: {}) ⇒ Hash

Update Experience Category

Parameters:

  • params (Hash) (defaults to: {})

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



11
12
13
14
15
16
17
18
19
# File 'lib/jpsclient/api/archived_outdated/experience_category.rb', line 11

def update_experience_category(categoryId:, params: {})
  config = @request_config && @request_config["experience_category_experience_category"]
  raise JPSClient::ExceptionError, "Missing config for experience_category_experience_category" unless config && config["url"]

  path = config["url"]
  path = path.gsub("{categoryId}", categoryId.to_s)

  return request_with_auth(:put, path, body: params)
end