简体   繁体   English

如何以编程方式在 RingCentral 上发送消息?

[英]How to send messages on RingCentral programmatically?

I'm trying to create a program that sends messages to groups from time to time.我正在尝试创建一个不时向群组发送消息的程序。 If I'm not mistaken, the only API I see that send messages is " Create Post " which is the "Team Messaging" section.如果我没记错的话,我看到发送消息的唯一 API 是“ 创建帖子”,即“团队消息传递”部分。 This API uses Glip permission.这个 API 使用 Glip 权限。 The test messages that I was sending is being sent to the developer Glip-App account, when I logged into the Glip-App account, the page didn't look like the regular RingCentral app.我发送的测试消息正在发送到开发人员Glip-App帐户,当我登录 Glip-App 帐户时,该页面看起来不像常规的RingCentral应用程序。 The UI is different.用户界面不同。 I have a feeling, that I am working on the wrong API.我有一种感觉,我正在处理错误的 API。

在此处输入图像描述

在此处输入图像描述

I also have few more questions.我还有几个问题。 My program is only required to send messages, but in order to apply for production, I have to practice other API calls as well, such as Get, Delete, Update etc. I'm not sure why it is like that.我的程序只需要发送消息,但为了申请生产,我还必须练习其他 API 调用,例如 Get、Delete、Update 等。我不知道为什么会这样。 Also, I had to practice all the permission given, but the only permission I have given is Glip and it's still in the red.此外,我必须练习所有授予的权限,但我授予的唯一权限是 Glip,它仍然是红色的。

在此处输入图像描述

Finally, the test messages that I've sent, showing the user's actual name on the Glip App page.最后是我发送的测试消息,在 Glip App 页面上显示了用户的真实姓名。 Is there a way that I can use an alias?有没有办法可以使用别名?

The test messages that I was sending is being sent to the developer Glip-App account, when I logged into the Glip-App account, the page didn't look like the regular RingCentral app.我发送的测试消息正在发送到开发人员Glip-App帐户,当我登录 Glip-App 帐户时,该页面看起来不像常规的RingCentral应用程序。

There are two developer sandbox accounts for RC App now, one for the new App and one for the legacy app. RC App 现在有两个开发者沙箱帐户,一个用于新应用程序,一个用于旧应用程序。 At this point, you should be using the new URL.此时,您应该使用新的 URL。 The legacy URL still exists for testing purposes and will be retired at some point in the future at which time the URL should redirect to the new URL.旧版 URL 仍然存在用于测试目的,并将在未来某个时候停用,届时 URL 应重定向到新的 ZE6B391A8D2C4D45902A23A8B6585703D。

My program is only required to send messages, but in order to apply for production, I have to practice other API calls as well, such as Get, Delete, Update etc. I'm not sure why it is like that.我的程序只需要发送消息,但为了申请生产,我还必须练习其他 API 调用,例如 Get、Delete、Update 等。我不知道为什么会这样。 Also, I had to practice all the permission given, but the only permission I have given is Glip and it's still in the red.此外,我必须练习所有授予的权限,但我授予的唯一权限是 Glip,它仍然是红色的。

This should not be the case.这不应该是这样。 Please contact the support team regarding this .就此联系支持团队

Finally, the test messages that I've sent, showing the user's actual name on the Glip App page.最后是我发送的测试消息,在 Glip App 页面上显示了用户的真实姓名。 Is there a way that I can use an alias?有没有办法可以使用别名?

If you are posting using the credentials of a user, the user's name will show up since the user is being represented, not an app.如果您使用用户的凭据发布,则用户名将显示,因为代表的是用户,而不是应用程序。 You can also post into a team using a webhook or chatbot in which case other names will appear.您还可以使用 webhook 或聊天机器人向团队发帖,在这种情况下会出现其他名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM