From a7353902aefc63df88e64fd50bd908a9209db47b Mon Sep 17 00:00:00 2001 From: Jhonathan Viudes Date: Thu, 22 Sep 2022 11:33:01 -0300 Subject: [PATCH] create API Key resource --- lib/ex_twilio/resources/key.ex | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/ex_twilio/resources/key.ex diff --git a/lib/ex_twilio/resources/key.ex b/lib/ex_twilio/resources/key.ex new file mode 100644 index 0000000..40b1163 --- /dev/null +++ b/lib/ex_twilio/resources/key.ex @@ -0,0 +1,23 @@ +defmodule ExTwilio.Key do + @moduledoc """ + Represents an API Key resource in the Twilio API. + + - [Twilio docs](https://www.twilio.com/docs/iam/keys/api-key) + """ + defstruct account_sid: nil, + date_created: nil, + date_updated: nil, + friendly_name: nil, + secret: nil, + sid: nil + + use ExTwilio.Resource, + import: [ + :find, + :create, + :update, + :destroy + ] + + def parents, do: [:account] +end