raksul / go-clickup

Clickup go client
MIT License
39 stars 24 forks source link

Update tasks.go - add attachment #44

Closed tkowalski29 closed 1 year ago

tkowalski29 commented 1 year ago
  1. when we receive custom Fields, they can be of string or int type https://clickup.com/api/clickupreference/operation/CreateTask/
  2. this is not in the documentation, but when you ask for a task, e.g. https://api.clickup.com/api/v2/task/:task_id, it will return a collection attachments which is currently not in the struct. Hence the change. I don't know why the documentation doesn't cover it, but it's confirmed by ClickUp support. https://clickup.com/api/clickupreference/operation/GetTask/
a-thug commented 1 year ago

@w-haibara Could you review this PR? 🙇

w-haibara commented 1 year ago

Hi @tkowalski29 san. Thank you for contribution. Could you please write down the purpose of this PR? The description must include at least a summary of the changes and a link to the referenced ClickUp API documentation.

tkowalski29 commented 1 year ago

@w-haibara now description is OK?

w-haibara commented 1 year ago

@tkowalski29 Thanks!