-
Notifications
You must be signed in to change notification settings - Fork 74
Attachments.API
Phips Peter edited this page Jul 11, 2014
·
5 revisions
A wrapper for the Attachments resource
Constructs a resource accessor for Attachments that will use the dispatcher for all requests to the API
Name | Type | Description |
---|---|---|
dispatcher |
Dispatcher | The API dispatcher |
- Source:
-
dispatcher :Dispatcher
-
An instance of the dispatcher. This is usually passed from the client.
- Source:
-
Dispatches a GET request to /attachments/:attachmentId of the API to get information about the attachment.
Name Type Argument Description attachmentId
Number The attachment id
params
Object <optional>
Extra params for the dispatcher
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a GET request to /tasks/:taskId/attachments of the API to get all attachments associated with the task.
Name Type Argument Description taskId
Number The task id
params
Object <optional>
Extra params for the dispatcher
- Source:
The result of the API call
- Type
- Promise