Forum Discussion
5 Replies
- HaidongG11 years agoLithium Alumni (Retired)
may you try this call?
"/search/messages/count?q=date%3A%5B" + start + "%20TO%20" + end + "%5D&author_id=" + author_id
- "start" and "end" are UTC dates in seconds or milliseconds (both should work)
- "author_id" is the user id.
Hi HaidongG,
Thanks for your reply! Would it be possible to use login names instead of user id?
Further question: Is there any documentation regarding what parameters you can use in the search/messages method?
Thank you
nicolasdarmadja - Yes, you can use author_login= instead of author_id= and then pass the name instead of ID.
- HaidongG11 years agoLithium Alumni (Retired)
Hi VarunGrazitti ,
do you mean to say "author=" instead of "author_login="? I did a quick search on our product code, I don't think that we are looking into query parameter for "author_login", but only for "author".
nicolasdarmadja , if you are looking into screen name i.e. "author=HaidongG", please make sure that the screen name is unique. As community doesn't do any screen name validation for SSO login, it may lead to two accounts with the same screen name.
I hope that this helps.
HaidongG - Yes, you're correct, I tried the following call with your ID and Login as an example :smileyhappy:
Used - author_id=16178
http://community.lithium.com/lithosphere/restapi/vc/search/messages/count?q=date%3A%5B1393391607%20TO%201403759607%5D&author_id=16178
Used - author=HaidongG
http://community.lithium.com/lithosphere/restapi/vc/search/messages/count?q=date%3A%5B1393391607%20TO%201403759607%5D&author=HaidongG@nicolasdarmadja - You can use author instead of author_id if you need to use the login of the user.
Related Content
- 5 months ago
- 3 years ago
- 2 years ago