Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
kiwi-taskworld / lib / kiwi / taskworld / endpoints / message.rb
Size: Mime:
# frozen_string_literal: true

module Kiwi
  module Taskworld
    module Endpoints
      # Taskworld Message
      module Message
        def message_create(space_id: @space_id,
                           parent_id:,
                           parent_type:,
                           body:,
                           **options)
          params = options.merge(space_id: space_id,
                                 parent_id: parent_id,
                                 parent_type: parent_type,
                                 body: body,
                                 access_token: @access_token)

          post('/v1/message.create', body: params.to_json)
        end

        def message_get_all(space_id: @space_id,
                            parent_id:,
                            parent_type:,
                            **options)
          params = options.merge(space_id: space_id,
                                 parent_id: parent_id,
                                 parent_type: parent_type,
                                 access_token: @access_token)

          post('/v1/message.get-all', body: params.to_json)
        end
      end
    end
  end
end