Forum Discussion
HOW TO FETCH ALL ABOVE RESULTS?...
SIMPLE METRICS SHOW ONLY FOUR SECTIONS
http://community.lithium.com/community-name/restapi/vc/metrics
ANY IDEA?
Hey mayank,
The above results are a user's metrics (/users/id/[id]/metrics). There currently isn't an API call that would get you all metrics for all items in a community.
The call you made gets top level community metrics. You can also make the following calls to get metrics about different objects in the community, the following are the most common:
- categories/id/[id] /metrics - gets metrics for a category
- boards/id/[id] /metrics - gets metrics for a board
- users/id/[id] /metrics - gets metrics for a user
This would mean you would have to iterate over all the objects you care about and make the metrics call for each object.
There are a few suggestions already in the Customer Ideas board on how to improve how metrics work via Rest API, I would suggest kudoing the ones you like and possibly add a suggestion of your own.
Hope this helps,
Yuri
Related Content
- 2 years ago
- 2 years ago