test
This commit is contained in:
parent
b5fa8eaccc
commit
f9cff1f137
|
|
@ -53,22 +53,25 @@ class NotificationPayloadFactory
|
||||||
$teamsManifestAppId = 'd92b1be6-ea92-46b1-bcb0-c08ffdd1a61a';
|
$teamsManifestAppId = 'd92b1be6-ea92-46b1-bcb0-c08ffdd1a61a';
|
||||||
$teamsEntityId = '8ffe419f-ca44-4627-a4b2-f223da2d07aa';
|
$teamsEntityId = '8ffe419f-ca44-4627-a4b2-f223da2d07aa';
|
||||||
|
|
||||||
// Diskussion in den Tab-Kontext schreiben
|
$discussionTitle = 'Backup-Strategie für Forum';
|
||||||
|
$discussionUrl = 'https://forum.sbp.de/d/34-which-file-extensions-are-allowed-for-uploads/2';
|
||||||
|
$subEntityId = 'discussion:34:2';
|
||||||
|
|
||||||
$contextJson = json_encode([
|
$contextJson = json_encode([
|
||||||
'subEntityId' => $discussionUrl,
|
'subEntityId' => $subEntityId,
|
||||||
'subEntityLabel' => $discussionTitle,
|
|
||||||
'subEntityWebUrl' => $discussionUrl,
|
|
||||||
], JSON_UNESCAPED_SLASHES);
|
], JSON_UNESCAPED_SLASHES);
|
||||||
// Teams-Deep-Link auf den Personal Tab
|
|
||||||
$teamsDeepLink = sprintf(
|
$teamsDeepLink = sprintf(
|
||||||
'https://teams.microsoft.com/l/entity/%s/%s?webUrl=%s&label=%s&context=%s',
|
'https://teams.microsoft.com/l/entity/%s/%s?tenantId=%s&webUrl=%s&label=%s&context=%s',
|
||||||
rawurlencode($teamsManifestAppId),
|
rawurlencode('d92b1be6-ea92-46b1-bcb0-c08ffdd1a61a'),
|
||||||
rawurlencode($teamsEntityId),
|
rawurlencode('8ffe419f-ca44-4627-a4b2-f223da2d07aa'),
|
||||||
|
rawurlencode('e2052793-a0f4-47d8-a3a3-52c926e79df5'),
|
||||||
rawurlencode($discussionUrl),
|
rawurlencode($discussionUrl),
|
||||||
rawurlencode($discussionTitle),
|
rawurlencode($discussionTitle),
|
||||||
rawurlencode($contextJson)
|
rawurlencode($contextJson)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$payload = [
|
$payload = [
|
||||||
'topic' => [
|
'topic' => [
|
||||||
'source' => 'text',
|
'source' => 'text',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue