Module: JPSClient::API::CustomApplicationWeb

Included in:
Client
Defined in:
lib/jpsclient/api/custom_application_web.rb

Overview

CustomApplicationWeb 相关 API 自动生成的模块,处理 custom_application_web 相关接口

Instance Method Summary collapse

Instance Method Details

#create_html_website(params: {}) ⇒ Hash

Create Html Website

Parameters:

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

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



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

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

  path = config["url"]

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

#get_all_websites(params: {}) ⇒ Hash

Get All Websites

Parameters:

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

    请求参数

Returns:

  • (Hash)

    API响应

Raises:



24
25
26
27
28
29
30
31
# File 'lib/jpsclient/api/custom_application_web.rb', line 24

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

  path = config["url"]

  return request_with_auth(:get, path, params: params)
end