How do I Get all attachments for a project and task?

I want to get all the attachments for a project and task via api.