Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 664 Bytes

File metadata and controls

29 lines (22 loc) · 664 Bytes

Install

pip install git+https://github.com/Sceptyre/python-umbrella-client.git@main

Bleeding Edge:
pip install git+https://github.com/Sceptyre/python-umbrella-client.git@devel

Usage

from umbrellaclient import UmbrellaClient

c = UmbrellaClient(
    '<API_KEY>',
    '<API_SECRET>'
)
# Get all destination lists
c.destination_lists.get_destination_lists()

# Get specific destination list
c.destination_lists.get_destination_list('1234')

# Get list's destinations
c.destination_lists.get_destination_list_destinations('1234')

# Add destination to list
c.destination_lists.add_destination_list_destination('1234', 'example.com')