Music related queries

2 views
Skip to first unread message

David Novakovic

unread,
Jan 19, 2010, 11:30:33 PM1/19/10
to MySpace APIs
Hey,

I'm trying to get some real time stream subscriptions happening for
people adding music to their profiles, listening to music, and other
related queries.

The spec I'm using is below.. I seem to be only getting response about
people becoming friends with bands.

Can anyone give me some insights into how the query should look?

Also - i noticed that the API returns values with different
capitalisation from what the subscription specification suggests.
Would this be causing any problems? Notably when I use a spec i "get"
to modify and "put" it back onto the server.

{'Subscription': {'BatchSize': 1000,
'Endpoint': 'http://foo',
'Format': 'application/json',
'MetaData': '',
'Query': {'Or': [{'Object':
'audio'},
{'Object':
'Band'},
{'Object':
'video'},
{'Object':
'audio-podcast'},
{'Object':
'song'},
{'Object':
'event'},
{'Object':
'Bandshow'},
{'Object':
'music-album'},
{'Object':
'playlist'}]},
'Rate': 100,
'Status': 'Active',
'Type': 'All',
}

David Novakovic

unread,
Jan 20, 2010, 8:53:32 PM1/20/10
to MySpace APIs
To follow up on this.. It seems adding a simple filter like 'Query':
{'Verb':'share'} turns the firehose into a mere trickle.

I suspect there is something wrong with my understanding of how the
subscription works.

I've read the docs several times, but seem to only be able to get too
much or too little from it.

David

Monica Keller

unread,
Jan 20, 2010, 10:03:18 PM1/20/10
to MySpace APIs
Hi David
Can you send me the JSON output or Xml Output when you fetch this
subscription.

I did find a big with inheritance checks that I is getting code
reviewed. I will keep this thread updated on the status

> > }- Hide quoted text -
>
> - Show quoted text -

David Novakovic

unread,
Jan 20, 2010, 10:23:21 PM1/20/10
to MySpace APIs
Hi Monica,

Here are the current subscriptions I'm keeping an eye on. I'm
expecting a lot more results than I'm actually seeing.. especially the
one with no filters at all.

{'Subscriptions': [{'Subscription': {'BatchSize': 1000,
'Endpoint': 'foo.com',


'Format': 'application/json',
'MetaData': '',

'Query': {'Or': [{'And': [{'Or':
[{'Object': 'playlist'},

{'Object': 'song'},

{'Object': 'audio'},

{'Object': 'video'}]},
{'Or':
[{'Verb': 'share'},

{'Verb': 'post'},

{'Verb': 'favorite'}]}]},
{'Verb':
'play'}]},


'Rate': 100,
'Status': 'Active',
'Type': 'All',

'UserList': {'AddList': [],
'RemoveList': []},
'id': 2025}},
{'Subscription': {'BatchSize': 1000,
'Endpoint': 'foo.com',


'Format': 'application/json',
'MetaData': '',

'Query': {},


'Rate': 100,
'Status': 'Active',
'Type': 'All',

'UserList': {'AddList': [],
'RemoveList': []},
'id': 2028}},
{'Subscription': {'BatchSize': 1000,
'Endpoint': 'foo.com',


'Format': 'application/json',
'MetaData': '',

'Query': {'Verb': 'share'},


'Rate': 100,
'Status': 'Active',
'Type': 'All',

'UserList': {'AddList': [],
'RemoveList': []},
'id': 2027}}]}

Thanks a lot for the response.

David

PS. I've noticed my subscriptions have been deactivated a couple of
times without my end erroring noticably, and I haven't received any
email notifications about the deactivations either. Thanks again :)

Reply all
Reply to author
Forward
0 new messages