ExTwilio.Call (ExTwilio v0.8.2) View Source

Represents an Call resource in the Twilio API.

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.Call{
    account_sid: term(),
    answered_by: term(),
    caller_name: term(),
    date_created: term(),
    date_updated: term(),
    direction: term(),
    duration: term(),
    end_time: term(),
    forwarded_from: term(),
    from: term(),
    parent_call_sid: term(),
    phone_number_sid: term(),
    price: term(),
    price_unit: term(),
    sid: term(),
    start_time: term(),
    status: term(),
    to: term(),
    uri: term()
  },
  list()
) :: %ExTwilio.Call{
  account_sid: term(),
  answered_by: term(),
  caller_name: term(),
  date_created: term(),
  date_updated: term(),
  direction: term(),
  duration: term(),
  end_time: term(),
  forwarded_from: term(),
  from: term(),
  parent_call_sid: term(),
  phone_number_sid: term(),
  price: term(),
  price_unit: term(),
  sid: term(),
  start_time: term(),
  status: term(),
  to: term(),
  uri: term()
}
Link to this function

find(sid, options \\ [])

View Source

Specs

Specs

new() :: %ExTwilio.Call{
  account_sid: term(),
  answered_by: term(),
  caller_name: term(),
  date_created: term(),
  date_updated: term(),
  direction: term(),
  duration: term(),
  end_time: term(),
  forwarded_from: term(),
  from: term(),
  parent_call_sid: term(),
  phone_number_sid: term(),
  price: term(),
  price_unit: term(),
  sid: term(),
  start_time: term(),
  status: term(),
  to: term(),
  uri: term()
}

Specs

new(list()) :: %ExTwilio.Call{
  account_sid: term(),
  answered_by: term(),
  caller_name: term(),
  date_created: term(),
  date_updated: term(),
  direction: term(),
  duration: term(),
  end_time: term(),
  forwarded_from: term(),
  from: term(),
  parent_call_sid: term(),
  phone_number_sid: term(),
  price: term(),
  price_unit: term(),
  sid: term(),
  start_time: term(),
  status: term(),
  to: term(),
  uri: 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