Forum Discussion
12 Replies
bhupen- You can try using endpoints, but there are few questions before I can answer your question:
Is the other platform you are talking about the dot com of your community?
If yes, are you using SSO?
If above 2 are true, you can probably achieve this via endpoints which can be called from your dot com.
I hope this helps.- bhupen11 years agoAdvisor
VarunGrazitti yes they do use SSO and they also get the user_id from lithium platform.
Now my concern is how can I pass them Notification to there platform, although I had implemented nofication fetaure in lithium platform using rest api:
/restapi/vc/users/id/654/notifications
Now concern is they want to get the notificatoin from lithium platform and integrate it to there community. i.e. if any user have notification in lithium platform they want to see the notication at there community.
My query:
How can I pass notification to there community?
1. Do we pass any credential for this?
2. How will rest api work for them?
- You did not answer my question, is the other platform the parent website of your community? You are referring it as 2 communities, that means 2 lithium or 1 lithium or one other platform community. I asked if the other platform is a community or your .com
- bhupen11 years agoAdvisor
VarunGrazitti Yes, the other platform the parent website of our community.
Great! create an endpoint in your community and expose it to your parent website. This endpoint should take the user id as its parameter when you call this from your .com. There you go, you are now exposing the notifications from lithiums endpoint to your dot com.
Workflow:
www.yourcommunity.com Endpoint, which will exist on a URL as
www.yourcommunity.com/plugins/custom/yourcommunity/yourcommunityID/your_endpoint_name?user_id=72
www.yoursite.com will pass the parameter user_id to this endpoint and you can then use this on your .com
- bhupen11 years agoAdvisor
Conclusion:
Steps to Create endpoints:
create a endpoint:
endpoint name: "lthium_notification"
Put this inside endpoint:
www.community.as.play.com
www.community.as.play.com/plugins/custom/community.as.play.com/yourcommunityID/lthium_notification?${user.id}
www.as.com
Concern:
Where do I get communityID?
Please correct me if Iam wrong some where. Folowing is the reference for names:
1. My community name:
www.community.as.play.com
2. My endpoints name:
lthium_notification
3. Parent site url:
www.as.comRegards,
Bhupen
- You don't need to give the community ID in endpoint.
- bhupen11 years agoAdvisor
VarunGrazitti Thanks.
I wanted to confirm about syntax, Is it okay or something wrong in it. Thats why I mention everything onabove comment.
www.community.as.play.com
www.community.as.play.com/plugins/custom/community.as.play.com/lthium_notification?${user.id}
www.as.comPlease correct me if Iam wrong some where. Folowing is the reference for names:
1. My community name:
www.community.as.play.com
2. My endpoints name:
lthium_notification
3. Parent site url:
www.as.comSpcially with this line:
www.community.as.play.com/plugins/custom/community.as.play.com/lthium_notification?${user.id}
Regards,
Bhupen
- bhupen11 years agoAdvisor
VarunGrazitti Thanks for your priecious time and help. Although I got alternate solution for this. I have used this api to achive this functionality.
/restapi/vc/users/login/bhupen/id
- @bhupen, You're back to square one. Your API /restapi/vc/users/id/654/notifications and /restapi/vc/users/login/bhupen/id are same, except that the later one uses the user login name where as the earlier one uses the login ID. In either case, you've got to use the endpoint workflow.
Related Content
- 11 years ago
- 9 months ago
- 3 years ago