Skip to content

Commit

Permalink
create API Key resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonathan Viudes committed Sep 22, 2022
1 parent 00276cb commit a735390
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/ex_twilio/resources/key.ex
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a735390

Please sign in to comment.