Package fitbit: Fix unsubscribing.
authorFlorian Forster <ff@octo.it>
Wed, 31 Jan 2018 09:53:31 +0000 (10:53 +0100)
committerFlorian Forster <ff@octo.it>
Wed, 31 Jan 2018 09:53:31 +0000 (10:53 +0100)
commitbbefec247f38ced868d35a15ce40efc53e63a764
tree20c181e3b09648e45c4afcb2782ae0feade44367
parent9cd8936ef5691454d4370766f78bc1e2ce7f9e23
Package fitbit: Fix unsubscribing.

* Fix the expected JSON format. The example given in the documentation is
  wrong.
* Add a collection argument to the ListSubscribers() call. Listing all
  subscriptions (from all collections) requires all the scopes, which
  we don't (want to) have.
* Add sanity checking to ListSubscribers().
fitbit/fitbit.go