Kevin
unread,Jun 7, 2010, 6:11:14 PM6/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MySpace APIs
Just a small use case, where once a subscription is deactivated, and
then reactivated the subscription is immediately deactivated.
1) Create a new MySpace subscription
a. We store the SubId in our database
b. This subId will be used for subscription updates for every
new search.
2) MySpace deactivates the subscription - for whatever reason, this
generally happens after we've received a number of results, however, I
still am stumped on why these subscriptions are actually getting
deactivated so readily. But that is another problem entirely.
3) Add another query(search term) for the MySpace Subscription
a. Here we just simply update the "Query" portion to have Or :
[ { Text: "search_term_1" } { Text : "search_term_2" }.... {Text:
"search_term_n" }] -- this is necessary due to the 20 subscription
limit.
b. We also set "Status":"Active" – which according to the
documentation, if the subscription was deactivated previously, this
will reactivate the subscription.
4) What we are noticing is that despite setting the status to active
again, MySpace immediately deactivates that subscription again. This
renders the subscription useless for every searchterm associated with
it.
5) Everything works fine as long as that subscription is never
deactivated, but subscription deactivations seem to happen quite
frequently. The fact that the subscription can not be reactivated
after this results in the following workaround, which is to simply
delete the old subscription and create a brand new one.
Would be nice if subscriptions weren't deactivated so readily, and
also when they are reactivated they actually stay active.