Module: Auth0::Api::V2::Emails
- Included in:
- Auth0::Api::V2
- Defined in:
- lib/auth0/api/v2/emails.rb
Overview
Methods to use the connections endpoints
Instance Method Summary collapse
-
#configure_provider(body) ⇒ Object
Configure a new email provider.
-
#delete_provider ⇒ json
Deletes the configured email provider.
-
#get_provider(fields: nil, include_fields: nil) ⇒ json
Get all the email providers.
-
#update_provider(body) ⇒ json
Updates the configured email provider.
Instance Method Details
#configure_provider(body) ⇒ Object
Configure a new email provider.
25 26 27 28 |
# File 'lib/auth0/api/v2/emails.rb', line 25 def configure_provider(body) raise Auth0::InvalidParameter, 'Must supply a valid body to create an email provider' if body.to_s.empty? post(email_path, body) end |
#delete_provider ⇒ json
Deletes the configured email provider.
34 35 36 |
# File 'lib/auth0/api/v2/emails.rb', line 34 def delete_provider delete(email_path) end |
#get_provider(fields: nil, include_fields: nil) ⇒ json
Get all the email providers.
14 15 16 17 18 19 20 |
# File 'lib/auth0/api/v2/emails.rb', line 14 def get_provider(fields: nil, include_fields: nil) request_params = { fields: fields, include_fields: include_fields } get(email_path, request_params) end |
#update_provider(body) ⇒ json
Updates the configured email provider.
43 44 45 46 |
# File 'lib/auth0/api/v2/emails.rb', line 43 def update_provider(body) raise Auth0::InvalidParameter, 'Must supply a valid body to update an email provider' if body.to_s.empty? patch(email_path, body) end |