Sha256: d2d9f7986d316484e16f97ae00ed2084548b83964e3a096d3bdefc87f1c3ff14

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

#!/usr/bin/env ruby
# typed: false
# frozen_string_literal: true

require 'researchable-freedcamp-api'

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start
#
# Researchable::FreedcampApi::ListTasks.run!
ENV['USE_CACHE'] = 'true'
puts Researchable::FreedcampApi::ListTasks.run!(task_id: 44_509_132).to_json

progress = 2
task = Researchable::FreedcampApi::Structs::Task.new(
  project_id: '3033558',
  title: "hoi #{progress}",
  status: progress,
  status_title: 'Ready for review'
)
puts Researchable::FreedcampApi::UpdateTask.run!(task_id: 44_509_132, task: task)

comment = Researchable::FreedcampApi::Structs::Comment.new(
  item_id: '44509132',
  app_id: "2" ,
  description: "this is a test"
)
puts Researchable::FreedcampApi::CreateComment.run!(comment: comment)

# task = Researchable::FreedcampApi::Structs::Task.new(
# project_id: '3033558',
# title: 'hoi',
# task_group_id: '4999322',
# due_date: '2022-01-31',
# assigned_ids: ['1018169']
# )
# Researchable::FreedcampApi::CreateTask.run!(task: task)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
researchable-freedcamp-api-0.1.8 test.rb
researchable-freedcamp-api-0.1.7 test.rb
researchable-freedcamp-api-0.1.6 test.rb
researchable-freedcamp-api-0.1.5 test.rb
researchable-freedcamp-api-0.1.4 test.rb