我想知道可以获得twilio号码的使用记录。
api似乎只返回twilio帐户的使用情况。
https://www.twilio.com/docs/api/rest/usage-records#usage-categories
发布于 2017-03-13 16:54:00
Twilio开发者的布道者在这里。
来自Usage Records API的数据是整个帐户的聚合,而不是电话号码级别的聚合。
不过,您可以使用Messages和Calls资源来计算自己的使用率。您需要收集all the messages sent to the number and from the number,并以类似的方式收集all the calls made to the number and placed from the number。
如果您试图收集此数据以向客户收费,那么我是否可以建议您使用subaccounts。然后,您可以使用子帐户上的使用记录,只需获取所需的详细信息。
https://stackoverflow.com/questions/42731803
复制相似问题