-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathGlipAttachmentTest.cs
32 lines (30 loc) · 1.05 KB
/
GlipAttachmentTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Xunit;
namespace RingCentral.Tests;
[Collection("Sequential")]
public class GlipAttachmentTest
{
[Fact]
public async void PostAttachment()
{
var rc = await ReusableRestClient.GetInstance();
var groupId = (await rc.TeamMessaging().V1().Chats().List()).records[0].id;
// https://jira.ringcentral.com/browse/PLD-803
// var postInfo = await rc.Restapi().Glip().Groups(groupId).Posts().Post(new GlipCreatePost
// {
// attachments = new[]
// {
// new GlipMessageAttachmentInfoRequest
// {
// type = "Card",
// fallback = "fallback",
// color = "#000000",
// intro = "intro",
// text = "text",
// title = "title",
// imageUri = "https://www.baidu.com/img/bd_logo1.png"
// }
// }
// });
// Assert.Equal("https://www.baidu.com/img/bd_logo1.png", postInfo.attachments[0].imageUri);
}
}