Forum Discussion

Tyson's avatar
Tyson
Mentor
12 years ago

REST API: "Me Too" Search

I'm guessing the answer is no, but is there any REST API call to search for messages which have been flagged as "Me Too"?  I'm imagining something which looks like a "Solved" message search, like this:

 

/search/messages/count?solved=true

 

Cheers,

Tyson

6 Replies

  • Hey Tyson,

    Try this call

     

    restapi/vc/ratings/key/[key]/ratings/leaderboard
    

    This returns a list of message ids and a count of 'Me Too' clicks on this message. [key] could be one of the following depending on what type of interaction style you have.

     

    Forums = forum_topic_metoo

    Solutions = forum_solution_metoo
    Q&A Question = question_metoo
    Q&A Answer = answer_metoo

     

    Hope this helps.

     

    Regards,

    Chhama

     

  • Tyson's avatar
    Tyson
    Mentor
    12 years ago

    Thanks for that.  It doesn't help me with search filters, but it could come in handy for a different feature.  Though... it'd be a lot handier to have a call like "/messages/id/[msg_id]/metoo", which would return true/false for a specific message, perhaps with a community node selector upstream.  Perhaps something which could be added in the future?  Along with "metoo" message search filter params?

     

    Cheers,

    Tyson

  • ChhamaJ's avatar
    ChhamaJ
    Khoros Staff
    12 years ago

    For a particular message, you can try something like this

     

    restapi/vc/messages/id/[id]/ratings/key/answer_metoo

     the count field in the xml response will let you know the total number of "Me Too' for this post.

     

    Hope this helps.

     

    Regrards,
    Chhama

     

  • sean's avatar
    sean
    Contributor
    12 years ago

    Hi ChhamaJ

     

    How to return 7 days / 30 days /3 months of data ?

     

    thanks.

  • ChhamaJ's avatar
    ChhamaJ
    Khoros Staff
    12 years ago

    Hey Sean,

     

    The ratings returned from the call above are currently based on message posted time and not when it was me tooed. Currently there is no way you can get this data dynamically via Rest API, but you can get it offline through Community Admin Metrics feature where you can specify the date range and get a csv report.

     

    Hope this helps.

     

    Regards,
    Chhama