ContributionsMost RecentMost LikesSolutionsHow to setup C# or dot net environment for development? Hi, Currently I am using studio to develop components & to create new pages. I would like to know the process of development in C# or dot net and can we use visual studio? I have gone through documentations and couldn't find details hence reaching out to great minds here. Any inputs will be helpful. Thankyou, Radhika Re: How to retrieve user location using IP address jeffshurtliff I was able to make it work by passing ip address in headers. <#assign response = http.client.request("api").header("X-FORWARDED-FOR",ipaddress).get()/> Will there be any privacy or security issues in passing IPaddress in headers? Re: Endpoint: External api gives in correct json data Thanks for your inputs. I was able to make it work by passing ip address in headers. <#assign response = http.client.request("api").header("X-FORWARDED-FOR",ipaddress).get()/> Re: Endpoint: External api gives in correct json data Thankyou MattV for reply. How can I get users(anonymous/logged in user) Ipaddress in freemarker? below request provides server IP address but not users. ${http.request.remoteAddr} Endpoint: External api gives in correct json data Hi, I am able to retrieve user location using bing api. Environment: staging Issue here is: When I try to call bing api with Ajax, it gives me correct user location. When I call same api using endpoint + http.client.request, api gives me in-correct solution. Are there any proxy settings blocking endpoint to provide correct location in Khoros staging? SolvedRe: How to retrieve user location using IP address jeffshurtliff sorry for the confusion, I am still seeing the same issue. bing api with ajax call gives me correct location where as endpoint gives me in-correct location. Please suggest me if there is an way to fix this bug. Re: How to retrieve user location using IP address Thankyou jeffshurtliff for your reply. Yes, I have added www.bing.com to domain field. It wasn't allowing to add just bing.com. Please find attached screenshot. Re: How to retrieve user location using IP address @VarunGrazitti I am able to retireve current user location by calling bing api in ajax. but when I try to call bing api in endpoint, it gives incorrect user location. I would like to know if below code is correct to call external api in endpoint: <#assign response = http.client.request("https://www.bing.com/api/v7/userlocation?appid=xyz1234").get()/> <#if response.hasError> ${response.error.message} <#else> ${response.content} </#if> Re: Grouphubs: How to remove Role using api AbhishekGu First, I tried API v2 but its working only for community manager and not for other users. It shows permission denied for other users. Here is my code: <#assign uid = user.id?number /> <#assign changeRole = restBuilder() .method("PUT") .path("api/2.0/users/${uid}") .body({ "data": { "type": "user", "roles_to_remove": ["g:${groupID}:Owner"], "roles_to_add": ["g:${groupID}:Member"] } }) /> <#assign resp = changeRole.call() /> Re: How to refer editor(post page) in custom page MohammedF Thanks for the reply. Yes, I have tired adding in main content. I have read in forums that it works only for POST page. Please let me know if you have any solution. <add to="main-content"> <component id="common.widget.page-title"/> <component id="topic-message"/> <component id="editor"/> <component id="common-widget-members-count"/> <component id="community.widget.page-options"/> </add>