Forum Discussion
Below is the query which will return you TKB subject by views sorting.
SELECT subject FROM messages WHERE conversation.style='tkb' ORDER BY metrics.views DESC
Here is the documentation https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=messages#constraints-conversation.style
If you just want to get all the tkbs from Boersenlexikon board. You don't need to add conversation.style either.
SELECT subject FROM messages WHERE board.id='Boersenlexikon' ORDER BY metrics.views DESC
would you perhaps also know the rest-api call? (not lithium query language?)
- TariqHussain8 years agoBoss
CCornerstone - Can you elaborate more? do you want to use this query inside lithium using Freemarker or you want to access from the third server?
- CCornerstone8 years agoAce
of course, sorry for the unspecific question. the data must be accessed from third parties
- TariqHussain8 years agoBoss
CCornerstone - For that, you must need to authenticate using OAuth 2.0 flow to access the API V2.
Here is the documentation for the OAuth 2.0 flow https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=oauth2
Related Content
- 7 months ago
- 15 years ago
- 5 years ago