简体   繁体   English

使用RingCentral API从多个扩展发送短信

[英]Send SMS from multiple extensions using RingCentral API

I have a web application that sends SMSs through RingCentral's APIs, but I am only able to sign in and to send SMSs with my account's main number. 我有一个Web应用程序,该应用程序通过RingCentral的API发送SMS,但是我只能使用帐户的主号码登录并发送SMS。 I would love to send SMSs from many of my extensions mainly to be able to send more SMSs. 我希望从许多扩展中发送SMS,主要是为了能够发送更多SMS。 How can I choose the extension from which I send a SMS? 如何选择发送短信的分机号?

A RingCentral extension represents a user so to send SMS from different extensions, you will need an access token for each extension or user. RingCentral扩展名代表用户,因此要从不同的扩展名发送SMS,您将需要为每个扩展名或用户提供访问令牌。 There are a few ways to do this. 有几种方法可以做到这一点。

  • Password flow (server-side): If you are using a private app with password flow, you can bootstrap the system with static passwords for each extension. 密码流(服务器端):如果您使用具有密码流的私有应用程序,则可以为每个扩展使用静态密码来引导系统。 After the initial bootstrap you can use the refresh tokens to continue to receive active access tokens. 初始引导后,您可以使用刷新令牌继续接收活动访问令牌。
  • Auth Code flow (client-side): If you have end users with UI apps, your app can present an OAuth login to retrieve an access token for the user and then use refresh tokens afterwards. 身份验证代码流(客户端):如果最终用户使用UI应用程序,则您的应用程序可以显示OAuth登录信息以检索该用户的访问令牌,然后再使用刷新令牌。 This will work with private and public apps. 这将适用于私人和公共应用程序。

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

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