public function createSharedLinkWithSettings(string $path, array $settings = [])
    {
        $parameters = [
            'path' => $this->normalizePath($path),
        ];

        if (count($settings)) {
            $parameters = array_merge(compact('settings'), $parameters);
        }

        return $this->rpcEndpointRequest('sharing/create_shared_link_with_settings', $parameters);
    }
public function createSharedLinkWithSettings(string $path, array $settings = [])
    {
        $parameters = [
            'path' => $this->normalizePath($path),
        ];

        if (count($settings)) {
            $parameters = array_merge(compact('settings'), $parameters);
        }

        return $this->rpcEndpointRequest('sharing/create_shared_link_with_settings', $parameters);
    }
public function createSharedLinkWithSettings ( string $ path , array $ settings = [ ] ) { $ parameters = [ 'path' => $ this -> normalizePath ( $ path ) , ] ; if ( count ( $ settings ) ) { $ parameters = array_merge ( compact ( 'settings' ) , $ parameters ) ; } return $ this -> rpcEndpointRequest ( 'sharing/create_shared_link_with_settings' , $ parameters ) ; }
Create a shared link with custom settings.

If no settings are given then the default visibility is RequestedVisibility.public.
The resolved visibility, though, may depend on other aspects such as team and
shared folder settings). Only for paid users.

@link https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
Create a shared link with custom settings .