I just started working with the API using this documentation, and I'm having trouble uploading files. I get no response from the api call to upload-files. I've tried with multiple file types with no success. Here is my API call:
$client = new \ActiveCollab\SDK\Client($token);
try {
$response = $client->post('upload-files',[
[
'test-file.txt',
'text\/plain'
]
]);
echo $response->getBody();
} catch(AppException $e) {
print $e->getMessage() . '<br><br>';
}
According to the documentation I should receive a response containing a file upload code, but I receive no response, not even a Validation Error. It doesn't throw an exception either. I've had no problems with any other requests so I don't think its an authentication issue. Can anyone please help me figure out what I'm doing wrong?