athi_joy
5 years agoStreaming Star
how to pass multiple parameter in get method
Hi
I want to pass multiple parameters to the URL using the GET method.
url="https://sampledatachecks/getLastPlayHeadPostion/{userId}/{mediaId}"
this is the URL and I want to pass my uid and mid as userId and mediaId as respectively. I tried using replace method.
url.Replace(({userId},uid),(mediaId},mid)
how will i do that?
myVar = url.replace("{userId}", uid).replace("{mediaId}", mid)
...should work. .replace returns a string, so you can chain another .replace method onto it (and another, and another)