Twilio流执行显示多个错误

时间:2019-01-28 03:13:58

标签: rest api twilio

我直接从Twilio的网站上获取了此代码,用于触发我在Studio中设计的用于发送短信的流程。我通常会避免这么快地提出这样的问题,但我们急着构建此Twilio应用程序,以在劳资纠纷期间促进沟通,我认为其功能将极大地帮助我们。它甚至无法工作。请帮助我使用命令提示符在Windows机器上操作此简单的东西。

我花了三个小时观看视频,但没有成功。

curl -X POST "https://studio.twilio.com/v1/Flows/FWc786af1999122b6bfb9cd72ceb00b56c/Executions" \
--data-urlencode "To=+15712351969" \
--data-urlencode "From=+12028043219" \
-u "deleted for privacy:deleted for privacy"

查看CMD导致的错误

C:\Users\Mark>curl -X POST "https://studio.twilio.com/v1/Flows/FWc786af1999122b6bfb9cd72ceb00b56c/Executions" \
{"code": 20003, "detail": "Your AccountSid or AuthToken was incorrect.", "message": "Authentication Error - No credentials provided", "more_info": "https://www.twilio.com/docs/errors/20003", "status": 401}curl: (6) Could not resolve host: \

C:\Users\Mark>--data-urlencode "To=+15712351969" \
'--data-urlencode' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Mark>--data-urlencode "From=+12028043219" \
'--data-urlencode' is not recognized as an internal or external command,
operable program or batch file.

1 个答案:

答案 0 :(得分:0)

这里是Twilio开发人员的传播者。

从您的错误来看,反斜杠似乎并没有为您延续这一行。

首先,我将尝试在终端中的一行上全部运行命令。喜欢:

curl -X POST "https://studio.twilio.com/v1/Flows/FWc786af1999122b6bfb9cd72ceb00b56c/Executions" --data-urlencode "To=+15712351969" --data-urlencode "From=+12028043219" -u "deleted for privacy:deleted for privacy"

看看情况如何,让我知道是否有帮助。