07-21-2020 06:05 AM
Hi,
I'm using the GethosturlMeeting api to create the host URL and it is working fine. I wanted to use the BU option with the same to redirect the users to different site once they have used the link to join the meeting,
I have tried using &BU= option and %26BU= option but it is not redirecting the site. It seems like the embedded &MU is making this fail and I have tried removing MU= but it doesn't workout.
As per some documents I have even tried setting this to GoBack but even that is not working.
Any help would be appreciated.
07-30-2020 09:55 PM
I found the solution while testing.
We need to supply MU & BU parameter in encoded format.
%26MU%3DGoBack%26BU%3Dhttp%3A%2F%2Fwww.cisco.com
for MU=GoBack and BU= https://www.cisco.com
07-21-2020 10:43 AM
I believe I got this working...I think the main trick is that various portions of the final URL have multiple levels of URL encoding :)
<hostMeetingUrl> value retrieved via GethosturlMeeting:
https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=dstaudt&TK=431a5c2f8a564aa0982e243ae6bc783caee97a08c589c5d5c4470bbe0cbd2d96&MU=https%3A%2F%2Fapidemoeu.webex.com%2Fapidemoeu%2Fm.php%3FAT%3DHM%26MK%3D1265119634%26Rnd%3D0.3568201481870661
This string needs to XML un-escaped to get the actual URL:
https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=dstaudt&TK=431a5c2f8a564aa0982e243ae6bc783c....70bbe0cbd2d96&MU=https%3A%2F%2Fapidemoeu.webex.com%2Fapidemoeu%2Fm.php%3FAT%3DHM%26MK%3D12.....634%26Rnd%3D0.3568201481870661
The sub-URL after the MU= is URL-encoded, here it is un-encoded:
https://apidemoeu.webex.com/apidemoeu/m.php?AT=HM&MK=12.....634&Rnd=0.3568201481870661
Let's assume we want the BU URL that applies after the host meeting command finishes to be 'https://cisco.webex.com'. We can append 'BU=' to the sub-URL above, however we have to URL-encode the target BU URL first:
https%3A//cisco.webex.com
and then we can append to the sub-URL:
https://apidemoeu.webex.com/apidemoeu/m.php?AT=HM&MK=12.....634&Rnd=0.3568201481870661&BU=https%3A//cisco.webex.com
To build the complete host login URL, we need to first URL-encode the new sub-URL:
https%3A//apidemoeu.webex.com/apidemoeu/m.php%3FAT%3DHM%26MK%3D12.....634%26Rnd%3D0.3568201481870661%26BU%3Dhttps%253A//cisco.webex.com
Note the 'https://cisco.webex.com' portion is double-URL-encoded!
The final complete URL:
https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=dstaudt&TK=431a5c2f8a564aa0982e243ae6bc783c....70bbe0cbd2d96&MU=https%3A//apidemoeu.webex.com/apidemoeu/m.php%3FAT%3DHM%26MK%3D12.....634%26Rnd%3D0.3568201481870661%26BU%3Dhttps%253A//cisco.webex.com
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide