add tests for update share invitation for root endpoint (#8906)

This commit is contained in:
Amrita
2024-05-08 09:55:48 +05:45
committed by GitHub
parent 34ee7e68fe
commit 545624f1be
4 changed files with 970 additions and 181 deletions
+34
View File
@@ -2144,4 +2144,38 @@ class GraphHelper {
\json_encode($body)
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
* @param string $spaceId
* @param mixed $body
* @param string $permissionsId
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function updateDriveShare(
string $baseUrl,
string $xRequestId,
string $user,
string $password,
string $spaceId,
$body,
string $permissionsId
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/root/permissions/$permissionsId");
return HttpRequestHelper::sendRequestOnce(
$url,
$xRequestId,
'PATCH',
$user,
$password,
self::getRequestHeaders(),
$body
);
}
}