ExTwilio v0.1.7 ExTwilio.ResultStream

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{ ... }, ...]

Summary

Types

Functions

new(module, options \\ [])

Create a new Stream.

Parameters

  • module: The name of the module to create a Stream of results for.

Example

ExTwilio.ResultStream.new(ExTwilio.Call)