Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-wojtowicz committed Dec 14, 2021
1 parent 426b35f commit a024f60
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/devices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a024f60

Please sign in to comment.