Skip to content

Conversation

@jo-wojtowicz
Copy link

@jo-wojtowicz jo-wojtowicz commented Dec 14, 2021

This pull request connects to the issue https://github.com/OLIOEX/community-team/issues/882.

We would like to be able to subscribe users to Airship's subscriptions lists. This operation is not currently supported by the Airship's Ruby Library, so we decided to add it in our fork.

https://docs.airship.com/api/ua/#operation-api-channels-subscription_lists-post.

@lloydwatkin
Copy link
Contributor

Looks good, you'll need to update the documentation here: https://github.com/urbanairship/ruby-library/tree/main/docs

end

def subscribe(list_id, email_addresses)
subscribe_payload = payload(SUBSCRIBE, list_id, email_addresses)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to raise an error if list_id or email_addresses aren't supplied:

        fail TypeError, 'list_id musy be provided' unless list_id.is_a? String

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I will take care of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants