diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-16 16:33:32 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-16 16:33:32 -0600 |
| commit | 72eae76110728df42753e822a8147f6de313c4d2 (patch) | |
| tree | 2890360fa4734fa7e46fb28b97b7dd84061dad98 /app/controllers/admin | |
| parent | 6ebea5620fb399e29aa407580a6676b38f42b805 (diff) | |
add subscriptions controller to list all subscribed users.
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/subscriptions_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/admin/subscriptions_controller.rb b/app/controllers/admin/subscriptions_controller.rb new file mode 100644 index 00000000..a80c2252 --- /dev/null +++ b/app/controllers/admin/subscriptions_controller.rb @@ -0,0 +1,9 @@ +module Admin + class SubscriptionsController < AdminController + def index + members = Gibbon::API.lists.members({ id: '6ea750df21', status: 'subscribed', opts: { start: 0, limit: 100}}) + @subscriptions = members["data"] + @total = members["total"] + end + end +end |
