Hi,
In my PHP application, I have uploaded a file to my BOX account and folder. That works great.
I now want to create a shared link I can give to users for this uploaded file.
The following curl returns ok, but the shared_link is still null.
$params['shared_link']['access'] = 'open'; //open|company|collaborators
$params['shared_link']['unshared_at'] = '2020-12-12T10:53:43-08:00';
$response = $client->request('PUT', 'https://api.box.com/2.0/files/12345', [
'headers' => ['Authorization' => "Bearer {$token}"],
'query' => json_encode($params)
])->getBody()->getContents();
return $response;
I'm using Guzzle to wrap the Curl. Everything looks ok and no errors are returned.
But no shared link is being returned in the response. It's still null.