--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/48657ffb-7ac1-467d-9972-5fbf921354f2n%40googlegroups.com.
Thank you for the response. The object returned in Python is a cursor query object. Would you be able to tell how to read from this object?Using the excel will not be feasible as we are looking to update a dashboard in real time with the contacts information, hence using APIs for this purpose.Warm Regards,Harshita Joshi
Thank you for the prompt response.We are interested in retrieving details like age, gender, state and other custom fields we have created in RapidPro for the contacts. However, print(contact.age) gives an error 'Contact' object has no attribute 'Age'Also, when we connect to the API from the API explorer, the contacts are returned in JSON format. However, the list that is returned in Python is a list of locations that cannot be easily understood.[ temba_client.v2.types.Contact at ................. ,temba_client.v2.types.Contact at .................,temba_client.v2.types.Contact at ................. ]How can we convert the above output in a readable format?Warm Regards,Harshita Joshi
This was helpful. How can we convert the Query Object to JSON?Regards,
Harshita Joshi
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/701e0ae1-e24b-4eab-9f96-41261d9cf323n%40googlegroups.com.