Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UsageRecords API: Description is static #2043

Open
abdulazizali77 opened this issue Apr 6, 2017 · 0 comments
Open

UsageRecords API: Description is static #2043

abdulazizali77 opened this issue Apr 6, 2017 · 0 comments
Assignees

Comments

@abdulazizali77
Copy link
Contributor

The corresponding Description property dont map to the actual query category. Should create a hashmap of sorts to map Category to Description
http://localhost:8081/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Usage/Records/Daily?Category=SMS&StartDate=2016-01-01&EndDate=2018-01-01


<RestcommResponse>
<UsageRecords>
<UsageRecord>
<Category>calls</Category>
<Description>Total Calls</Description>
<AccountSid>ACae6e420f425248d6a26948c17a9e2acf</AccountSid>
<StartDate>2017-04-05</StartDate>
<EndDate>2017-04-05</EndDate>
<Usage>9</Usage>
<UsageUnit>minutes</UsageUnit>
<Count>9</Count>
<CountUnit>calls</CountUnit>
<Price>0.0</Price>
<PriceUnit>USD</PriceUnit>
<Uri>/todo</Uri>
</UsageRecord>
<UsageRecord>
<Category>calls</Category>
<Description>Total Calls</Description>
<AccountSid>ACae6e420f425248d6a26948c17a9e2acf</AccountSid>
<StartDate>2017-04-06</StartDate>
<EndDate>2017-04-06</EndDate>
<Usage>4</Usage>
<UsageUnit>minutes</UsageUnit>
<Count>4</Count>
<CountUnit>calls</CountUnit>
<Price>0.0</Price>
<PriceUnit>USD</PriceUnit>
<Uri>/todo</Uri>
</UsageRecord>
</UsageRecords>
</RestcommResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant