News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Create Glip Team Message
Tags: rest api
Mar 4, 2024 at 12:40pm   •   1 replies  •  0 likes
Lev Rakhman

Hello, trying to find out how to create / post message in Glip using C# API.

Testing in sandbox (+16163285031). ClientID: WZMdfNElh7vc1Xv5k6NKDZ

Was able to create public team (ID 1928626182). But very unclear how to post a message to that team. The most I can see Create Note Request and Create Task Request. I tried to use create Note request, but nothing happened.

RestClient restClient = new RestClient(

_config.GetValue<string>("ClientID"),

_config.GetValue<string>("ClientSecret"),

_config.GetValue<string>("RingCentralServerURL"));

//Authenticate

await restClient.Authorize(_config.GetValue<string>("JWT"));

var bodyNote = new TMCreateNoteRequest { body = "AAA", title = "BBB" };

var resp2 = await restClient.TeamMessaging().V1().Chats("1928626182").Notes().Post(bodyNote);


1 Answer
answered on Mar 4, 2024 at 1:35pm  

Here is the sample code to post a message to a chat

static private async Task post_team_message(String chatId)
{
    var bodyParams = new TMCreatePostRequest();
    bodyParams.text = "Send from C# app";
    var resp = await restClient.TeamMessaging().V1().Chats(chatId).Posts().Post(bodyParams);

    Console.WriteLine(JsonConvert.SerializeObject(resp));
}

 0
on Mar 4, 2024 at 8:20pm   •  0 likes

Thanks a lot.



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us