From a024f6058b6eb49104852102e5fba727cf942b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joanna=20W=C3=B3jtowicz?= Date: Tue, 14 Dec 2021 14:47:49 +0100 Subject: [PATCH] Update documentation --- docs/devices.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/devices.rst b/docs/devices.rst index 204f47e6..1a6ac4ed 100644 --- a/docs/devices.rst +++ b/docs/devices.rst @@ -103,3 +103,19 @@ that have been iterated over by using the ``count`` method. puts(apid) end puts(apid_list.count) + + +Subscription Lists +--------- + +Subscribe or Unsubscribe Channels to/from Subscription Lists. + +.. code-block:: ruby + + require 'urbanairship' + + UA = Urbanairship + airship = UA::Client.new(key:'application_key', secret:'master_secret') + subscription_lists = UA::SubscriptionLists.new(client: airship) + response = subscription_lists.subscribe(list_id: "some-list", email_addresses: ["test1@example.com", "test2@example.com"]) + puts(response)