Hello, it seems that Microsoft has changed its file sharing policies and now, by default, it shares files with the users you specify, rather than anonymously as before.
The function located in DriveItemProxy does not include the scope parameter to specify the type of link to create.
To do this, I have modified this function so that it supports this parameter and takes it into account.
public function createLink($type,$scope, array $options = []) { $driveLocator = "/drives/{$this->parentReference->driveId}"; $itemLocator = "/items/{$this->id}"; $endpoint = "$driveLocator$itemLocator/createLink"; $body = [ 'type' => $type, 'scope' => $scope, ];
and call
[DriveItemProxy Element]->createLink("blocksDownload","anonymous");
Please take this into account in future versions. Thanks you very much for your work.
Hello, it seems that Microsoft has changed its file sharing policies and now, by default, it shares files with the users you specify, rather than anonymously as before.
The function located in DriveItemProxy does not include the scope parameter to specify the type of link to create.
To do this, I have modified this function so that it supports this parameter and takes it into account.
public function createLink($type,$scope, array $options = []) { $driveLocator = "/drives/{$this->parentReference->driveId}"; $itemLocator = "/items/{$this->id}"; $endpoint = "$driveLocator$itemLocator/createLink"; $body = [ 'type' => $type, 'scope' => $scope, ];and call
[DriveItemProxy Element]->createLink("blocksDownload","anonymous");
Please take this into account in future versions. Thanks you very much for your work.