Added test for sending share invitation to normal user

This commit is contained in:
Prarup Gurung
2024-01-17 15:59:55 +05:45
parent cb0090e840
commit f08a9ae0d9
3 changed files with 82 additions and 0 deletions

View File

@@ -1822,4 +1822,29 @@ class GraphHelper {
self::getRequestHeaders()
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getSharesSharedWithMe(
string $baseUrl,
string $xRequestId,
string $user,
string $password
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "me/drive/sharedWithMe");
return HttpRequestHelper::get(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
}