ExTwilio.Notify.Service (ExTwilio v0.9.0) View Source

Represents a Service resource in the Twilio Notify.

  • Twilio docs

  • friendly_name Human-readable name for this service instance

  • apn_credential_sid The SID of the ExTwilio.Notify.Credential to be used for APN Bindings.

  • gcm_credential_sid The SID of the ExTwilio.Notify.Credential to be used for GCM Bindings.

  • messaging_service_sid The SID of the [Messaging Service] (https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.

  • facebook_messenger_page_id The Page ID to be used to send for Facebook Messenger Bindings. It has to match the Page ID you configured when you enabled Facebook Messaging on your account.

  • default_apn_notification_protocol_version The version of the protocol to be used for sending APNS notifications. Can be overriden on a Binding by Binding basis when creating a ExTwilio.Notify.Bindings resource.

  • default_gcm_notification_protocol_version The version of the protocol to be used for sending GCM notifications. Can be overriden on a Binding by Binding basis when creating a ExTwilio.Notify.Bindings resource.

  • fcm_credential_sid The SID of the ExTwilio.Notify.Credential to be used for FCM Bindings.

  • default_fcm_notification_protocol_version The version of the protocol to be used for sending FCM notifications. Can be overriden on a Binding by Binding basis when creating a ExTwilio.Notify.Credential resource.

  • log_enabled The log_enabled

  • alexa_skill_id The alexa_skill_id

  • default_alexa_notification_protocol_version The default_alexa_notification_protocol_version

Link to this section Summary

Functions

Children represent path segments that come after the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active "Active" is a child. Children may or may not have a key in the next segment.

Parents represent path segments that precede the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users "Services" is a parent. Parents will always have a key in the next segment. If your parent is under a submodule of ExTwilio, specify your parent using the ExTwilio.Parent struct.

Underscored and lowercased collection name for a given resource. Delegates the real work to ExTwilio.Api.resource_collection_name/1 by default.

CamelCase resource name as it would be used in Twilio's API. Delegates the real work to ExTwilio.Api.resource_name/1 by default.

Link to this section Functions

Specs

all(list()) :: [map()]

Specs

children() :: list()

Children represent path segments that come after the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active "Active" is a child. Children may or may not have a key in the next segment.

Override this method in your resource to specify children in the order that they will appear in the path.

Link to this function

create(data, options \\ [])

View Source

Specs

Link to this function

destroy(sid, options \\ [])

View Source

Specs

Specs

do_new(
  %ExTwilio.Notify.Service{
    account_sid: term(),
    alexa_skill_id: term(),
    apn_credential_sid: term(),
    date_created: term(),
    date_updated: term(),
    default_alexa_notification_protocol_version: term(),
    default_apn_notification_protocol_version: term(),
    default_fcm_notification_protocol_version: term(),
    default_gcm_notification_protocol_version: term(),
    facebook_messenger_page_id: term(),
    fcm_credential_sid: term(),
    friendly_name: term(),
    gcm_credential_sid: term(),
    links: term(),
    log_enabled: term(),
    messaging_service_sid: term(),
    sid: term(),
    url: term()
  },
  list()
) :: %ExTwilio.Notify.Service{
  account_sid: term(),
  alexa_skill_id: term(),
  apn_credential_sid: term(),
  date_created: term(),
  date_updated: term(),
  default_alexa_notification_protocol_version: term(),
  default_apn_notification_protocol_version: term(),
  default_fcm_notification_protocol_version: term(),
  default_gcm_notification_protocol_version: term(),
  facebook_messenger_page_id: term(),
  fcm_credential_sid: term(),
  friendly_name: term(),
  gcm_credential_sid: term(),
  links: term(),
  log_enabled: term(),
  messaging_service_sid: term(),
  sid: term(),
  url: term()
}
Link to this function

find(sid, options \\ [])

View Source

Specs

Specs

new() :: %ExTwilio.Notify.Service{
  account_sid: term(),
  alexa_skill_id: term(),
  apn_credential_sid: term(),
  date_created: term(),
  date_updated: term(),
  default_alexa_notification_protocol_version: term(),
  default_apn_notification_protocol_version: term(),
  default_fcm_notification_protocol_version: term(),
  default_gcm_notification_protocol_version: term(),
  facebook_messenger_page_id: term(),
  fcm_credential_sid: term(),
  friendly_name: term(),
  gcm_credential_sid: term(),
  links: term(),
  log_enabled: term(),
  messaging_service_sid: term(),
  sid: term(),
  url: term()
}

Specs

new(list()) :: %ExTwilio.Notify.Service{
  account_sid: term(),
  alexa_skill_id: term(),
  apn_credential_sid: term(),
  date_created: term(),
  date_updated: term(),
  default_alexa_notification_protocol_version: term(),
  default_apn_notification_protocol_version: term(),
  default_fcm_notification_protocol_version: term(),
  default_gcm_notification_protocol_version: term(),
  facebook_messenger_page_id: term(),
  fcm_credential_sid: term(),
  friendly_name: term(),
  gcm_credential_sid: term(),
  links: term(),
  log_enabled: term(),
  messaging_service_sid: term(),
  sid: term(),
  url: term()
}

Specs

parents() :: list()

Parents represent path segments that precede the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users "Services" is a parent. Parents will always have a key in the next segment. If your parent is under a submodule of ExTwilio, specify your parent using the ExTwilio.Parent struct.

Override this method in your resource to specify parents in the order that they will appear in the path.

Link to this function

resource_collection_name()

View Source

Underscored and lowercased collection name for a given resource. Delegates the real work to ExTwilio.Api.resource_collection_name/1 by default.

Override in your module after use ExTwilio.Resource if you need something different.

CamelCase resource name as it would be used in Twilio's API. Delegates the real work to ExTwilio.Api.resource_name/1 by default.

Override in your module after use ExTwilio.Resource if you need something different.

Link to this function

update(sid, data, options \\ [])

View Source

Specs