Forum Discussion

dhiraj_gophane's avatar
10 years ago
Solved

Discrepancy in Rest call values for kudos

Hi All,

 

I'm getting two different values for kudos received count using following APIs. Can anyone help me to understand what type of values below APIs returns.

 

1. /users/id/<user_id>/kudos/received/count

2. /users/id/<user_id>/metrics

 

Please let me know your comments.

thank you.

 

Regards,

Dhiraj

3 Replies

  • dhiraj_gophane - Which value are you looking at in the /metrics call? I am getting the exact same data in both the calls.

     

    For /restapi/vc/users/id/68/kudos/received/count
     
    <response status="success">
    <value type="int">265</value>
    </response>
     
    /restapi/vc/users/id/68/metrics
     
    <metric name="net_kudos_weight_received" type="long">265</metric>
  • dhiraj_gophane's avatar
    dhiraj_gophane
    Leader
    10 years ago
    I'm looking for the same attribute. But it gives me different values for some users.

    <metric name="net_kudos_weight_received" type="long">6</metric>

    <response status="success">
    <value type="int">3</value>
    </response>

    Please let me know if there is any reason for this else I need to raise a case with support team.

    Regards,
    Dhiraj