summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-16 16:33:32 -0600
committermo khan <mo@mokhan.ca>2014-05-16 16:33:32 -0600
commit72eae76110728df42753e822a8147f6de313c4d2 (patch)
tree2890360fa4734fa7e46fb28b97b7dd84061dad98 /app/controllers/admin
parent6ebea5620fb399e29aa407580a6676b38f42b805 (diff)
add subscriptions controller to list all subscribed users.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/subscriptions_controller.rb9
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