Ananda
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2014
09:27 PM
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
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
4 REPLIES 4
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2014
10:56 PM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Ananda
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2014
11:24 PM
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.
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2014
01:25 AM
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.
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2014
05:35 PM
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
- Joel