twilio / twilio-java

A Java library for communicating with the Twilio REST API and generating TwiML.
MIT License
484 stars 425 forks source link

Missing category: channels-whatsapp-outbound in Twilio-java SDK #703

Closed Krishnanudhaya closed 2 years ago

Krishnanudhaya commented 2 years ago

I couldn't find the category channels-whatsapp-outbound in Twilio-java SDK to get the usage records.

We could achieve the same using the rest endpoint provided in documentation ( https://www.twilio.com/docs/usage/api/usage-record ) Rest end point : https://api.twilio.com/2010-04-01/Accounts/{{TWILIO_ACCOUNT_SID}}/Usage/Records.json?Category=channels-whatsapp-outbound&StartDate=2022-03-01&EndDate=2022-06-30&PageSize=20

But, same category is not available in Twilio Java SDK.

Can you advise how to pull the whats app usage records using Twilio Java SDK ?

image

Thanks

childish-sambino commented 2 years ago

For some reason, these categories are not listed internally as valid options so this library is not generated to provide them. Recommend filing a support ticket to inquire about adding this feature to the public API definitions.