function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Is there an API to get most popular posts depending on the likes received?
There is not a specific resource, but you can do it using the standard REST API query capability.
LMK if you need the SOQL. I have it lying around somewhere.
Thanks for your reply.
Could you please let me know about it.
It would really be a great help for me.
Thanks.
Check out the getRecipeEightTopPosters() method from Chatter Commons:
http://code.google.com/p/chatter-commons/source/browse/trunk/src/classes/ChatterRecipesController.cls
Thanks for your reply.I gone through the link you gave.
It mentions about Apex api.
How do we do this using chatter REST API? I have a sample web application which uses chatter REST API?
My requirement is to fetch posts for e.g.in last 3 months from all the users in my group.
you just need to use the SOQL query from the code sample I posted you to and use the search support in the REST API.
eg:
/services/data/v20.0/query?q=SELECT Name from Account Limit 100
Just remember that you will need to URL Encode your query string (I left it out in the example above just to make it easier to read)
There is not a specific resource, but you can do it using the standard REST API query capability.
LMK if you need the SOQL. I have it lying around somewhere.
Thanks for your reply.
Could you please let me know about it.
It would really be a great help for me.
Thanks.
Check out the getRecipeEightTopPosters() method from Chatter Commons:
http://code.google.com/p/chatter-commons/source/browse/trunk/src/classes/ChatterRecipesController.cls
Thanks for your reply.I gone through the link you gave.
It mentions about Apex api.
How do we do this using chatter REST API? I have a sample web application which uses chatter REST API?
My requirement is to fetch posts for e.g.in last 3 months from all the users in my group.
Thanks.
you just need to use the SOQL query from the code sample I posted you to and use the search support in the REST API.
eg:
/services/data/v20.0/query?q=SELECT Name from Account Limit 100
Just remember that you will need to URL Encode your query string (I left it out in the example above just to make it easier to read)