Module: ChatWork::MyTask

Extended by:
EntityMethods
Defined in:
lib/chatwork/my_task.rb

Class Method Summary collapse

Class Method Details

.get(assigned_by_account_id: nil, status: nil) ⇒ Array<Hashie::Mash>

Get the list of all unfinished tasks

(*This method returns up to 100 entries. We are planning to implement pagination to support larger number of data retrieval)

Examples:

response format

[
  {
    "task_id": 3,
    "room": {
      "room_id": 5,
      "name": "Group Chat Name",
      "icon_path": "https://example.com/ico_group.png"
    },
    "assigned_by_account": {
      "account_id": 456,
      "name": "Anna",
      "avatar_image_url": "https://example.com/def.png"
    },
    "message_id": "13",
    "body": "buy milk",
    "limit_time": 1384354799,
    "status": "open"
  }
]

See Also:



37
38
39
# File 'lib/chatwork/my_task.rb', line 37

def self.get(assigned_by_account_id: nil, status: nil)
  _get("/my/tasks", assigned_by_account_id: , status: status)
end