Laravel- Twilio 短信卡在排队中
Laravel- Twilio sms are stuck in queued
我正在使用 Aloha/Twilio 程序包和我的 laravel 应用程序将短信从我的应用程序发送到手机。
所有配置都完全按照给定 link 中的描述进行。
当我这样做时
$twilio = new \Aloha\Twilio\Twilio(env('TWILIO_SID'), env('TWILIO_TOKEN'), env('TWILIO_FROM'));
dd($twilio->message('+#########', 'this is test'));
我看到的响应是
Services_Twilio_Rest_Message {#285 ▼
#subresources: array:1 [▶]
+"client": Services_Twilio {#254 ▶}
+"sid": "MY SID"
+"date_created": "Fri, 03 Mar 2017 06:51:11 +0000"
+"date_updated": "Fri, 03 Mar 2017 06:51:11 +0000"
+"date_sent": null
+"account_sid": "ACOUNT SID"
+"to": "+###########"
+"from": "+15005550006"
+"messaging_service_sid": null
+"body": "Sent from your Twilio trial account - this is test"
+"status": "queued"
+"num_segments": "1"
+"num_media": "0"
+"direction": "outbound-api"
+"api_version": "2010-04-01"
+"price": null
+"price_unit": "USD"
+"error_code": null
+"error_message": null
+"uri": "/2010-04-01/Accounts/ACe6bc0a30f091bbbcdd33de2a86ad68c8/Messages/SMd3e7591a45754b9db3aa62304a5791a6"
+"subresource_uris": {#284 ▶}
}
我正在使用幻数作为 From
号码,即 +15005550006 发送短信,我正在使用带有我的测试凭据的应用程序。
我的所有消息在状态
中都显示为queued
此处为 Twilio 开发人员布道师。
如果您使用 test credentials 和幻数,则永远不会发送消息。发送消息的唯一方法是使用真实凭证和真实号码。如果您仍在使用试用帐户,那么您可以使用您在 Twilio 控制台中验证的任何号码执行此操作,并且这些消息不会花费您任何费用。
如果这有帮助,请告诉我。
我正在使用 Aloha/Twilio 程序包和我的 laravel 应用程序将短信从我的应用程序发送到手机。
所有配置都完全按照给定 link 中的描述进行。 当我这样做时
$twilio = new \Aloha\Twilio\Twilio(env('TWILIO_SID'), env('TWILIO_TOKEN'), env('TWILIO_FROM'));
dd($twilio->message('+#########', 'this is test'));
我看到的响应是
Services_Twilio_Rest_Message {#285 ▼
#subresources: array:1 [▶]
+"client": Services_Twilio {#254 ▶}
+"sid": "MY SID"
+"date_created": "Fri, 03 Mar 2017 06:51:11 +0000"
+"date_updated": "Fri, 03 Mar 2017 06:51:11 +0000"
+"date_sent": null
+"account_sid": "ACOUNT SID"
+"to": "+###########"
+"from": "+15005550006"
+"messaging_service_sid": null
+"body": "Sent from your Twilio trial account - this is test"
+"status": "queued"
+"num_segments": "1"
+"num_media": "0"
+"direction": "outbound-api"
+"api_version": "2010-04-01"
+"price": null
+"price_unit": "USD"
+"error_code": null
+"error_message": null
+"uri": "/2010-04-01/Accounts/ACe6bc0a30f091bbbcdd33de2a86ad68c8/Messages/SMd3e7591a45754b9db3aa62304a5791a6"
+"subresource_uris": {#284 ▶}
}
我正在使用幻数作为 From
号码,即 +15005550006 发送短信,我正在使用带有我的测试凭据的应用程序。
我的所有消息在状态
中都显示为queued
此处为 Twilio 开发人员布道师。
如果您使用 test credentials 和幻数,则永远不会发送消息。发送消息的唯一方法是使用真实凭证和真实号码。如果您仍在使用试用帐户,那么您可以使用您在 Twilio 控制台中验证的任何号码执行此操作,并且这些消息不会花费您任何费用。
如果这有帮助,请告诉我。