import hightouch
from hightouch.models import shared
s = hightouch.Hightouch(
security=shared.Security(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
),
)
req = shared.DestinationCreate(
configuration={
'key': '<value>',
},
name='<value>',
slug='<value>',
type='<value>',
)
res = s.create_destination(req)
if res.one_of is not None:
# handle response
pass