ExTwilio v0.7.0 ExTwilio.ResultStream View Source
Generate a stream of results for a given Twilio API URL. Pages are lazily loaded on demand.
Example
ExTwilio.ResultStream.new(ExTwilio.Call)
|> Stream.map(fn call -> call.sid end)
|> Enum.take(5)
# => [%ExTwilio.Call{ ... }, %ExTwilio.Call{ ... }, ...]
Link to this section Summary
Functions
Create a new Stream
Link to this section Types
Link to this type
url()
View Source
url()
View Source
url() :: String.t()
url() :: String.t()
Link to this section Functions
Link to this function
new(module, options \\ []) View Source
Create a new Stream.
Parameters
module
: The name of the module to create a Stream of results for.
Example
ExTwilio.ResultStream.new(ExTwilio.Call)