Forum Discussion
3 years ago
@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>
Related Content
- 11 months ago