mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-19 20:19:12 -06:00
apiTest. set recipient type in body
This commit is contained in:
@@ -1579,7 +1579,8 @@ class GraphHelper {
|
||||
* @param string $spaceId
|
||||
* @param string $itemId
|
||||
* @param string $shareeId
|
||||
* @param string|null $role
|
||||
* @param string $shareType
|
||||
* @param string|null $role
|
||||
*
|
||||
* @return ResponseInterface
|
||||
* @throws \JsonException
|
||||
@@ -1592,12 +1593,15 @@ class GraphHelper {
|
||||
string $spaceId,
|
||||
string $itemId,
|
||||
string $shareeId,
|
||||
string $shareType,
|
||||
?string $role
|
||||
): ResponseInterface {
|
||||
$url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/items/$itemId/invite");
|
||||
$body = [];
|
||||
|
||||
$recipients['objectId'] = $shareeId;
|
||||
$recipients['@libre.graph.recipient.type'] = $shareType;
|
||||
|
||||
$body['recipients'] = [$recipients];
|
||||
|
||||
if ($role !== null) {
|
||||
|
||||
@@ -112,6 +112,7 @@ class SharingNgContext implements Context {
|
||||
$spaceId,
|
||||
$itemId,
|
||||
$shareeId,
|
||||
$rows['shareType'],
|
||||
$rows['role']
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user