Module: JPSClient::API::SimpleSearch
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/simple_search.rb
Overview
SimpleSearch 相关 API 自动生成的模块,处理 simple_search 相关接口
Instance Method Summary collapse
-
#get_application(params: {}) ⇒ Hash
Get Application.
-
#get_asset(params: {}) ⇒ Hash
Get Asset.
-
#get_collection(params: {}) ⇒ Hash
Get Collection.
-
#get_idea(params: {}) ⇒ Hash
Get Idea.
-
#get_publisher(params: {}) ⇒ Hash
Get Publisher.
-
#get_publisher_group(params: {}) ⇒ Hash
Get Publisher Group.
-
#get_tag(params: {}) ⇒ Hash
Get Tag.
Instance Method Details
#get_application(params: {}) ⇒ Hash
Get Application
89 90 91 92 93 94 95 96 |
# File 'lib/jpsclient/api/simple_search.rb', line 89 def get_application(params: {}) config = @request_config && @request_config["simple_search_application"] raise JPSClient::ExceptionError, "Missing config for simple_search_application" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_asset(params: {}) ⇒ Hash
Get Asset
76 77 78 79 80 81 82 83 |
# File 'lib/jpsclient/api/simple_search.rb', line 76 def get_asset(params: {}) config = @request_config && @request_config["simple_search_asset"] raise JPSClient::ExceptionError, "Missing config for simple_search_asset" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_collection(params: {}) ⇒ Hash
Get Collection
63 64 65 66 67 68 69 70 |
# File 'lib/jpsclient/api/simple_search.rb', line 63 def get_collection(params: {}) config = @request_config && @request_config["simple_search_collection"] raise JPSClient::ExceptionError, "Missing config for simple_search_collection" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_idea(params: {}) ⇒ Hash
Get Idea
50 51 52 53 54 55 56 57 |
# File 'lib/jpsclient/api/simple_search.rb', line 50 def get_idea(params: {}) config = @request_config && @request_config["simple_search_idea"] raise JPSClient::ExceptionError, "Missing config for simple_search_idea" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_publisher(params: {}) ⇒ Hash
Get Publisher
37 38 39 40 41 42 43 44 |
# File 'lib/jpsclient/api/simple_search.rb', line 37 def get_publisher(params: {}) config = @request_config && @request_config["simple_search_publisher"] raise JPSClient::ExceptionError, "Missing config for simple_search_publisher" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_publisher_group(params: {}) ⇒ Hash
Get Publisher Group
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/simple_search.rb', line 24 def get_publisher_group(params: {}) config = @request_config && @request_config["simple_search_publisher_group"] raise JPSClient::ExceptionError, "Missing config for simple_search_publisher_group" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_tag(params: {}) ⇒ Hash
Get Tag
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/simple_search.rb', line 11 def get_tag(params: {}) config = @request_config && @request_config["simple_search_tag"] raise JPSClient::ExceptionError, "Missing config for simple_search_tag" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |