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

userConversations api answer is different from one in the documentation or from cURL #953

Open
mikhail-uchi-ru opened this issue Aug 16, 2023 · 1 comment
Labels
status: work in progress Twilio or the community is in the process of implementing

Comments

@mikhail-uchi-ru
Copy link

Issue Summary

I use simple example from https://www.twilio.com/docs/conversations/api/user-conversation-resource#list-all-of-a-users-conversations

client.conversations.v1
.users(identity)
.userConversations
.list({limit: 1})
.then(userConversations => {
    console.log(userConversations)
});

as an output I get an array of conversations - no meta, no nothing

If I do cURL from the docs - I get answer in proper format

Steps to Reproduce

  1. Clone latest twillio-node repo
  2. Paste the code from https://www.twilio.com/docs/conversations/api/user-conversation-resource#list-all-of-a-users-conversations
  3. Check the resulting data

Technical details:

  • twilio-node version: ^4.15.0"
  • node version: v16.13.0
@mikhail-uchi-ru
Copy link
Author

UPDATE
So I did

    console.log(client._httpClient.lastResponse);

And there is, indeed, all the response data.
Is there any reason we don't get it as a result?

@mikhail-uchi-ru mikhail-uchi-ru changed the title userConversations api result is different from one in the documentation or from cURL userConversations api answer is different from one in the documentation or from cURL Aug 16, 2023
@sbansla sbansla added the status: work in progress Twilio or the community is in the process of implementing label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: work in progress Twilio or the community is in the process of implementing
Projects
None yet
Development

No branches or pull requests

2 participants