Forum Discussion
6 Replies
- kckmurthy - SELECT * FROM metrics WHERE id = 'net_overall_posts' AND user.id = '31'
Source: http://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=metrics#constraints-user.idSign in to react to this post - kckmurthy10 years agoContributor
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.
Sign in to react to this post - kckmurthy10 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.
Sign in to react to this post 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.
Sign in to react to this post- kckmurthy10 years agoContributor
Hi VarunGrazitti,
This is not a suggestible option for our requirement, We have to adjust the code every time when new metrics added into the system.
Looks like v1 is the only option for us.
Thanks,
Chinni.
Sign in to react to this post