stackmob/stackmob-ruby — pull request #11 by jkchow (2012-04-19 17:42:01+00:00)
Title: Added /get_tokens_for_users_universal API

Originally, I wanted to clear all push tokens per user id, which required me to lookup the available push tokens. The SDK didn't have this.

While it wasn't documented in the Dev Center, I was told in a help ticket that there's a `/get_tokens_for_users_universal` API. After playing around with the Test Console, I was able to deduce the query string parameters.

I've gone ahead and written up unit and integration tests. Hopefully it's within your standards. Let me know if there's anything else I can do.

Finally, I was wondering if you guys were open to adding a new method `StackMob::Push#remove_all_tokens_for_user`. It would basically be a combination of `#get_tokens_for_users` and `#remove`. I think this would help out your future dev customers.