activecollab/activecollab-feather-sdk

Attachments are not working

cgcullen opened this issue · 0 comments

Attachments are not working for me. I may be doing something wrong, but I'm getting validation errors as if I'm not sending any data.

I'm using the following:

	    $response = $this->client->post(
	    	'projects/'.$project.'/tasks',
		    [
			    'name' => $task,
			    'body' => '<a href="'. env('APP_URL').'/ticket/'.$id .'" target="_blank">'.env('APP_URL').'/ticket/'.$id .'</a><br><br>'.$body,
			    'assignee_id' => $person
		    ],
		    $attachments
	    );

It works fine if I leave off the attachments, but when I get the validation errors:
Task summary is required
Value of task_list_id field is required
Please select a project

Am I doing something wrong?