<filename>notifications/rest/services/create-service/create-service.6.x.py
# NOTE: This example uses the next generation Twilio helper library - for more
# information on how to download and install this version, visit
# https://www.twilio.com/docs/libraries/python
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account = "<KEY>"
apn_credential_sid = "<KEY>"
fcm_credential_sid = "<KEY>"
token = "<PASSWORD>"
client = Client(account, token)

service = client.notify.services.create(
    friendly_name="My Awesome Service",
    apn_credential_sid=apn_credential_sid,
    fcm_credential_sid=fcm_credential_sid
)

print(service.friendly_name)

<filename>notifications/rest/services/create-service/create-service.6.x.py
# NOTE: This example uses the next generation Twilio helper library - for more
# information on how to download and install this version, visit
# https://www.twilio.com/docs/libraries/python
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account = "<KEY>"
apn_credential_sid = "<KEY>"
fcm_credential_sid = "<KEY>"
token = "<PASSWORD>"
client = Client(account, token)

service = client.notify.services.create(
    friendly_name="My Awesome Service",
    apn_credential_sid=apn_credential_sid,
    fcm_credential_sid=fcm_credential_sid
)

print(service.friendly_name)

# NOTE: This example uses the next generation Twilio helper library - for more # information on how to download and install this version, visit # https://www.twilio.com/docs/libraries/python # Your Account Sid and Auth Token from twilio.com/user/account