Closed zxr90 closed 2 years ago
The markdown doc is incorrect and needs to be corrected. The proper return type is []ApiV2010Call
: https://github.com/twilio/twilio-go/blob/5cc1198dc1ab60f055176b1c5832dc080d1794a7/rest/api/v2010/accounts_calls.go?rgh-link-date=2022-03-10T14%3A53%3A45Z#L608
For the error you're seeing, I was able to recreate it. Looks like the pagination logic doesn't like empty result sets and needs a fix.
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
thanks for quick response. If I have time I might take a look.
Issue Summary
I'm using the
ListCall
api to retrieve calls related to a parent sid.ListCall
does not return ListCallResponseListCall
throws an error if no call resources related to a parent sid is foundPageCall
is the one that returnsListCallResponse
. see https://github.com/twilio/twilio-go/blob/main/rest/api/v2010/accounts_calls.goListCall
will returnListCallResponse
https://github.com/twilio/twilio-go/blob/main/rest/api/v2010/docs/AccountsCallsApi.md#listcallI believe
PageCall
is the one I should be using, so is the documentation wrong?Steps to Reproduce
Code Snippet
Exception/Log
Technical details: