Skip to content

Commit

Permalink
Merge pull request #5 from jviudes/add-api-key-resource
Browse files Browse the repository at this point in the history
create API Key resource
  • Loading branch information
sgtpepper43 authored Sep 22, 2022
2 parents 907d9d8 + a735390 commit 701ef9d
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 701ef9d

Please sign in to comment.