Sha256: 91c949d41ec93a60a55a09ad261842edac16a1f80e5832dbd7bab8fa2700c278

Contents?: true

Size: 1.84 KB

Versions: 6

Compression:

Stored size: 1.84 KB

Contents

module Agilix
  module Buzz
    module Commands
      module Library

        # api.get_library_page domainid: 57031, pageid: "230433194a1e4699bfa576aa6e6743c6"
        def get_library_page(options = {})
          options = argument_cleaner(required_params: %i( domainid pageid ), optional_params: %i( ), options: options )
          authenticated_get cmd: "getlibrarypage", **options
        end

        # api.list_library_pages domainid: 57031
        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

        # 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='https://www.google.com'></iframe>"
        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

        # # api.search_library_pages domainid: 57031, path: "banner.css"
        # def search_library_pages(options = {})
        #   options = argument_cleaner(required_params: %i( domainid ), optional_params: %i( libraryid limit select q ), options: options )
        #   authenticated_get cmd: "searchlibrarypages", **options
        # end

      end
    end
  end
end

# createlibrarypagebookmark
# deletelibrarypage
# deletelibrarypagebookmark
# listlibrarypagebookmarks
# populatelibrarypageedits
# populatelibrarypageedits
# reindexlibrarypages
# updatelibrarypage

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
strongmind-agilix-buzz-client-0.8.4 lib/agilix/buzz/commands/library.rb
strongmind-agilix-buzz-client-0.8.3 lib/agilix/buzz/commands/library.rb
agilix-0.8.2 lib/agilix/buzz/commands/library.rb
agilix-0.8.1 lib/agilix/buzz/commands/library.rb
agilix-0.8.0 lib/agilix/buzz/commands/library.rb
agilix-0.7.0 lib/agilix/buzz/commands/library.rb