View Source ExTwilio.ResultStream (ExTwilio v0.10.0)

Generate a stream of results for a given Twilio API URL. Pages are lazily loaded on demand.

Examples

ExTwilio.ResultStream.new(ExTwilio.Call)
|> Stream.map(fn call -> call.sid end)
|> Enum.take(5)

# => [%ExTwilio.Call{ ... }, %ExTwilio.Call{ ... }, ...]

Summary

Functions

Create a new Stream.

Types

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.

Examples

ExTwilio.ResultStream.new(ExTwilio.Call)