HookSniffAPI.Api.CustomerPortal (hooksniff v1.0.0)
API calls for all endpoints tagged CustomerPortal.
Summary
Functions
List API keys (portal)
Revoke API key (portal)
Create API key (portal)
Get portal configuration
Update portal configuration
Get portal embed code
Get portal profile
Update portal profile
Get notification preferences (portal)
Update notification preferences (portal)
Get plan info (portal)
Get usage (portal)
Functions
@spec portal_api_keys_get( Tesla.Env.client(), keyword() ) :: {:ok, [HookSniffAPI.Model.ApiKeyInfo.t()]} | {:error, Tesla.Env.t()}
List API keys (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, [%ApiKeyInfo{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec portal_api_keys_key_id_delete(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Revoke API key (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serverkey_id(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec portal_api_keys_post( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.CreateApiKeyResponse.t()} | {:error, Tesla.Env.t()}
Create API key (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.CreateApiKeyResponse.t}on success{:error, Tesla.Env.t}on failure
@spec portal_config_get( Tesla.Env.client(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Get portal configuration
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec portal_config_post( Tesla.Env.client(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Update portal configuration
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec portal_embed_code_get( Tesla.Env.client(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Get portal embed code
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec portal_me_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.PortalProfile.t()} | {:error, Tesla.Env.t()}
Get portal profile
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.PortalProfile.t}on success{:error, Tesla.Env.t}on failure
@spec portal_me_put( Tesla.Env.client(), HookSniffAPI.Model.UpdateProfileRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Update portal profile
Parameters
connection(HookSniffAPI.Connection): Connection to serverupdate_profile_request(UpdateProfileRequest):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec portal_notifications_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.NotificationPreferences.t()} | {:error, Tesla.Env.t()}
Get notification preferences (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.NotificationPreferences.t}on success{:error, Tesla.Env.t}on failure
@spec portal_notifications_put( Tesla.Env.client(), HookSniffAPI.Model.UpdateNotificationPreferences.t(), keyword() ) :: {:ok, HookSniffAPI.Model.PortalNotificationsPut200Response.t()} | {:error, Tesla.Env.t()}
Update notification preferences (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serverupdate_notification_preferences(UpdateNotificationPreferences):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.PortalNotificationsPut200Response.t}on success{:error, Tesla.Env.t}on failure
@spec portal_plan_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.SubscriptionResponse.t()} | {:error, Tesla.Env.t()}
Get plan info (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.SubscriptionResponse.t}on success{:error, Tesla.Env.t}on failure
@spec portal_usage_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.UsageResponse.t()} | {:error, Tesla.Env.t()}
Get usage (portal)
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.UsageResponse.t}on success{:error, Tesla.Env.t}on failure