README.md in inbox-0.10.1 vs README.md in inbox-0.11.0
- old
+ new
@@ -102,9 +102,18 @@
inbox.downgrade_account!
# Your Inbox API token will be revoked, you will not be charged
```
+### Account Status
+
+````ruby
+ # Query the status of every account linked to the app
+ inbox = Inbox::API.new(config.inbox_app_id, config.inbox_app_secret, inbox_token)
+ accounts = inbox.accounts
+ accounts.map { |a| a.account_id, a.sync_state } # Available fields are: account_id, sync_state, trial and trial_expires. See lib/account.rb for more details.
+```
+
### Fetching Namespaces
```ruby
inbox = Inbox::API.new(config.inbox_app_id, config.inbox_app_secret, inbox_token)