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',
}
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
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 -
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 :)