Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ananda
Level 7

GetPartialUserData return invalid object when it hosted

Hi,

I have use following code in my application it is work on locally but when I was hosting as a private channel then the code is return "invalid". Please refer following code and help me to resolve this error.

store = CreateObject("roChannelStore")
msgport = CreateObject("roMessagePort")
store.SetMessagePort(msgport)
upgrade = invalid
result = store.GetPartialUserData("email") 'store.GetUserData()
print(result)
DisplayNoData("result")
while true
msg = wait(1, msgport)
if(result <> invalid)
InsertSubscribeInformation(result.email,memberStatus)
else
DisplayNoData("result invalid")
endif
exit while
end while


thanks
0 Kudos
4 Replies
TheEndless
Level 7

Re: GetPartialUserData return invalid object when it hosted

GetPartialUserData() only works if you're enrolled in Roku billing.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Ananda
Level 7

Re: GetPartialUserData return invalid object when it hosted

Thanks for your reply.. but it is work fine before.. And it is any another way to get member email address.
0 Kudos
TheEndless
Level 7

Re: GetPartialUserData return invalid object when it hosted

See RokuJoel's comment in this thread: viewtopic.php?f=34&t=74634&p=457962#p457962
I believe this is a recent policy change, which could explain why it worked before, but no longer does.

There is no other way to retrieve the user's email address aside from prompting them to enter it manually via an roKeyboardScreen.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Roku Employee
Roku Employee

Re: GetPartialUserData return invalid object when it hosted

We haven't to my knowledge changed anything on the service side that would stop this from working. Perhaps you were testing it locally as a side-loaded channel. If you are not enrolled in Roku billing, this function won't work. It also won't work on Legacy devices.

- Joel
0 Kudos