Versions in this module Expand all Collapse all v0 v0.2.0 Jan 1, 2021 Changes in this version + const ExpiresLong + const RingCentralApiResponseFormat + const WebhookStatusBlacklisted + func FilterSubscriptionsForRequest(ress []rc.SubscriptionResponse, req rc.CreateSubscriptionRequest) []rc.SubscriptionResponse + func NewCreateSubscriptionRequestPermahook(eventFilters []string, hookUrl string) rc.CreateSubscriptionRequest + func NewCreateSubscriptionRequestPermahookBotSimple(hookUrl string) rc.CreateSubscriptionRequest + func ParseCreateSubscriptionRequest(data []byte) (rc.CreateSubscriptionRequest, error) + type RcHooks struct + Client *rc.APIClient + func (util *RcHooks) CheckAndFixSubscription(ctx context.Context, req rc.CreateSubscriptionRequest) (rc.SubscriptionInfo, error) + func (util *RcHooks) CreateSubscription(ctx context.Context, req rc.CreateSubscriptionRequest) (rc.SubscriptionInfo, error) + func (util *RcHooks) DeleteBlacklisted(ctx context.Context, matches []rc.SubscriptionResponse) ([]rc.SubscriptionResponse, error) + func (util *RcHooks) DeleteByIdOrUrl(ctx context.Context, idOrUrlToDelete string) ([]rc.SubscriptionResponse, error) + func (util *RcHooks) DeleteSubscription(ctx context.Context, subscriptionId string) error + func (util *RcHooks) GetSubscriptions(ctx context.Context) (rc.RecordsCollectionResourceSubscriptionResponse, error) + func (util *RcHooks) RecreateSubscriptionIdOrUrl(ctx context.Context, subIdOrUrl string) ([]rc.SubscriptionInfo, error) + type RcHooksConfig struct + ServerUrl string + Token string + WebhookDefinition rc.CreateSubscriptionRequest + WebhookDefinitionJson string + func NewRcHooksConfigCreds(creds ringcentral.Credentials, hookDefJson string) (RcHooksConfig, error) + func NewRcHooksConfigEnv(envVarTokenOrJson, envVarServerUrl, envVarHookDef string) RcHooksConfig + func (rchConfig *RcHooksConfig) Client() (*http.Client, error) + func (rchConfig *RcHooksConfig) ClientUtil() (ringcentral.ClientUtil, error) + func (rchConfig *RcHooksConfig) Inflate() error + func (rchConfig *RcHooksConfig) InitilizeRcHooks(ctx context.Context) (RcHooks, error) + type WebhookDefinitionThin struct + EventFilters []string + URL string + func (thin *WebhookDefinitionThin) Full() rc.CreateSubscriptionRequest v0.1.0 May 25, 2018 Changes in this version + func CreateSubscription(apiClient *rc.APIClient, hookUrl string) error + func ReplaceSubscription(apiClient *rc.APIClient, subscription rc.SubscriptionResponse) error + type Options struct + Create string + Delete string + EnvFile string + List []bool + Recreate string + type RingCentralConfig struct + ServerURL string + TokenJSON string + WebhookURL string