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    
Size: Mime:
# frozen_string_literal: true

module Kiwi
  module Taskworld
    module Endpoints
      # Task
      module Task
        def task_create(space_id: @space_id,
                        project_id: @project_id,
                        list_id: @list_id,
                        title:, **options)
          params = options.merge(space_id: space_id,
                                 project_id: project_id,
                                 list_id: list_id,
                                 title: title,
                                 access_token: @access_token)
          item = post('/v1/task.create', body: params.to_json)
          item.dig('task').dig('task_id')
        end

        def task_update(space_id: @space_id, task_id:, **options)
          params = options.merge(space_id: space_id,
                                 task_id: task_id,
                                 access_token: @access_token)
          post('/v1/task.update', body: params.to_json)
        end
      end
    end
  end
end