给客户的 Twilio 低账户余额消息
Twilio low account balance message to customers
如果 Twilio 中的账户余额低(零),
1. Twilio 是否会停止点击与帐户关联的应用程序 VoiceUrl
2. 有什么办法可以不通过Twilio控制台就知道余额不足吗?
此处为 Twilio 开发人员布道师。
当您的余额不为零时,Twilio 将继续正常运行。
当你归零时,from the Twilio help centre:
When your account balance reaches zero you will no longer be able to make and receive phone calls or send and receive SMS messages. You won't lose your phone numbers right away.
We will continue to bill your account for 60 days for the phone numbers you've purchased. If you pay off your balance and fund your account with a minimum of , you’ll be able to use your phone numbers again. After 60 days, if you haven't replenished your Twilio account balance, we may close your account and return your phone numbers to our pool of available numbers.
为了防止您的帐户被占用,您可以设置一个自动充值触发器,它会在您的帐户余额不足时为您的帐户充值。
或者,根据 this page
It is possible to also set a notification trigger that will just email you when your balance falls below a chosen threshold. If you'd like to enable this please contact Support.
因此,您可以在已知的选定余额处触发。
如果这有帮助,请告诉我。
打电话/发短信前先查询账户余额即可:
using System.Net;
using Newtonsoft.Json;
string url = "https://api.twilio.com/2010-04-01/Accounts/" + accountSid + "/Balance.json";
var client = new WebClient();
client.Credentials = new NetworkCredential(accountSid, authToken);
string responseString = client.DownloadString(url);
dynamic responseObject = JsonConvert.DeserializeObject<object>(responseString);
double accountBalance = Double.Parse(responseObject["balance"].Value);
accountBalance = Math.Round((double)accountBalance,2);
https://support.twilio.com/hc/en-us/articles/360025294494-Check-Your-Twilio-Project-Balance
如果 Twilio 中的账户余额低(零),
1. Twilio 是否会停止点击与帐户关联的应用程序 VoiceUrl
2. 有什么办法可以不通过Twilio控制台就知道余额不足吗?
此处为 Twilio 开发人员布道师。
当您的余额不为零时,Twilio 将继续正常运行。
当你归零时,from the Twilio help centre:
When your account balance reaches zero you will no longer be able to make and receive phone calls or send and receive SMS messages. You won't lose your phone numbers right away.
We will continue to bill your account for 60 days for the phone numbers you've purchased. If you pay off your balance and fund your account with a minimum of , you’ll be able to use your phone numbers again. After 60 days, if you haven't replenished your Twilio account balance, we may close your account and return your phone numbers to our pool of available numbers.
为了防止您的帐户被占用,您可以设置一个自动充值触发器,它会在您的帐户余额不足时为您的帐户充值。
或者,根据 this page
It is possible to also set a notification trigger that will just email you when your balance falls below a chosen threshold. If you'd like to enable this please contact Support.
因此,您可以在已知的选定余额处触发。
如果这有帮助,请告诉我。
打电话/发短信前先查询账户余额即可:
using System.Net;
using Newtonsoft.Json;
string url = "https://api.twilio.com/2010-04-01/Accounts/" + accountSid + "/Balance.json";
var client = new WebClient();
client.Credentials = new NetworkCredential(accountSid, authToken);
string responseString = client.DownloadString(url);
dynamic responseObject = JsonConvert.DeserializeObject<object>(responseString);
double accountBalance = Double.Parse(responseObject["balance"].Value);
accountBalance = Math.Round((double)accountBalance,2);
https://support.twilio.com/hc/en-us/articles/360025294494-Check-Your-Twilio-Project-Balance