Event subscription view_href
Hi,
Is there any way of getting restapi.response_style=view to work with event subscription? Everytime a new message is posted I receive a HTTP-POST XML call on my server but I cannot construct a URL of the message without doing a seperate external API-call (which I really don't want to do). I tried adding the parameter like this: /restapi/vc/events/subscriptions/events/name/MessageCreate/subscribe?restapi.response_style=view&event.callback_url=http://mywebsite.com/ without any success.... The XML I receive doesn't have the full nice view_href.
If this is not a possibility, is there any way I can construct the full forum message URL with only knowing the ID of the board, thread and message (without doing any API-call)?
Cheers,
Kjartan
kjartan - Yes, indeed you can, the Lithium redirection engine works based on the ID as long as you have the type mentioned with it. e.g.
this thread over here, can be called with this URL as well and will redirect to the correct discussion
http://community.lithium.com/t5/xyz/123/td-p/184105
The red text needs to be same, which is the ID. In case of board, or category:
http://community.lithium.com/t5/xyz/bd-p/studio
http://community.lithium.com/t5/xyz/ct-p/Developer
You see, if you hit above URLs, they will take you to correct destination, as long as the ID and the type mentioned is correct.
Now you can construct a better looking URLs though, like http://community.lithium.com/t5/category/ct-p/Developer, http://community.lithium.com/t5/discussion/123/td-p/184105, http://community.lithium.com/t5/board/bd-p/studio
Though you'll need to be slightly vary in case you have same board and category ID. I hope this helps.