Forum Discussion
Source: http://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=metrics#constraints-user.id
Hi VarunGrazitti,
Thank you for your quick reply, We are looking for all metrics not for this specific one.
We are expecting the same result in V2 which V1 api call (/users/id/${user id}/metrics) is giving.
Thanks,
Chinni.
- VarunGrazitti9 years agoBoss
kckmurthy - Sure, this document will help you. After you go through this, there is a PDF named Metrics_List in this document, which has all the available metrics which you can use in the APIs.
I hope this helps.
- kckmurthy9 years agoContributor
Hi VarunGrazitti,
So there is no api call in v2 to get all user metrics in one api call like we have in v1 (/users/id/${user id}/metrics)?
Thanks,
Chinni.
- VarunGrazitti9 years agoBoss
kckmurthy - There may not be a direct call to fetch all these, but I found a very similar call here
SELECT * FROM metrics WHERE id IN('net_overall_posts','completed_registrations') AND user.id ='${user.id}'
you can add all the required metrics name in the brackets, where I highlighted the text in red.