ExTwilio.ResultStream (ExTwilio v0.8.2) 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 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)