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