API for board information per time period
We are trying to pull some data about specific boards through the API, and we also want to be able to specify a time period. Is there a way to do the following? Total Posts by Board per defined time period Total Members accessing the Board per defined time period Top Solution Authors by Board per defined time period I did find info hereGet message counts (khoros.com)that works to get total threads for a board, but I can't figure out how to put time constraints on that. I also found info hereGet top-kudoed authors (khoros.com)but I want top solution authors instead of kudoed. Is there a way to do that? ThanksSolved2.1KViews0likes2CommentsAny cons of NOT using LITHIUM.jQuery when calling an endpoint from a component?
Hi folks, I was wondering if usingLITHIUM.jQuery when calling endpoints is the only preferred way of doing it: <@liaAddScript> ;(function ($) { $(document).ready(function () { function callLithiumEndpoint() { $.ajax({ url: '${endpointUrl}', }) } callLithiumEndpoint(); }); })(LITHIUM.jQuery); </@liaAddScript> Can it be done with vanilla JavaScript inside a <script> tag as well, for example using fetch? I noticed that endpoints can be triggered from a browser or a postman via their path https://<community-name>/pjakv59666/plugins/custom/<some-path-to-endpoint>/<component-name> Can it be treated as a simple url, passing there parameters and parsing it?Solved1.6KViews1like2CommentsBuilt a service/status tracker status based on tags
Hello, I am creating a component that only shows based on the tags given to the message. The tags are hidden for non admins by the way. Using Freemarker I have no luck yet in getting/reading the tags or taglist from the current thread. Please help, half answers are also very welcome 🙂 Does anyone have a code snippet that shows how to 'get' the tags of the thread?Solved1.3KViews0likes3CommentsLab / Idea / Unconference Meetup?
I have a couple things on my community backlog that probably require some level of customization - I tend to be looking for stuff in Atlas that already has some traction or headway AND I see lots of "under consideration" ideas AND I see lots of "Did anybody make an XYZ widget in their community..." questions BUT what I haven't yet found (beyond this forum itself) is an available time and place for Devs to get together on their own and either attack a specific common problem OR talk together through a top of mind issue. It could be anything from a KhorosLed affair or even just an Unconferencewe put on ourselves. Would be REALLY great if there was a vanilla lab stood up to do actual live-action work that participants could then try to leverage in their own environments later. Am I just not finding this yet? Do we need to bootstrap something? BlakeH- has this come up before?1.1KViews10likes26CommentsAPI v2 Search doesn't work
Reading this page, I quote: "In v2, perform a one-or-more term search with a comma-separated list of terms wrapped in parentheses. Use this when you want to return messages that have at least one of these terms in the defined fields. WHERE subject MATCHES ('apples', 'bananas', 'cherries')" This query returns 2 results: select subject,body from messages where subject matches 'attachment' This query returns 0 results. select subject,body from messages where subject matches ('attachment','android') According to the documentation I should be getting results. Fair to say that it's not WAI?1KViews0likes9CommentsAPI call to post message has blank response
Hi folks. Been using this in an endpoint for many years, but now it returns a blank response, so I can't read if it was successful. <#assign result_post = restadmin("/boards/id/${board_id}/messages/post?message.subject=${msg_subject?url}&message.body=${msg_body?url}")/> If, however, I do a simple $.post('/restapi/vc/boards/id/${board_id}/messages/post?message.subject=subject&message.body=body') then I get a perfectly normal response. Did something change with the v1 API?766Views0likes6CommentsWhere do I store a large amount of data, for reference?
Hi folks, planning a custom component which will basically check the user's id against a pre-existing list. I imagine this list could grow into the thousands. What are my options for storing this data/list? One option I use for smaller datasets is a hidden post and simply store it as a comma separated string. Another option might be to store a string in a custom metadata field, I guess? Any ideas how large that could be? (I don't have access to a separate server.)739Views2likes5CommentsWould you like to see developer-centric meetups?
Hello! I'm looking for some input/feedback on the idea of virtual, developer-centric meetups around Khoros platform APIs. The goal would be to extend our Khoros Developer community experience and share ideas and solutions past what we can share in a forum. Without committing myself to anything yet, I'd like to get a sense of interest in such events and what these events might look like to you. This would be a simple proof-of-concept, virtual meetup to start. I can imagine these meetups consisting of things like: Discussions around a particular feature API (e.g., Community Bulk Data API, The Care Automation Framework, the Marketing Salesforce integration) User-submitted topics Meet and Greet with Khoros Engineers and Services gurus Khoros APIs for Community Managers (how you're using the API and what the API can do for you) Why am I asking? It's been a while since Khoros included a Developer track at Engage - not since Lithium's legacy LiNC user conference. Personally, I miss it. We've also not had any official Developer Meetup program. I had an opportunity to moderate a Networking session during Khoros Engage this year. While the session was directed toward Community Managers, I was interested to see how much of the discussion drifted to Khoros APIs and what API integrations could do to extend and enhance the benefits of Khoros applications. I liked the relaxed format of the discussion, the networking, and the examples/solutions that surfaced during the session. I think the participants enjoyed the experience as well, and I'd like to see that momentum and goodwill continue. Cheers, and thanks! (I'll be posting this in a few key Altas forums, so you might see this pop up a few times in notifications.)647Views5likes4CommentsAPI Authentication
Hi, I'm new to the Khoros community and looking for some clarification on API authentication. Specifically, is it required for GET requests? I see it is listed as required in the API documentation but in practice, I am not running into any permissions error when testing on community.khoros.com. Example: GEThttps://community.khoros.com/api/2.0/search?q=SELECT * FROM categories Thank you for any insight!Solved640Views0likes3CommentsDefault bio widget doen't work for plain Users and can't parse it from DB for plain Users
Hi folks. Need the help of the community brain. Found out that the default user bio widget, which parse User description from the settings doesn't work for plain Users except of Admins. So I decided to write my own component to parse that info from DB. Here is the code: <#include "theme-lib.common-variables.ftl" /> <#if user.registered > <#assign qry = "SELECT biography FROM users WHERE id = '${user.id}'"?url /> <#assign res = rest('2.0', '/search?q=${qry}') /> </#if> <@liaAddScript> ;(function() { const messageElement = document.querySelector('.lia-component-article'); if (!messageElement) return; <#if user.registered> <#if ( res.status?matches('success') && (res.data.size > 0) )> <#assign output = res.data.items[0].biography?esc /> const selectors = { main: '.lia-quilt-row-main', wrapper: '.lia-quilt-column-alley-single', ref: '#labelsForMessage', bio: 'custom-widget-user-bios' }; const parent = messageElement.querySelector(selectors.main + ' ' + selectors.wrapper); const refEl = messageElement.querySelector(selectors.ref); let p = document.createElement('p'); p.classList.add(selectors.bio); p.textContent = '${output}'; console.log(messageElement, refEl) parent.insertBefore(p, refEl); </#if> </#if> }()); </@liaAddScript> It Does work with Admins, but again, does not work with plain Users somewhy. It throw an exception in the console: <div style="font-style: italic; font-weight: lighter; color: darkGrey; background-color: Beige; padding: 10px;" class="lia-widget-not-found"> This widget could not be displayed. </div> Help me pls, what's going wrong with that user bio widget and Data i wanna parse it to the view by myself. Also I didn't find any flag in the admin that could representatively control that feature and enable/disable it.616Views1like3Comments