Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
athi_joy
Streaming Star

how to pass multiple parameter in get method

Jump to solution

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?

0 Kudos
1 Solution

Accepted Solutions
sanity-check
Roku Guru

Re: how to pass multiple parameter in get method

Jump to solution

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)

View solution in original post

0 Kudos
3 REPLIES 3
sanity-check
Roku Guru

Re: how to pass multiple parameter in get method

Jump to solution

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)

0 Kudos
athi_joy
Streaming Star

Re: how to pass multiple parameter in get method

Jump to solution

Thank you for your reply.

Can you tell me what I am missing from the following procedure?

I have a public channel which contains 3 channel in product

1.developer account is successfully registered with the Roku partner payout.

2. Channel in product is correctly assigned with the channel in which the product is available for sale.

3.All channel in product is successfully cleared for sale.

The scenario is something like this

when the device is connected to the test account count of the channel store catalog is 3. but when the channel is connected to my personal account (*not a developer account) the channel store catalog is 0.

Can you tell me the reason the product is not available for customers to purchase? 

 

 

 

0 Kudos
sanity-check
Roku Guru

Re: how to pass multiple parameter in get method

Jump to solution

No prob...

 

So... I think you might be hitting a problem I've also encountered. I'm pretty sure that the channel store only works with local ("dev"/sideloaded) builds when the Roku device is associated with the Roku account which owns the app and the app (oops, "channel") is set as active for billing testing.

Have you tried uploading the package to Roku and installing on your personal account it via the preview link? You may find it works fine there.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.