メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

サービスリソース

A Service is the top-level scope of all other resources in Notify REST API.

You can create up to 10 Service resources per account and you can use them to:

  • Create separate operational environments, such as dev, stage, and prod, all using the same Twilio account.
  • Scope access to resources used by the Notify REST API
  • Configure different behaviors of a push-notification or messaging service.

If you need more than 10 Service resources for your account, please contact support.

Service properties

Names in PHP format
sid
sid<IS> Not PII

The unique string that we created to identify the Service resource.

accountSid
sid<AC> Not PII

The SID of the Account that created the Service resource.

friendlyName
文字列 Not PII

The string that you assigned to describe the resource.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

apnCredentialSid
sid<CR> Not PII

The SID of the Credential to use for APN Bindings.

gcmCredentialSid
sid<CR> Not PII

The SID of the Credential to use for GCM Bindings.

fcmCredentialSid
sid<CR> Not PII

The SID of the Credential to use for FCM Bindings.

messagingServiceSid
sid<MG> Not PII

The SID of the Messaging Service to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.

facebookMessengerPageId
文字列 Not PII

Deprecated.

defaultApnNotificationProtocolVersion
文字列 Not PII

The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

defaultGcmNotificationProtocolVersion
文字列 Not PII

The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

defaultFcmNotificationProtocolVersion
文字列 Not PII

The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

logEnabled
boolean Not PII

Whether to log notifications. Can be: true or false and the default is true.

url
url Not PII

The absolute URL of the Service resource.

links
uri_map Not PII

The URLs of the Binding, Notification, Segment, and User resources related to the service.

alexaSkillId
文字列 Not PII

Deprecated.

defaultAlexaNotificationProtocolVersion
文字列 Not PII

Deprecated.

Create a Service resource

post
https://notify.twilio.com/v1/Services
パラメーター
Names in None format
friendly_name
オプション
post 文字列 Not PII

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

apn_credential_sid
オプション
post sid<CR> Not PII

The SID of the Credential to use for APN Bindings.

gcm_credential_sid
オプション
post sid<CR> Not PII

The SID of the Credential to use for GCM Bindings.

messaging_service_sid
オプション
post sid<MG> Not PII

The SID of the Messaging Service to use for SMS Bindings. This parameter must be set in order to send SMS notifications.

facebook_messenger_page_id
オプション
post 文字列 Not PII

Deprecated.

default_apn_notification_protocol_version
オプション
post 文字列 Not PII

The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

default_gcm_notification_protocol_version
オプション
post 文字列 Not PII

The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

fcm_credential_sid
オプション
post sid<CR> Not PII

The SID of the Credential to use for FCM Bindings.

default_fcm_notification_protocol_version
オプション
post 文字列 Not PII

The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

log_enabled
オプション
post boolean Not PII

Whether to log notifications. Can be: true or false and the default is true.

alexa_skill_id
オプション
post 文字列 Not PII

Deprecated.

default_alexa_notification_protocol_version
オプション
post 文字列 Not PII

Deprecated.

        
        
        
        

        Fetch a Service resource

        GET
        https://notify.twilio.com/v1/Services/{Sid}
        パラメーター
        Names in None format
        sid
        必須
        GET sid<IS> Not PII

        The Twilio-provided string that uniquely identifies the Service resource to fetch.

              
              
              
              

              Read multiple Service resources

              GET
              https://notify.twilio.com/v1/Services
              パラメーター
              Names in None format
              friendly_name
              オプション
              GET 文字列 Not PII

              The string that identifies the Service resources to read.

                    
                    
                    
                    

                    Update a Service resource

                    post
                    https://notify.twilio.com/v1/Services/{Sid}
                    パラメーター
                    Names in None format
                    sid
                    必須
                    post sid<IS> Not PII

                    The Twilio-provided string that uniquely identifies the Service resource to update.

                    friendly_name
                    オプション
                    post 文字列 Not PII

                    A descriptive string that you create to describe the resource. It can be up to 64 characters long.

                    apn_credential_sid
                    オプション
                    post sid<CR> Not PII

                    The SID of the Credential to use for APN Bindings.

                    gcm_credential_sid
                    オプション
                    post sid<CR> Not PII

                    The SID of the Credential to use for GCM Bindings.

                    messaging_service_sid
                    オプション
                    post sid<MG> Not PII

                    The SID of the Messaging Service to use for SMS Bindings. This parameter must be set in order to send SMS notifications.

                    facebook_messenger_page_id
                    オプション
                    post 文字列 Not PII

                    Deprecated.

                    default_apn_notification_protocol_version
                    オプション
                    post 文字列 Not PII

                    The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

                    default_gcm_notification_protocol_version
                    オプション
                    post 文字列 Not PII

                    The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

                    fcm_credential_sid
                    オプション
                    post sid<CR> Not PII

                    The SID of the Credential to use for FCM Bindings.

                    default_fcm_notification_protocol_version
                    オプション
                    post 文字列 Not PII

                    The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.

                    log_enabled
                    オプション
                    post boolean Not PII

                    Whether to log notifications. Can be: true or false and the default is true.

                    alexa_skill_id
                    オプション
                    post 文字列 Not PII

                    Deprecated.

                    default_alexa_notification_protocol_version
                    オプション
                    post 文字列 Not PII

                    Deprecated.

                          
                          
                          
                          

                          Delete a Service resource

                          削除する
                          https://notify.twilio.com/v1/Services/{Sid}
                          パラメーター
                          Names in None format
                          sid
                          必須
                          削除する sid<IS> Not PII

                          The Twilio-provided string that uniquely identifies the Service resource to delete.

                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。