是否可以使用 Azure 通信仅使用 REST 端点发送 SMS?
我在 microsoft azure communications 上设置了一个帐户并配置了一个电话号码。我想从我的 PHP 应用程序发送 SMS 消息,但唯一的代码片段适用于 JS、Python、C# 和 Java。
我设置了一个端点(即 https://scotttestingsms.communication.azure.com)并有一个应用程序密钥,但我不知道如何使用不记名令牌进行身份验证。我发现文档对此相对不透明。
I set up an account with microsoft azure communications and provisioned a phone number. I would like to send SMS messages from my PHP application, but the only code snippets are available for JS, Python, C# and Java.
I set up an endpoint (i.e. https://scotttestingsms.communication.azure.com) and have an application key, but I can't figure out how to authenticate with a bearer token. I find the docs to be relatively opaque on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有适用于 PHP 的 SDK,但您仍然可以使用 Restful API 来执行此操作。您可以在此处找到使用 Postman 发送短信 如何使用 Postman 发送短信的示例,您可以在 PHP 代码中执行相同的操作
There is no SDK for PHP, but you can still use Restful APIs to do that. You can find here Send SMS by using Postman a sample for how to send SMS by using Postman, you can do the same in your PHP code