How to find recently deleted message Id in API V1
I am using API V1.. Please let me know how we can get the recently deleted message id. With the below service, we can get the status but we need to pass each message id . http://community.lithium.com/community-name/restapi/vc/messages/id/[id]/deleted Is there any way we can get all the message recently deleted.msrivas27 years agoContributor125Views0likes3Commentschange Like icon to bold
If you like a blog or an idea you would like to see if you have liked it the day after. Is it possible to transform the Thumb up to bold? this will help the user/visitor to see what they have liked and voted for in the ideas e.g Looking forward to see how we can do this :-) /Anna Visma Enterprise ABSolvedReban7 years agoMentor130Views2likes3CommentsHow can I see the freemarker code of a default component
How can I see the freemarker code of a default component in the studio? I want to override a default component but I have no way to see the code of that basiccomponent to use as a base for the new component. The only component's code I can see are the custom one. Thanks you!Solvedfrardouin7 years agoGuide125Views0likes1Commentdate_start and date_end - How they work?
Hi, I wonder how date_start and date_end exactly works. If I set query like this: restapi/vc/users/id/${id}/metrics/name/net_replies?date_start=2018-01-17&date_end=2018-01-17 It shows 0. But if I change query for this one: restapi/vc/users/id/${id}/metrics/name/net_replies?date_start=2018-01-17&date_end=2018-01-18 I get proper number of replies for 17 January but will it count also replies for 18 January? Is there any documentation about that?Solvedomygoodness7 years agoMentor104Views0likes1Commentembedding community into facebook
hi has anyone recently embedded their lithium community into their facebook page, like this one: https://www.facebook.com/du/app/178295092580287/ And if so, how did you do it? Was it a heavy lift fora developer or not? Lithium is telling me they cannot support this integration.Du (in the link above) seems to be iFraming their entire community into a Facebook app. Lithiumused to sell a feature called Facebook LevelUp(https://community.lithium.com/t5/Integrating-with-Facebook/Integrating-with-Facebook/ta-p/30899) butthey haven't sold that for some time and now require assistance from Professional Services team to integrate. Thanks!lradden7 years agoMaven93Views0likes1CommentHow to Install the Lithium Community SDK on Windows 10.
We try to install Lithium community SDK on our Local Windows 10. But we are facing the below issue. Kindly proved steps to install successfully in local machines. error message i have received while i am trying to downloading lithium community SDK. Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-59_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-59_binding.node": connect ETIMEDOUT 192.30.253.113:443 Timed out whilst downloading the prebuilt binary Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g. export HTTP_PROXY=http://example.com:1234 or configure npm proxy via npm config set proxy http://example.com:8080 > phantomjs-prebuilt@2.1.16 install C:\Users\083467\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\phantomjs-prebuilt > node install.js PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip Saving to C:\Users\083467\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip Receiving...181Views0likes2CommentsPersistant Storage API
Hi, I want to store custom data on application level and user level. I saw one article on it. https://community.lithium.com/t5/Product-Ideas/Persistant-Storage-API/idi-p/61444 As per article user field have some custom data field which can we use it but i can't find anything more. Suggest a way to store custom data on application level and user level.86Views0likes1CommentServer to server communication
We need to perform some custom analytics on the Lithium data. In order to do that I am writing a new external service and need to fetch data like replies in the discussion forum. I see that there is oAuth flow to perform operations on behalf of a signed in user. Is there a way for direct server to server communication instead like just using API key and secret? I am looking for a method which doesn't require a user to log in.103Views0likes1CommentBuilding a component to react to Custom Content
Hello all, Been a while since I've asked an odd question - I'm looking at building a component to access a specific Custom Content, and then decide whether to show the component and how it should be displayed. This is decided based on the FreeMarker placed in the Custom Content box (to allow changes without having to re-write the component itself). I know how to pull the Custom Content box from Admin and display it, I'm just curious if there's a way to make the component check the code within the Custom Content box, and then decide whether or not to display it? Here's more of a breakdown of my train of thought: Component - checks if users.role matches to anything with the Custom Content field. If the user's role isn't listed in the Custom Content text then the component will not display. Custom Content - dictates theHTML to be displayedbased on the users.role, which is checked within the Custom Content text. I hope this makes sense - any suggestions gratefully appreciated.Kev_B7 years agoAdvisor282Views1like8CommentsIntegrate Lithium community board into company Facebook page?
Hi, We would like to integrate (embed?), one of our community boards in a company Facebook page but, it appears Lithium no longer offer their previous method of doing this. I was wondering if anyone here had experience in doing something like this recently and could point me in the right direction?GlennD7 years agoAdvisor132Views0likes2CommentsUsing API to download SMM reports into Google Sheets
I've been doing some testing and successfully using the API to get data from LSW/SMM into Google Sheets, using App Script. Where I'm getting stuck, however, is downloading thean CSV report. Has anyone managed to do this already? I get this error: Request failed for https://socialweb-analytics-emea.lcloud.com/api/public/reports/report/<rest of url> returned code 400. Truncated server response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>InvalidArgument</Code><Message>Only one auth mechanism allowed; only the X-Amz-Algorithm query ... (use muteHttpExceptions option to examine full response) (line 60, file "Code") A Google search leads me to believe that the redirect from LSW, when getting the download url is causing the issue, but maybe someone has found a way around this?67Views0likes0CommentsGetting private messages for a third-party
Hi! I'm trying to hook up to a site built on Lithium as a third-party, and we'd like to display private messages for users. As per the docs, I'm hitting <base endpoint>/2.0/<tenant id>/search?q=SELECT+*+FROM+inbox_notes+WHERE+user.id%3D'<test user id>' I've got client-id and Content-Type headers, but the response I get is: { "status": "success", "message": "", "http_code": 200, "data": { "type": "inbox_notes", "list_item_type": "inbox_note", "size": 0, "items": [] }, "metadata": {} } The client ID I'm using allows me to get user data from the endpoint <base endpoint>/2.0/<tenant id>/users/<test user id> I'm hitting the inbox_notes of my user profile, which I have sent other messages to from other user accounts. What am I missing? Thanks a bunch! Samsamkirsch7 years agoContributor98Views0likes2CommentsHow to hide first reply in the message?
hi all One of my project requirement is to hide the first reply in the message so that only certain user can view it. I was thinking to use CSS to hide it based on its div id but any user can view the content by viewing the page source. Is there anyway we can do this when the page is loaded. I've tried to search the message page template in the studio but can't find it or is it cant be customized? below is the sample of message page. Really appreciate if anyone have any ideas on how to achieve this.thanks. http://community.eu.playstation.com/t5/PS4-Support/PlayStation-Support-Self-Service-Tools/m-p/25436147 .91Views0likes1CommentDoes search use kudos in its algorithm?
When the user does a search, is there a way to favor the postings with more kudos over the other similar ones that have fewer kudos? What are the ways one can tune the searching (e.g. by kudos, or maybe favor certain users, with better ranking?)aniciu7 years agoAdept87Views0likes1CommentRedirect user registered with SSO but with profile incomplete
Hi all, I have a community with SSO, and I need to redirect users that does not have a complete profile to the complete profile page. I've tried the following code, in Common.init, which does not work: <#if page.name == "UserProfileRedirect"> <#assign redirect_url = "/" /> <#attempt> <#if user.registered && user.registration.complete == false> <#assign redirect_url = webuisupport.urls.page.name.UserSsoRegistrationPage.build() /> </#else> <#assign redirect_url = webuisupport.urls.page.name.ViewProfilePage.path("user-id",user.id?string).build() /> </#if> <#recover> </#attempt> ${http.response.setRedirectUrl(redirect_url)} </#if> Almost the same code works perfectly to render a button: <#if user.registration.complete == false > <a href="${webuisupport.urls.page.name.UserSsoRegistrationPage.build()}">COMPLETE PROFILE</a> <#else> <a href="#">PROFILE OK</a> </#if> Thanks in advanceSolved170Views0likes3CommentsRest API V1 calls failing with oAuth access token
I am using oAuth2 to generate the access token and use v1 rest api calls with them. curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <access token>" -H "client-id:<client-id>" 'https://api.stage.lithium.com/community/v1/arrival/boards/nested?restapi.response_format=json' Response: {"response":{"status":"error","error":{"code":302,"message":"User authentication failed."}}} However, using just the client-id in headers makes the API call successful. curl -X GET -H "Content-Type: application/json" -H "client-id: <client-id>" 'https://api.stage.lithium.com/community/v1/arrival/boards/nested?restapi.response_format=json' The above providessuccess response. The calls with access token were workingsome time back, but don't work anymore. Have tried generating new tokens, but still get the same response with all API calls. The documentation https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&page=apicall also says that only client-id is needed in the header. Is this a recent change in the API or am I missing something? Thanks in advance.silky277 years agoContributor218Views0likes2CommentsSoap calls
Hi team, We have a Wsdl of external site. Can we do soap calls in lithium to get that data? Regards, Divyadivyap7 years agoContributor135Views0likes3CommentsComment count not displaying for TKB
When a TKBhas multiple comments the count is not being shown below the main blog, the same can be seen for Blog, see attached Blogcomment count shown properly TKBcomment count not shown Is this an admin setting or a potential issue with Lithium?tsrisudh7 years agoAdvisor109Views0likes2CommentsCan we pull code from Studio to Bitbucket?
Hi, We are planning to use Bitbucket as our code repository. What is the procedure to merge the code from Lithium studio to bitbucket and vice versa? Does Lithium allow to use to sync with Bitbucket in case of multiple developers involved?vlohitsa7 years agoContributor104Views0likes2CommentsHow to call API to autenticate with HTAccess
I have a Lithium staging environment, and I want to start playing with the v1 API to insert some a messages. However I keep failing the authentication API. Details: 1. When I login in the web interface, I first need to enter the HTAccess credentials, after which I can enter my own login credentials. I have an admin role for this Lithium instance. 2. When I try to programmatically call on the v1 API <commynity-host>/restapi/vc/authentication/sessions/login', it fails with 401 Unauthorized. 3. E.g. curl -X POST -d 'user.login=myuser&user.password=mypass&restapi.response_format=json' 'https://12345678.stage.lithium.com/restapi/vc/authentication/sessions/login'; 4. I tried to supply the call above the HTAccess credentials (instead of my own login and pw) and with the same result. Any ideas? thank you!Solvedaniciu7 years agoAdept196Views0likes1CommentPushing Notifications into the community from external site
hi all, I was wondering if there is any OOTB solution for pushing notifications into the community. The use case for this would be lets say you have a learning platform and you want to make users who have done similar learnings or discussed learnings in the community aware of the new content through a notification. API v1 doesnt allow this - is there a way to do it?92Views0likes2CommentsSELECT cover photo using LiQL
How can I SELECT the cover photo using LiQL? SELECT * FROM images WHERE messages.id = '740' Gives me the two images for this post; one is in the body, the other is the cover but there's no apparent distinction between them. How can I know which is which? Result: { "status" : "success", "message" : "", "http_code" : 200, "data" : { "type" : "images", "list_item_type" : "image", "size" : 2, "items" : [ { "type" : "image", "id" : "140iB4FAF2B355B5AD53", "href" : "/images/140", "view_href" : "/t5/media/gallerypage/image-id/140iB4FAF2B355B5AD53", "title" : "798.jpg", "description" : "tanks alot", "tiny_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/tiny?v=1.0&px=100", "thumb_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/thumb?v=1.0&px=150", "small_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/small?v=1.0&px=200", "medium_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/medium?v=1.0&px=400", "large_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/large?v=1.0&px=999", "original_href" : "/t5/image/serverpage/image-id/140iB4FAF2B355B5AD53/image-size/original?v=1.0&px=-1", "width" : 735, "height" : 551, "owner" : { "type" : "user", "id" : "38", "href" : "/users/38", "view_href" : "/t5/user/viewprofilepage/user-id/38", "login" : "IanAtJMP" }, "upload_time" : "2018-01-04T09:00:06.950-08:00", "upload_time_friendly" : "3m ago", "album" : { "type" : "album", "id" : "36", "href" : "/albums/36", "view_href" : "/t5/media/gallerypage/album-id/36", "title" : "Hidden (IanAtJMP)" }, "messages" : { "query" : "SELECT * FROM messages WHERE images.id = '140iB4FAF2B355B5AD53'" }, "comments" : { "query" : "SELECT * FROM messages WHERE images.id = '140iB4FAF2B355B5AD53' AND is_image_comment = true" }, "kudos" : { "query" : "SELECT * FROM kudos WHERE image.id = '140iB4FAF2B355B5AD53'" }, "visibility" : "public" }, { "type" : "image", "id" : "141iD8A4CDD9B9529974", "href" : "/images/141", "view_href" : "/t5/media/gallerypage/image-id/141iD8A4CDD9B9529974", "title" : "cthulhu.jpg", "description" : "", "tiny_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/tiny?v=1.0&px=100", "thumb_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/thumb?v=1.0&px=150", "small_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/small?v=1.0&px=200", "medium_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/medium?v=1.0&px=400", "large_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/large?v=1.0&px=999", "original_href" : "/t5/image/serverpage/image-id/141iD8A4CDD9B9529974/image-size/original?v=1.0&px=-1", "width" : 1280, "height" : 720, "owner" : { "type" : "user", "id" : "38", "href" : "/users/38", "view_href" : "/t5/user/viewprofilepage/user-id/38", "login" : "IanAtJMP" }, "upload_time" : "2018-01-04T09:00:27.151-08:00", "upload_time_friendly" : "3m ago", "album" : { "type" : "album", "id" : "36", "href" : "/albums/36", "view_href" : "/t5/media/gallerypage/album-id/36", "title" : "Hidden (IanAtJMP)" }, "messages" : { "query" : "SELECT * FROM messages WHERE images.id = '141iD8A4CDD9B9529974'" }, "comments" : { "query" : "SELECT * FROM messages WHERE images.id = '141iD8A4CDD9B9529974' AND is_image_comment = true" }, "kudos" : { "query" : "SELECT * FROM kudos WHERE image.id = '141iD8A4CDD9B9529974'" }, "visibility" : "public" } ] }, "metadata" : { } }SolvedInactive User7 years ago230Views0likes3CommentsLogic behind badge assignment to user based on certain amount of activity done by user.
Hello Everyone, I want to know how lithium calculates how much activity is done by user so far. Say When a user makes 5 comments/replies he gets a badge. Does lithium count totalreplies made by user everytime when user makes a replies to any post ?So that when user reached threshold of 5 he get's a badge. Or Lithium backend is saving all amount of each activity done by user somewhere in database. ?ndewani7 years agoContributor91Views0likes2Commentsblog article views in custom component
We are creating a custom component that includes our recent blogs. As part of this, we'll include the count of blog views for each article. It seems like we are not seeing this number increment-so I'm not sure if we are looking in the wrong place to pull this number or maybe we aren't clear on what action is considered a view (as in, do you have to be logged in?) Can anyone advise?margiewaters7 years agoContributor174Views0likes3CommentsHow to get username from the API?
Hi, I'm just facing the issue in production, the username is not getting loaded in the API result set. But i'm getting the username in staging server. As per my understanding, there may be an permission issue. Please guide me on how to resolve this issue.Solvedjaikumar17 years agoMentor174Views0likes4CommentsAssign one user Role to multiple category
Hi, i have 100 category and out of that 50 of them requires special access. I have created a role on the main root. Now how do i add that role to all the 50 community? Do i need to do it manually by going to all the 50 community and add the role? Please help. Thanks in advance!125Views1like2CommentsNotes - plain text body in email notification?
On the notification emails for subscriptions, there is a variable called ${notification.plainTextBody} But the notes message only has this: ${note.getBody()} I can't seem to find any alternative version of this that removes all the HTML like the one used on general notification emails. Is there a way to get the plain text version of the content? currently, anyone with their email set to only see the text version will get all the HTML when they receive a private message and its unreadable to normal users. Any advice would be greatly appreciated. Thanks!jaread837 years agoChampion93Views0likes2CommentsDiscussion style in the head.ftl
Hi, When I use this in the head.ftl it returns as null env.context.message.discussionStyle But on the same page adding it to a component on the page returns the correct value. Is there a reason for this? And is there a way for me to get this value within the head.ftl? Thanks, DarrenSolveddarrenSP7 years agoMentor137Views0likes2CommentsHow to change search result icon based on the content category
Hi, My plan is to change the searchresult default icon based on the content category.The scenario is i have external user and internal user category.. so in the search result,rather than use the same icon for Knowledge base article maybe i can change the icon so that it indicate which category the content from eg, red icon for external category,blue icon for internal167Views0likes4CommentsREST-API: Sorting TKB Articles by number of views via API
Hi everyone, I am not a developer so not really sure how to use the rest-api. I would like to retrieve a full list of tkb articles sorted by the number of views from our online financial dictionary containing more than 1.300 definitions. See:https://wissen.consorsbank.de/t5/Geldlexikon/tkb-p/Boersenlexikon for the full dictionary orhttps://wissen.consorsbank.de/t5/Geldlexikon/Abandon/ta-p/6065 for a single article. As an output I would just need the number of views and thetitle of the article. Is anyone familiar with this topic? Thank you very much for your help! All the best, Clemens215Views2likes6CommentsHow to get count of users in rank
I didfind an API to get count of users in each rank. Can someone help with thisSolvedtsrisudh7 years agoAdvisor177Views0likes3CommentsSaving CSS results with a unexpected error
hiya, When I now save some custom CSS i get a red bar unexpected error showing. However the CSS saves and works as intended. I have run the CSS through a validator and its fine apart from a couple of minor things (which have been in the code for ages and did not previously cause an error) is the system a little buggy in regard to some css tags? Or have other people expereinced this. Thanks R159Views0likes3CommentsURL Encoding in API v1 Search Method
Hello All, We've developed an internal tool to allow for useremail search based on login and user login search based on email using the Community API v1. When making individual calls, leveragingthe below methods, we usually get a successful response regardless or special characters in the parameter: http://[*community_domain*].com/restapi/vc/users/login/[*user_login_param*]?restapi.session_key=[*session_key*] http://[*community_domain*].com/restapi/vc/users/email/[*user_email_param*]?restapi.session_key=[*session_key*] However, when trying to leverage the search method, special characters will result in no records found: http://[*community_domain*].com/restapi/vc/search/users?restapi.session_key=[*session_key*]&f=login&q=[*user_login_param*]&page_size=150 http://[*community_domain*].com/restapi/vc/search/users?restapi.session_key=[*session_key*]&f=email&q=[*user_email_param*]&page_size=150 Our idea was using the search method to retrieve multiple results using an OR operator to append multiple parameters and that works fine, but the API is not able to handle non-western characters even after we do proper URL encoding upfront. We are considering refactoring this solution to use the API v2, but users.email is not a constraint allowed in LiQL queries, so we would be able to search only based on logins, which covers just half of our use cases. Would anyone have a suggestion on how to perform bulk search, so we don't need to have single search calls in a loop to bypass the character encoding issue? Thanks!leorochasantos7 years agoContributor123Views0likes2Commentsforum average post count per hour
Hi, i have the following question: 1. how to get average post count per hour? 2. how to get count of posts in the last 24 hour? The 'count' mentioned above refer to number of 'messages' creation which include reply to a topic. I think i can get only topic creation count after filter by time as the api limit depth to 0.Solved205Views1like5CommentsProblems with search API v1 vs API v2
I have a # of posts that contain PDF attachments. When I search for a phrase in the v1 API, if the phrase is in the PDF the message appears in the list v1 url: https://community/community-id/restapi/vc/categories/id/[id]/search/messages?q=phrase 5 posts returned. The v2 LIQL does not appear search the same way, and does not return the messages with PDFs. v2 LIQL:select * from messages where (subject matches 'phrase' OR body matches 'phrase' AND category.id = 'ID' 2 posts returned. Is there an additional field I can use in the v2 LIQL? Also the count v1 API does not return the correct count: v1 url: https://community/community-id/restapi/vc/categories/id/[id]/search/messages/count?q=phrase value of 1 returneddkienle7 years agoContributor114Views0likes1CommentRest API v2 - Unable to retrieve all user data.
Hello, I am facing problem during retrieving theuser data using Rest API V2 Call, API Browser: Rest Api Call Using Advanced Rest Client: Above, am trying to retrieve users Id and Email information. Through API browser we can retrieve specified values, but V2 call sending null value for email. Please let me know. Thanks, Suchith126Views0likes3CommentsNew content type
Hi, I'm looking into have some specific content type, and which i plan to use for our new implementation. For this content type, we need to have 4 to 5 fields. So is there is any possibility we can get this option? As i understood we can achievewith help of Community structure to create something similar to the requirement. But here i understood we can have only 3 fields, and not having option to add additional field if required. So please suggest me on this.jaikumar17 years agoMentor171Views0likes5Comments