ExTwilio.Feedback

Represents a Call Feedback resource in the Twilio API.

Examples

Since Call Feedback is a nested resource in the Twilio API, you must pass in a parent Call SID to all functions in this module.

ExTwilio.Feedback.create([quality_score: 5], [call: "call_sid"])
ExTwilio.Feedback.find(call: "call_sid")
Source

Summary

children()
create(data, options \\ [])

Create a new Feedback in the Twilio API. Any field supported by Twilio's Feedback API can be passed in the 'data' keyword list

find(list1)

Find feedback for a given call. Any options other than [call: "sid"] will result in a FunctionClauseError

new()

Creates a new ExTwilio.Feedback struct. Optionally, you can pass in attributes to set their initial value in the struct

new(attrs)
parents()
resource_collection_name()

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

resource_name()

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

Functions

children()

Specs:

  • children :: list
Source
create(data, options \\ [])

Specs:

Create a new Feedback in the Twilio API. Any field supported by Twilio's Feedback API can be passed in the 'data' keyword list.

Delegates to ExTwilio.Api.create/3.

Source
find(list1)

Specs:

Find feedback for a given call. Any options other than [call: "sid"] will result in a FunctionClauseError.

Example

ExTwilio.Feedback.find(call: "sid")
%ExTwilio.Feedback{issues: [], quality_score: 5}
Source
new()

Specs:

  • new :: %ExTwilio.Feedback{issues: term, quality_score: term}

Creates a new ExTwilio.Feedback struct. Optionally, you can pass in attributes to set their initial value in the struct.

Example

%ExTwilio.Feedback{} = ExTwilio.Feedback.new
%ExTwilio.Feedback{sid: "sid"} = ExTwilio.Feedback.new(sid: "sid")
Source
new(attrs)

Specs:

  • new(list) :: %ExTwilio.Feedback{issues: term, quality_score: term}
Source
parents()

Specs:

  • parents :: list
Source
resource_collection_name()

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 before use ExTwilio.Resource if you need something different.

Source
resource_name()

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 before use ExTwilio.Resource if you need something different.

Source