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

Problem get data method listContacts #25

Closed
gfernandez87 opened this issue Jun 18, 2021 · 5 comments
Closed

Problem get data method listContacts #25

gfernandez87 opened this issue Jun 18, 2021 · 5 comments

Comments

@gfernandez87
Copy link

gfernandez87 commented Jun 18, 2021

Dear good morning when I try to use the method to list the contacts (listContacts), it only returns the id, but not all the information, such as name, surname, etc.

image

Values fields.all

image

I would appreciate if you can help find a solution.
Thanks!

@vdavid
Copy link
Owner

vdavid commented Jun 18, 2021

I'm not at my computer right now, but if I rememver correctly, that data is in the "fields" object. To make sure, give it a try, or read Mautic's docs.
Did this answer solve it for you?

@vdavid
Copy link
Owner

vdavid commented Jun 18, 2021

Ah, sorry, just re-read youe message. Then it indeed should be in the "fields" object.
Are you sure that those fields are not null in Mautic for this contact?
Also, what happens if you use software like Postman or Insomnia to send the requests manually? Does Mautic return the name when called that way?

@gfernandez87
Copy link
Author

Dear first of all, thank you very much for your answer. There I was testing with postman, and apparently it does the same. The truth is that it is very strange, look at this postman query, I happen to only return two records, but I return more, it is as if it did not take the parameters that I pass:

/api/contacts

image

Result return more two:

image

@vdavid
Copy link
Owner

vdavid commented Jun 19, 2021

Sorry, mate, I'm not sure what's wrong.
But if Postman returns the same data, then the problem is not with the Node.js library.

My suggestion for you is to reach out to Mautic support or their community forums.
I'm sure they can help you figure out what's wrong.

@vdavid
Copy link
Owner

vdavid commented Jun 19, 2021

I'll close this issue because it doesn't seem related to this library.

@vdavid vdavid closed this as completed Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants