Body
-
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
The SID of the Credential to use for APN Bindings.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CR[0-9a-fA-F]{32}$. -
The SID of the Credential to use for GCM Bindings.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CR[0-9a-fA-F]{32}$. -
The SID of the Messaging Service to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
Minimum length is
34, maximum length is34. Format should match the following pattern:^MG[0-9a-fA-F]{32}$. -
Deprecated.
-
The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
The SID of the Credential to use for FCM Bindings.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CR[0-9a-fA-F]{32}$. -
The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
Whether to log notifications. Can be:
trueorfalseand the default istrue. -
Deprecated.
-
Deprecated.
-
URL to send delivery status callback.
-
Callback configuration that enables delivery callbacks, default false
curl \
--request POST 'https://notify.twilio.com/v1/Services' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Type=S&LogEnabled=True&FriendlyName=friendly_name&ApnCredentialSid=CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&GcmCredentialSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DeliveryCallbackUrl=Hello&MessagingServiceSid=MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DeliveryCallbackEnabled=True&FacebookMessengerPageId=4&DefaultApnNotificationProtocolVersion=3&DefaultFcmNotificationProtocolVersion=3&DefaultGcmNotificationProtocolVersion=3'
{"Type" => "S", "LogEnabled" => "True", "FriendlyName" => "friendly_name", "ApnCredentialSid" => "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "GcmCredentialSid" => "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DeliveryCallbackUrl" => "Hello", "MessagingServiceSid" => "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DeliveryCallbackEnabled" => "True", "FacebookMessengerPageId" => "4", "DefaultApnNotificationProtocolVersion" => "3", "DefaultFcmNotificationProtocolVersion" => "3", "DefaultGcmNotificationProtocolVersion" => "3"}
{
"sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "S",
"links": {
"users": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users",
"bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
"segments": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Segments",
"notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"log_enabled": true,
"date_created": "2016-03-09T20:22:31Z",
"date_updated": "2016-03-09T20:22:31Z",
"friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c",
"alexa_skill_id": null,
"apn_credential_sid": null,
"fcm_credential_sid": null,
"gcm_credential_sid": null,
"delivery_callback_url": "Hello",
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"delivery_callback_enabled": true,
"facebook_messenger_page_id": "4",
"default_apn_notification_protocol_version": "3",
"default_fcm_notification_protocol_version": "3",
"default_gcm_notification_protocol_version": "3",
"default_alexa_notification_protocol_version": "3"
}