File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,40 @@ public function addTaskAttachment($taskId, $file)
172172 ]);
173173 }
174174
175+ /**
176+ * getAllAttachments
177+ *
178+ * Gets a List of all available Attachments.
179+ *
180+ * @param $taskId
181+ *
182+ * @return null|string
183+ * @author Olly Warren, Big Bite Creative
184+ * @package Torann\LaravelAsana
185+ * @version 1.0
186+ */
187+ public function getAllAttachments ($ taskId )
188+ {
189+ return $ this ->curl ->get ("tasks/ {$ taskId }/attachments " );
190+ }
191+
192+ /**
193+ * getSingleAttachment
194+ *
195+ * Gets a Single Attachment based on a file id.
196+ *
197+ * @param $attachmentId
198+ *
199+ * @return null|string
200+ * @author Olly Warren, Big Bite Creative
201+ * @package Torann\LaravelAsana
202+ * @version 1.0
203+ */
204+ public function getSingleAttachment ($ attachmentId )
205+ {
206+ return $ this ->curl ->get ("attachments/ {$ attachmentId }" );
207+ }
208+
175209 /**
176210 * Returns the projects associated to the task.
177211 *
You can’t perform that action at this time.
0 commit comments