Skip to content

Commit

Permalink
Added tests to list shared by me resources
Browse files Browse the repository at this point in the history
Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
  • Loading branch information
SagarGi committed Jan 31, 2024
1 parent 58754f5 commit f007f53
Show file tree
Hide file tree
Showing 3 changed files with 697 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1868,4 +1868,29 @@ public static function getSharesSharedWithMe(
self::getRequestHeaders()
);
}

/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getSharesSharedByAUser(
string $baseUrl,
string $xRequestId,
string $user,
string $password
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "me/drive/sharedByMe");
return HttpRequestHelper::get(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
}
Loading

0 comments on commit f007f53

Please sign in to comment.