public function sharePersonal($libraryId, array $users, string $permission = Resource::PERMISSION_R): bool
    {
        $uri = sprintf(
            '%s/shared-repos/%s/?share_type=personal&users=%s&permission=%s',
            $this->clipUri($this->client->getConfig('base_uri')),
            $libraryId,
            join(',', $users),
            $permission
        );

        $response = $this->client->put($uri);

        return $response->getStatusCode() === 200;
    }
public function sharePersonal($libraryId, array $users, string $permission = Resource::PERMISSION_R): bool
    {
        $uri = sprintf(
            '%s/shared-repos/%s/?share_type=personal&users=%s&permission=%s',
            $this->clipUri($this->client->getConfig('base_uri')),
            $libraryId,
            join(',', $users),
            $permission
        );

        $response = $this->client->put($uri);

        return $response->getStatusCode() === 200;
    }
public function sharePersonal ( $ libraryId , array $ users , string $ permission = Resource :: PERMISSION_R ) : bool { $ uri = sprintf ( '%s/shared-repos/%s/?share_type=personal&users=%s&permission=%s' , $ this -> clipUri ( $ this -> client -> getConfig ( 'base_uri' ) ) , $ libraryId , join ( ',' , $ users ) , $ permission ) ; $ response = $ this -> client -> put ( $ uri ) ; return $ response -> getStatusCode ( ) === 200 ; }
Share a library, share type is always "personal"

@param string $libraryId  Library ID
@param array  $users      Comma separated list of user email addresses
@param string $permission The permission of the shared library

@return bool
Share a library share type is always personal