I've gotten this working. As of right now the API SWF will expose
information about the subscription state of the user. For privacy reasons
user identifiable info (username, key, real name, etc) isn't available. The
ready() callback now gets a single argument which is null if the user isn't
signed into Rdio, or if it is an Rdio user, an object containing the
following keys:
- isTrial - boolean, is the user in a trial
- isSubscriber - boolean, is the user a subscriber
- isUnlimited - boolean, does the user have rights to stream on mobile
devices
- inFreeLimited - boolean, is the user an Rdio free user
- freeLimitedRemaining - integer, the percentage of free plays remaining
for a user - ignore if inFreeLimited is false
> It seems the rdio webPlayer does make use of cookies to reduce the amount
> of times that a user needs to actually log in to simply play music.
> I for example have very rarely logged-in after initial authentication.
> I've never figured it out (I think it only happens if I restart my laptop)
> but it is not uncommon for me to go several weeks between
> authentications...In the mean time I find that I can search and play full
> length music. Actually in reality the only time I ever need to be
> authenticated/logged in is when I want to create/modify playlists.
> On Nov 12, 2011, at 6:52 PM, Ian McKellar wrote:
> Hi John,
> Like Andy said right now the way to determine the user's state it to do an
> oauth authentication for them. I'm interested in making some of that
> information available through the Flash API but there are some potential
> privacy implications that I want to think through fully before exposing it.
> Ian
> On Thu, Nov 10, 2011 at 6:00 AM, Andy Soell <aso...@gmail.com> wrote:
>> If you make a request that should return user data (such as the 'get'
>> method) and additionally request the 'isTrial,' 'isSubscriber,' or
>> 'isUnlimited' extras, you should get back a 0 or 1 to indicate which plan
>> the selected user is subscribed to. They recently also added the
>> 'inFreeLimited' field to indicate that the user still has free tracks
>> remaining, and 'freeLimitedRemaining' to get the percentage of free tracks
>> they still have available.
>> Hope that helps!
>> andy
>> On Nov 10, 2011, at 5:28 AM, John Wang wrote:
>> > I'm creating an app that streams via the Web Playback API.
>> > If a user is not logged in, then the API will only stream previews.
>> > Is there a way to detect if a user is logged in?
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Rdio API" group.
>> > To post to this group, send email to rdio-api@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> rdio-api+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> http://groups.google.com/group/rdio-api?hl=en.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Rdio API" group.
>> To post to this group, send email to rdio-api@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rdio-api+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rdio-api?hl=en.
> --
> Ian McKellar
> Rdio Inc.
> http://rd.io/people/ian
> --
> You received this message because you are subscribed to the Google Groups
> "Rdio API" group.
> To post to this group, send email to rdio-api@googlegroups.com.
> To unsubscribe from this group, send email to
> rdio-api+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rdio-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "Rdio API" group.
> To post to this group, send email to rdio-api@googlegroups.com.
> To unsubscribe from this group, send email to
> rdio-api+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rdio-api?hl=en.
Rdio Inc.