Class: SearchImagesCreative

Inherits:
RequestBase show all
Defined in:
lib/Search/SearchImagesCreative.rb

Constant Summary collapse

QUERY_PARAM_NAMES =
["age_of_people","artists","collection_codes","collections_filter_type","color","compositions","embed_content_only","ethnicity","exclude_nudity","fields","file_types",
"graphical_styles","keyword_ids","minimum_size","number_of_people","orientations","page","page_size","phrase","prestige_content_only","product_types",
"sort_order"]

Instance Attribute Summary

Attributes inherited from RequestBase

#headers, #http_helper, #query_params

Instance Method Summary collapse

Methods inherited from RequestBase

#with_accept_language, #with_custom_header, #with_custom_parameter

Constructor Details

#initialize(api_key, access_token) ⇒ SearchImagesCreative

Returns a new instance of SearchImagesCreative.



9
10
11
12
# File 'lib/Search/SearchImagesCreative.rb', line 9

def initialize(api_key, access_token)
	super
	@api_route = "/v3/search/images/creative"
end

Instance Method Details

#executeObject



21
22
23
# File 'lib/Search/SearchImagesCreative.rb', line 21

def execute
	return @http_helper.get(@api_route, @query_params, @headers)			
end