是否可以使用 Azure 通信仅使用 REST 端点发送 SMS?

发布于 2025-01-12 18:41:19 字数 316 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゝ杯具 2025-01-19 18:41:19

没有适用于 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文