Module: Agilix::Buzz::Commands::Library

Included in:
Api
Defined in:
lib/agilix/buzz/commands/library.rb

Instance Method Summary collapse

Instance Method Details

#create_library_page(options = {}) ⇒ Object

api.create_library_page domainid: 57031, libraryid: ‘testlib’, title: “Greatest ever”, description: “This really is the best”, body: “<h1>Check it out!</h1><iframe src=‘www.google.com’></iframe>”



19
20
21
22
23
# File 'lib/agilix/buzz/commands/library.rb', line 19

def create_library_page(options = {})
  optional_params = argument_cleaner(required_params: %i( domainid libraryid title description  ), optional_params: %i( body id name 'meta-featured' 'meta-type' 'meta-category' ), options: options )
  # authenticated_query_post cmd: "putresource", **options
  authenticated_post cmd: "createlibrarypage", **options
end

#get_library_page(options = {}) ⇒ Object

api.get_library_page domainid: 57031, pageid: “230433194a1e4699bfa576aa6e6743c6”



7
8
9
10
# File 'lib/agilix/buzz/commands/library.rb', line 7

def get_library_page(options = {})
  options = argument_cleaner(required_params: %i( domainid pageid ), optional_params: %i( ), options: options )
  authenticated_get cmd: "getlibrarypage", **options
end

#list_library_pages(options = {}) ⇒ Object

api.list_library_pages domainid: 57031



13
14
15
16
# File 'lib/agilix/buzz/commands/library.rb', line 13

def list_library_pages(options = {})
  options = argument_cleaner(required_params: %i(  domainid ), optional_params: %i( libraryid limit select ), options: options )
  authenticated_get cmd: "listlibrarypages", **options
end