add tests for list permissions using root endpoint (#8824)

This commit is contained in:
Amrita
2024-04-18 15:17:51 +05:45
committed by GitHub
parent 65213abcb4
commit da656cb8f7
4 changed files with 232 additions and 14 deletions
+27
View File
@@ -1983,4 +1983,31 @@ class GraphHelper {
\json_encode($body)
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
* @param string $spaceId
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getDrivePermissionsList(
string $baseUrl,
string $xRequestId,
string $user,
string $password,
string $spaceId
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/root/permissions");
return HttpRequestHelper::get(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
}