Packages

Complete Twilio SDK for Elixir — 37 products, 494 services, 467 resources. Auto-generated from official OpenAPI specs. Finch HTTP/2, retries with jitter, webhooks, TwiML, telemetry, streaming pagination.

Current section

Files

Jump to
twilio_elixir lib twilio verify v2 form_service.ex
Raw

lib/twilio/verify/v2/form_service.ex

# File generated from Twilio's OpenAPI spec — do not edit manually
defmodule Twilio.Verify.V2.FormService do
@moduledoc """
Service for Form API operations.
Operations: `fetch`
"""
alias Twilio.Client
alias Twilio.Deserializer
@doc """
Fetch the forms for a specific Form Type.
Operation: `FetchForm` | Tags: VerifyV2Form
"""
@spec fetch(Client.t(), String.t(), keyword()) ::
{:ok, Twilio.Resources.Verify.V2.Form.t()}
| {:ok, map(), map()}
| :ok
| {:error, Twilio.Error.t()}
def fetch(client, sid, opts \\ []) do
with {:ok, data} <-
Client.request(client, :get, "/v2/Forms/#{sid}",
opts: opts,
base_url: "https://verify.twilio.com"
) do
{:ok, Deserializer.deserialize(data, Twilio.Resources.Verify.V2.Form)}
end
end
end