defmodule ExTwilio.Recording do
  @moduledoc """
  Represents an Recording resource in the Twilio API.

  - [Twilio docs](https://www.twilio.com/docs/api/rest/recordings)
  """

  defstruct sid: nil,
            date_created: nil,
            date_updated: nil,
            account_sid: nil,
            call_sid: nil,
            duration: nil,
            api_version: nil,
            uri: nil

  use ExTwilio.Resource, import: [:stream, :all, :find, :destroy]

  def parents, do: [:account]
end

defmodule ExTwilio.Recording do
  @moduledoc """
  Represents an Recording resource in the Twilio API.

  - [Twilio docs](https://www.twilio.com/docs/voice/api/recording)
  """

  defstruct sid: nil,
            date_created: nil,
            date_updated: nil,
            account_sid: nil,
            call_sid: nil,
            duration: nil,
            api_version: nil,
            uri: nil

  use ExTwilio.Resource, import: [:stream, :all, :find, :destroy]

  def parents, do: [:account]
end

Update redirect to Recording API
Update redirect to Recording API

danielberkompas/ex_twilio,danielberkompas/ex_twilio