Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateAccessToken(ServiceSid string, params *CreateAccessTokenParams) (*VerifyV2AccessToken, error)
- func (c *ApiService) CreateBucket(ServiceSid string, RateLimitSid string, params *CreateBucketParams) (*VerifyV2Bucket, error)
- func (c *ApiService) CreateChallenge(ServiceSid string, Identity string, params *CreateChallengeParams) (*VerifyV2Challenge, error)
- func (c *ApiService) CreateEntity(ServiceSid string, params *CreateEntityParams) (*VerifyV2Entity, error)
- func (c *ApiService) CreateMessagingConfiguration(ServiceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error)
- func (c *ApiService) CreateNewFactor(ServiceSid string, Identity string, params *CreateNewFactorParams) (*VerifyV2NewFactor, error)
- func (c *ApiService) CreateNotification(ServiceSid string, Identity string, ChallengeSid string, ...) (*VerifyV2Notification, error)
- func (c *ApiService) CreateRateLimit(ServiceSid string, params *CreateRateLimitParams) (*VerifyV2RateLimit, error)
- func (c *ApiService) CreateService(params *CreateServiceParams) (*VerifyV2Service, error)
- func (c *ApiService) CreateVerification(ServiceSid string, params *CreateVerificationParams) (*VerifyV2Verification, error)
- func (c *ApiService) CreateVerificationCheck(ServiceSid string, params *CreateVerificationCheckParams) (*VerifyV2VerificationCheck, error)
- func (c *ApiService) CreateWebhook(ServiceSid string, params *CreateWebhookParams) (*VerifyV2Webhook, error)
- func (c *ApiService) DeleteBucket(ServiceSid string, RateLimitSid string, Sid string) error
- func (c *ApiService) DeleteEntity(ServiceSid string, Identity string) error
- func (c *ApiService) DeleteFactor(ServiceSid string, Identity string, Sid string) error
- func (c *ApiService) DeleteMessagingConfiguration(ServiceSid string, Country string) error
- func (c *ApiService) DeleteRateLimit(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteService(Sid string) error
- func (c *ApiService) DeleteWebhook(ServiceSid string, Sid string) error
- func (c *ApiService) FetchAccessToken(ServiceSid string, Sid string) (*VerifyV2AccessToken, error)
- func (c *ApiService) FetchBucket(ServiceSid string, RateLimitSid string, Sid string) (*VerifyV2Bucket, error)
- func (c *ApiService) FetchChallenge(ServiceSid string, Identity string, Sid string) (*VerifyV2Challenge, error)
- func (c *ApiService) FetchEntity(ServiceSid string, Identity string) (*VerifyV2Entity, error)
- func (c *ApiService) FetchFactor(ServiceSid string, Identity string, Sid string) (*VerifyV2Factor, error)
- func (c *ApiService) FetchForm(FormType string) (*VerifyV2Form, error)
- func (c *ApiService) FetchMessagingConfiguration(ServiceSid string, Country string) (*VerifyV2MessagingConfiguration, error)
- func (c *ApiService) FetchRateLimit(ServiceSid string, Sid string) (*VerifyV2RateLimit, error)
- func (c *ApiService) FetchService(Sid string) (*VerifyV2Service, error)
- func (c *ApiService) FetchVerification(ServiceSid string, Sid string) (*VerifyV2Verification, error)
- func (c *ApiService) FetchVerificationAttempt(Sid string) (*VerifyV2VerificationAttempt, error)
- func (c *ApiService) FetchWebhook(ServiceSid string, Sid string) (*VerifyV2Webhook, error)
- func (c *ApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) ([]VerifyV2Bucket, error)
- func (c *ApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) ([]VerifyV2Challenge, error)
- func (c *ApiService) ListEntity(ServiceSid string, params *ListEntityParams) ([]VerifyV2Entity, error)
- func (c *ApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) ([]VerifyV2Factor, error)
- func (c *ApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) ([]VerifyV2MessagingConfiguration, error)
- func (c *ApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParams) ([]VerifyV2RateLimit, error)
- func (c *ApiService) ListService(params *ListServiceParams) ([]VerifyV2Service, error)
- func (c *ApiService) ListVerificationAttempt(params *ListVerificationAttemptParams) ([]VerifyV2VerificationAttempt, error)
- func (c *ApiService) ListVerificationTemplate(params *ListVerificationTemplateParams) ([]VerifyV2VerificationTemplate, error)
- func (c *ApiService) ListWebhook(ServiceSid string, params *ListWebhookParams) ([]VerifyV2Webhook, error)
- func (c *ApiService) PageBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams, ...) (*ListBucketResponse, error)
- func (c *ApiService) PageChallenge(ServiceSid string, Identity string, params *ListChallengeParams, ...) (*ListChallengeResponse, error)
- func (c *ApiService) PageEntity(ServiceSid string, params *ListEntityParams, pageToken, pageNumber string) (*ListEntityResponse, error)
- func (c *ApiService) PageFactor(ServiceSid string, Identity string, params *ListFactorParams, ...) (*ListFactorResponse, error)
- func (c *ApiService) PageMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams, ...) (*ListMessagingConfigurationResponse, error)
- func (c *ApiService) PageRateLimit(ServiceSid string, params *ListRateLimitParams, pageToken, pageNumber string) (*ListRateLimitResponse, error)
- func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
- func (c *ApiService) PageVerificationAttempt(params *ListVerificationAttemptParams, pageToken, pageNumber string) (*ListVerificationAttemptResponse, error)
- func (c *ApiService) PageVerificationTemplate(params *ListVerificationTemplateParams, pageToken, pageNumber string) (*ListVerificationTemplateResponse, error)
- func (c *ApiService) PageWebhook(ServiceSid string, params *ListWebhookParams, pageToken, pageNumber string) (*ListWebhookResponse, error)
- func (c *ApiService) StreamBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (chan VerifyV2Bucket, error)
- func (c *ApiService) StreamChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (chan VerifyV2Challenge, error)
- func (c *ApiService) StreamEntity(ServiceSid string, params *ListEntityParams) (chan VerifyV2Entity, error)
- func (c *ApiService) StreamFactor(ServiceSid string, Identity string, params *ListFactorParams) (chan VerifyV2Factor, error)
- func (c *ApiService) StreamMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (chan VerifyV2MessagingConfiguration, error)
- func (c *ApiService) StreamRateLimit(ServiceSid string, params *ListRateLimitParams) (chan VerifyV2RateLimit, error)
- func (c *ApiService) StreamService(params *ListServiceParams) (chan VerifyV2Service, error)
- func (c *ApiService) StreamVerificationAttempt(params *ListVerificationAttemptParams) (chan VerifyV2VerificationAttempt, error)
- func (c *ApiService) StreamVerificationTemplate(params *ListVerificationTemplateParams) (chan VerifyV2VerificationTemplate, error)
- func (c *ApiService) StreamWebhook(ServiceSid string, params *ListWebhookParams) (chan VerifyV2Webhook, error)
- func (c *ApiService) UpdateBucket(ServiceSid string, RateLimitSid string, Sid string, params *UpdateBucketParams) (*VerifyV2Bucket, error)
- func (c *ApiService) UpdateChallenge(ServiceSid string, Identity string, Sid string, params *UpdateChallengeParams) (*VerifyV2Challenge, error)
- func (c *ApiService) UpdateFactor(ServiceSid string, Identity string, Sid string, params *UpdateFactorParams) (*VerifyV2Factor, error)
- func (c *ApiService) UpdateMessagingConfiguration(ServiceSid string, Country string, params *UpdateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error)
- func (c *ApiService) UpdateRateLimit(ServiceSid string, Sid string, params *UpdateRateLimitParams) (*VerifyV2RateLimit, error)
- func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*VerifyV2Service, error)
- func (c *ApiService) UpdateVerification(ServiceSid string, Sid string, params *UpdateVerificationParams) (*VerifyV2Verification, error)
- func (c *ApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2Webhook, error)
- type CreateAccessTokenParams
- func (params *CreateAccessTokenParams) SetFactorFriendlyName(FactorFriendlyName string) *CreateAccessTokenParams
- func (params *CreateAccessTokenParams) SetFactorType(FactorType string) *CreateAccessTokenParams
- func (params *CreateAccessTokenParams) SetIdentity(Identity string) *CreateAccessTokenParams
- type CreateBucketParams
- type CreateChallengeParams
- func (params *CreateChallengeParams) SetAuthPayload(AuthPayload string) *CreateChallengeParams
- func (params *CreateChallengeParams) SetDetailsFields(DetailsFields []map[string]interface{}) *CreateChallengeParams
- func (params *CreateChallengeParams) SetDetailsMessage(DetailsMessage string) *CreateChallengeParams
- func (params *CreateChallengeParams) SetExpirationDate(ExpirationDate time.Time) *CreateChallengeParams
- func (params *CreateChallengeParams) SetFactorSid(FactorSid string) *CreateChallengeParams
- func (params *CreateChallengeParams) SetHiddenDetails(HiddenDetails map[string]interface{}) *CreateChallengeParams
- type CreateEntityParams
- type CreateMessagingConfigurationParams
- type CreateNewFactorParams
- func (params *CreateNewFactorParams) SetBindingAlg(BindingAlg string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetBindingPublicKey(BindingPublicKey string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetBindingSecret(BindingSecret string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigAlg(ConfigAlg string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigAppId(ConfigAppId string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigCodeLength(ConfigCodeLength int) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigNotificationPlatform(ConfigNotificationPlatform string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigNotificationToken(ConfigNotificationToken string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigSdkVersion(ConfigSdkVersion string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigSkew(ConfigSkew int) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetConfigTimeStep(ConfigTimeStep int) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetFactorType(FactorType string) *CreateNewFactorParams
- func (params *CreateNewFactorParams) SetFriendlyName(FriendlyName string) *CreateNewFactorParams
- type CreateNotificationParams
- type CreateRateLimitParams
- type CreateServiceParams
- func (params *CreateServiceParams) SetCodeLength(CodeLength int) *CreateServiceParams
- func (params *CreateServiceParams) SetCustomCodeEnabled(CustomCodeEnabled bool) *CreateServiceParams
- func (params *CreateServiceParams) SetDefaultTemplateSid(DefaultTemplateSid string) *CreateServiceParams
- func (params *CreateServiceParams) SetDoNotShareWarningEnabled(DoNotShareWarningEnabled bool) *CreateServiceParams
- func (params *CreateServiceParams) SetDtmfInputRequired(DtmfInputRequired bool) *CreateServiceParams
- func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
- func (params *CreateServiceParams) SetLookupEnabled(LookupEnabled bool) *CreateServiceParams
- func (params *CreateServiceParams) SetPsd2Enabled(Psd2Enabled bool) *CreateServiceParams
- func (params *CreateServiceParams) SetPushApnCredentialSid(PushApnCredentialSid string) *CreateServiceParams
- func (params *CreateServiceParams) SetPushFcmCredentialSid(PushFcmCredentialSid string) *CreateServiceParams
- func (params *CreateServiceParams) SetPushIncludeDate(PushIncludeDate bool) *CreateServiceParams
- func (params *CreateServiceParams) SetSkipSmsToLandlines(SkipSmsToLandlines bool) *CreateServiceParams
- func (params *CreateServiceParams) SetTotpCodeLength(TotpCodeLength int) *CreateServiceParams
- func (params *CreateServiceParams) SetTotpIssuer(TotpIssuer string) *CreateServiceParams
- func (params *CreateServiceParams) SetTotpSkew(TotpSkew int) *CreateServiceParams
- func (params *CreateServiceParams) SetTotpTimeStep(TotpTimeStep int) *CreateServiceParams
- func (params *CreateServiceParams) SetTtsName(TtsName string) *CreateServiceParams
- type CreateVerificationCheckParams
- func (params *CreateVerificationCheckParams) SetAmount(Amount string) *CreateVerificationCheckParams
- func (params *CreateVerificationCheckParams) SetCode(Code string) *CreateVerificationCheckParams
- func (params *CreateVerificationCheckParams) SetPayee(Payee string) *CreateVerificationCheckParams
- func (params *CreateVerificationCheckParams) SetTo(To string) *CreateVerificationCheckParams
- func (params *CreateVerificationCheckParams) SetVerificationSid(VerificationSid string) *CreateVerificationCheckParams
- type CreateVerificationParams
- func (params *CreateVerificationParams) SetAmount(Amount string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetAppHash(AppHash string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetChannel(Channel string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetChannelConfiguration(ChannelConfiguration map[string]interface{}) *CreateVerificationParams
- func (params *CreateVerificationParams) SetCustomCode(CustomCode string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetCustomFriendlyName(CustomFriendlyName string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetCustomMessage(CustomMessage string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetLocale(Locale string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetPayee(Payee string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetRateLimits(RateLimits map[string]interface{}) *CreateVerificationParams
- func (params *CreateVerificationParams) SetSendDigits(SendDigits string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetTemplateCustomSubstitutions(TemplateCustomSubstitutions string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetTemplateSid(TemplateSid string) *CreateVerificationParams
- func (params *CreateVerificationParams) SetTo(To string) *CreateVerificationParams
- type CreateWebhookParams
- func (params *CreateWebhookParams) SetEventTypes(EventTypes []string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetFriendlyName(FriendlyName string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetStatus(Status string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetVersion(Version string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetWebhookUrl(WebhookUrl string) *CreateWebhookParams
- type ListBucketParams
- type ListBucketResponse
- type ListChallengeParams
- func (params *ListChallengeParams) SetFactorSid(FactorSid string) *ListChallengeParams
- func (params *ListChallengeParams) SetLimit(Limit int) *ListChallengeParams
- func (params *ListChallengeParams) SetOrder(Order string) *ListChallengeParams
- func (params *ListChallengeParams) SetPageSize(PageSize int) *ListChallengeParams
- func (params *ListChallengeParams) SetStatus(Status string) *ListChallengeParams
- type ListChallengeResponse
- type ListEntityParams
- type ListEntityResponse
- type ListFactorParams
- type ListFactorResponse
- type ListMessagingConfigurationParams
- type ListMessagingConfigurationResponse
- type ListRateLimitParams
- type ListRateLimitResponse
- type ListServiceParams
- type ListServiceResponse
- type ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetChannel(Channel string) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetChannelDataTo(ChannelDataTo string) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetCountry(Country string) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetDateCreatedAfter(DateCreatedAfter time.Time) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetDateCreatedBefore(DateCreatedBefore time.Time) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetLimit(Limit int) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetPageSize(PageSize int) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetStatus(Status string) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetVerificationSid(VerificationSid string) *ListVerificationAttemptParams
- func (params *ListVerificationAttemptParams) SetVerifyServiceSid(VerifyServiceSid string) *ListVerificationAttemptParams
- type ListVerificationAttemptResponse
- type ListVerificationAttemptResponseMeta
- type ListVerificationTemplateParams
- func (params *ListVerificationTemplateParams) SetFriendlyName(FriendlyName string) *ListVerificationTemplateParams
- func (params *ListVerificationTemplateParams) SetLimit(Limit int) *ListVerificationTemplateParams
- func (params *ListVerificationTemplateParams) SetPageSize(PageSize int) *ListVerificationTemplateParams
- type ListVerificationTemplateResponse
- type ListWebhookParams
- type ListWebhookResponse
- type UpdateBucketParams
- type UpdateChallengeParams
- type UpdateFactorParams
- func (params *UpdateFactorParams) SetAuthPayload(AuthPayload string) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigAlg(ConfigAlg string) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigCodeLength(ConfigCodeLength int) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigNotificationPlatform(ConfigNotificationPlatform string) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigNotificationToken(ConfigNotificationToken string) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigSdkVersion(ConfigSdkVersion string) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigSkew(ConfigSkew int) *UpdateFactorParams
- func (params *UpdateFactorParams) SetConfigTimeStep(ConfigTimeStep int) *UpdateFactorParams
- func (params *UpdateFactorParams) SetFriendlyName(FriendlyName string) *UpdateFactorParams
- type UpdateMessagingConfigurationParams
- type UpdateRateLimitParams
- type UpdateServiceParams
- func (params *UpdateServiceParams) SetCodeLength(CodeLength int) *UpdateServiceParams
- func (params *UpdateServiceParams) SetCustomCodeEnabled(CustomCodeEnabled bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetDefaultTemplateSid(DefaultTemplateSid string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetDoNotShareWarningEnabled(DoNotShareWarningEnabled bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetDtmfInputRequired(DtmfInputRequired bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetLookupEnabled(LookupEnabled bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetPsd2Enabled(Psd2Enabled bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetPushApnCredentialSid(PushApnCredentialSid string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetPushFcmCredentialSid(PushFcmCredentialSid string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetPushIncludeDate(PushIncludeDate bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetSkipSmsToLandlines(SkipSmsToLandlines bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetTotpCodeLength(TotpCodeLength int) *UpdateServiceParams
- func (params *UpdateServiceParams) SetTotpIssuer(TotpIssuer string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetTotpSkew(TotpSkew int) *UpdateServiceParams
- func (params *UpdateServiceParams) SetTotpTimeStep(TotpTimeStep int) *UpdateServiceParams
- func (params *UpdateServiceParams) SetTtsName(TtsName string) *UpdateServiceParams
- type UpdateVerificationParams
- type UpdateWebhookParams
- func (params *UpdateWebhookParams) SetEventTypes(EventTypes []string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetFriendlyName(FriendlyName string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetStatus(Status string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetVersion(Version string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetWebhookUrl(WebhookUrl string) *UpdateWebhookParams
- type VerifyV2AccessToken
- type VerifyV2Bucket
- type VerifyV2Challenge
- type VerifyV2Entity
- type VerifyV2Factor
- type VerifyV2Form
- type VerifyV2MessagingConfiguration
- type VerifyV2NewFactor
- type VerifyV2Notification
- type VerifyV2RateLimit
- type VerifyV2Service
- type VerifyV2Verification
- type VerifyV2VerificationAttempt
- type VerifyV2VerificationCheck
- type VerifyV2VerificationTemplate
- type VerifyV2Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶ added in v0.11.0
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶ added in v0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶ added in v0.11.0
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateAccessToken ¶ added in v0.11.0
func (c *ApiService) CreateAccessToken(ServiceSid string, params *CreateAccessTokenParams) (*VerifyV2AccessToken, error)
Create a new enrollment Access Token for the Entity
func (*ApiService) CreateBucket ¶ added in v0.11.0
func (c *ApiService) CreateBucket(ServiceSid string, RateLimitSid string, params *CreateBucketParams) (*VerifyV2Bucket, error)
Create a new Bucket for a Rate Limit
func (*ApiService) CreateChallenge ¶ added in v0.11.0
func (c *ApiService) CreateChallenge(ServiceSid string, Identity string, params *CreateChallengeParams) (*VerifyV2Challenge, error)
Create a new Challenge for the Factor
func (*ApiService) CreateEntity ¶ added in v0.11.0
func (c *ApiService) CreateEntity(ServiceSid string, params *CreateEntityParams) (*VerifyV2Entity, error)
Create a new Entity for the Service
func (*ApiService) CreateMessagingConfiguration ¶ added in v0.11.0
func (c *ApiService) CreateMessagingConfiguration(ServiceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error)
Create a new MessagingConfiguration for a service.
func (*ApiService) CreateNewFactor ¶ added in v0.11.0
func (c *ApiService) CreateNewFactor(ServiceSid string, Identity string, params *CreateNewFactorParams) (*VerifyV2NewFactor, error)
Create a new Factor for the Entity
func (*ApiService) CreateNotification ¶ added in v0.11.0
func (c *ApiService) CreateNotification(ServiceSid string, Identity string, ChallengeSid string, params *CreateNotificationParams) (*VerifyV2Notification, error)
Create a new Notification for the corresponding Challenge
func (*ApiService) CreateRateLimit ¶ added in v0.11.0
func (c *ApiService) CreateRateLimit(ServiceSid string, params *CreateRateLimitParams) (*VerifyV2RateLimit, error)
Create a new Rate Limit for a Service
func (*ApiService) CreateService ¶ added in v0.11.0
func (c *ApiService) CreateService(params *CreateServiceParams) (*VerifyV2Service, error)
Create a new Verification Service.
func (*ApiService) CreateVerification ¶ added in v0.11.0
func (c *ApiService) CreateVerification(ServiceSid string, params *CreateVerificationParams) (*VerifyV2Verification, error)
Create a new Verification using a Service
func (*ApiService) CreateVerificationCheck ¶ added in v0.11.0
func (c *ApiService) CreateVerificationCheck(ServiceSid string, params *CreateVerificationCheckParams) (*VerifyV2VerificationCheck, error)
challenge a specific Verification Check.
func (*ApiService) CreateWebhook ¶ added in v0.11.0
func (c *ApiService) CreateWebhook(ServiceSid string, params *CreateWebhookParams) (*VerifyV2Webhook, error)
Create a new Webhook for the Service
func (*ApiService) DeleteBucket ¶ added in v0.11.0
func (c *ApiService) DeleteBucket(ServiceSid string, RateLimitSid string, Sid string) error
Delete a specific Bucket.
func (*ApiService) DeleteEntity ¶ added in v0.11.0
func (c *ApiService) DeleteEntity(ServiceSid string, Identity string) error
Delete a specific Entity.
func (*ApiService) DeleteFactor ¶ added in v0.11.0
func (c *ApiService) DeleteFactor(ServiceSid string, Identity string, Sid string) error
Delete a specific Factor.
func (*ApiService) DeleteMessagingConfiguration ¶ added in v0.11.0
func (c *ApiService) DeleteMessagingConfiguration(ServiceSid string, Country string) error
Delete a specific MessagingConfiguration.
func (*ApiService) DeleteRateLimit ¶ added in v0.11.0
func (c *ApiService) DeleteRateLimit(ServiceSid string, Sid string) error
Delete a specific Rate Limit.
func (*ApiService) DeleteService ¶ added in v0.11.0
func (c *ApiService) DeleteService(Sid string) error
Delete a specific Verification Service Instance.
func (*ApiService) DeleteWebhook ¶ added in v0.11.0
func (c *ApiService) DeleteWebhook(ServiceSid string, Sid string) error
Delete a specific Webhook.
func (*ApiService) FetchAccessToken ¶ added in v0.20.1
func (c *ApiService) FetchAccessToken(ServiceSid string, Sid string) (*VerifyV2AccessToken, error)
Fetch an Access Token for the Entity
func (*ApiService) FetchBucket ¶ added in v0.11.0
func (c *ApiService) FetchBucket(ServiceSid string, RateLimitSid string, Sid string) (*VerifyV2Bucket, error)
Fetch a specific Bucket.
func (*ApiService) FetchChallenge ¶ added in v0.11.0
func (c *ApiService) FetchChallenge(ServiceSid string, Identity string, Sid string) (*VerifyV2Challenge, error)
Fetch a specific Challenge.
func (*ApiService) FetchEntity ¶ added in v0.11.0
func (c *ApiService) FetchEntity(ServiceSid string, Identity string) (*VerifyV2Entity, error)
Fetch a specific Entity.
func (*ApiService) FetchFactor ¶ added in v0.11.0
func (c *ApiService) FetchFactor(ServiceSid string, Identity string, Sid string) (*VerifyV2Factor, error)
Fetch a specific Factor.
func (*ApiService) FetchForm ¶ added in v0.11.0
func (c *ApiService) FetchForm(FormType string) (*VerifyV2Form, error)
Fetch the forms for a specific Form Type.
func (*ApiService) FetchMessagingConfiguration ¶ added in v0.11.0
func (c *ApiService) FetchMessagingConfiguration(ServiceSid string, Country string) (*VerifyV2MessagingConfiguration, error)
Fetch a specific MessagingConfiguration.
func (*ApiService) FetchRateLimit ¶ added in v0.11.0
func (c *ApiService) FetchRateLimit(ServiceSid string, Sid string) (*VerifyV2RateLimit, error)
Fetch a specific Rate Limit.
func (*ApiService) FetchService ¶ added in v0.11.0
func (c *ApiService) FetchService(Sid string) (*VerifyV2Service, error)
Fetch specific Verification Service Instance.
func (*ApiService) FetchVerification ¶ added in v0.11.0
func (c *ApiService) FetchVerification(ServiceSid string, Sid string) (*VerifyV2Verification, error)
Fetch a specific Verification
func (*ApiService) FetchVerificationAttempt ¶ added in v0.11.0
func (c *ApiService) FetchVerificationAttempt(Sid string) (*VerifyV2VerificationAttempt, error)
Fetch a specific verification attempt.
func (*ApiService) FetchWebhook ¶ added in v0.11.0
func (c *ApiService) FetchWebhook(ServiceSid string, Sid string) (*VerifyV2Webhook, error)
Fetch a specific Webhook.
func (*ApiService) ListBucket ¶ added in v0.11.0
func (c *ApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) ([]VerifyV2Bucket, error)
Lists Bucket records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListChallenge ¶ added in v0.11.0
func (c *ApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) ([]VerifyV2Challenge, error)
Lists Challenge records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListEntity ¶ added in v0.11.0
func (c *ApiService) ListEntity(ServiceSid string, params *ListEntityParams) ([]VerifyV2Entity, error)
Lists Entity records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListFactor ¶ added in v0.11.0
func (c *ApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) ([]VerifyV2Factor, error)
Lists Factor records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListMessagingConfiguration ¶ added in v0.11.0
func (c *ApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) ([]VerifyV2MessagingConfiguration, error)
Lists MessagingConfiguration records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListRateLimit ¶ added in v0.11.0
func (c *ApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParams) ([]VerifyV2RateLimit, error)
Lists RateLimit records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListService ¶ added in v0.11.0
func (c *ApiService) ListService(params *ListServiceParams) ([]VerifyV2Service, error)
Lists Service records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListVerificationAttempt ¶ added in v0.11.0
func (c *ApiService) ListVerificationAttempt(params *ListVerificationAttemptParams) ([]VerifyV2VerificationAttempt, error)
Lists VerificationAttempt records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListVerificationTemplate ¶ added in v0.14.2
func (c *ApiService) ListVerificationTemplate(params *ListVerificationTemplateParams) ([]VerifyV2VerificationTemplate, error)
Lists VerificationTemplate records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListWebhook ¶ added in v0.11.0
func (c *ApiService) ListWebhook(ServiceSid string, params *ListWebhookParams) ([]VerifyV2Webhook, error)
Lists Webhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageBucket ¶ added in v0.13.0
func (c *ApiService) PageBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams, pageToken, pageNumber string) (*ListBucketResponse, error)
Retrieve a single page of Bucket records from the API. Request is executed immediately.
func (*ApiService) PageChallenge ¶ added in v0.13.0
func (c *ApiService) PageChallenge(ServiceSid string, Identity string, params *ListChallengeParams, pageToken, pageNumber string) (*ListChallengeResponse, error)
Retrieve a single page of Challenge records from the API. Request is executed immediately.
func (*ApiService) PageEntity ¶ added in v0.13.0
func (c *ApiService) PageEntity(ServiceSid string, params *ListEntityParams, pageToken, pageNumber string) (*ListEntityResponse, error)
Retrieve a single page of Entity records from the API. Request is executed immediately.
func (*ApiService) PageFactor ¶ added in v0.13.0
func (c *ApiService) PageFactor(ServiceSid string, Identity string, params *ListFactorParams, pageToken, pageNumber string) (*ListFactorResponse, error)
Retrieve a single page of Factor records from the API. Request is executed immediately.
func (*ApiService) PageMessagingConfiguration ¶ added in v0.13.0
func (c *ApiService) PageMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams, pageToken, pageNumber string) (*ListMessagingConfigurationResponse, error)
Retrieve a single page of MessagingConfiguration records from the API. Request is executed immediately.
func (*ApiService) PageRateLimit ¶ added in v0.13.0
func (c *ApiService) PageRateLimit(ServiceSid string, params *ListRateLimitParams, pageToken, pageNumber string) (*ListRateLimitResponse, error)
Retrieve a single page of RateLimit records from the API. Request is executed immediately.
func (*ApiService) PageService ¶ added in v0.13.0
func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
Retrieve a single page of Service records from the API. Request is executed immediately.
func (*ApiService) PageVerificationAttempt ¶ added in v0.13.0
func (c *ApiService) PageVerificationAttempt(params *ListVerificationAttemptParams, pageToken, pageNumber string) (*ListVerificationAttemptResponse, error)
Retrieve a single page of VerificationAttempt records from the API. Request is executed immediately.
func (*ApiService) PageVerificationTemplate ¶ added in v0.14.2
func (c *ApiService) PageVerificationTemplate(params *ListVerificationTemplateParams, pageToken, pageNumber string) (*ListVerificationTemplateResponse, error)
Retrieve a single page of VerificationTemplate records from the API. Request is executed immediately.
func (*ApiService) PageWebhook ¶ added in v0.13.0
func (c *ApiService) PageWebhook(ServiceSid string, params *ListWebhookParams, pageToken, pageNumber string) (*ListWebhookResponse, error)
Retrieve a single page of Webhook records from the API. Request is executed immediately.
func (*ApiService) StreamBucket ¶ added in v0.13.0
func (c *ApiService) StreamBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (chan VerifyV2Bucket, error)
Streams Bucket records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamChallenge ¶ added in v0.13.0
func (c *ApiService) StreamChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (chan VerifyV2Challenge, error)
Streams Challenge records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamEntity ¶ added in v0.13.0
func (c *ApiService) StreamEntity(ServiceSid string, params *ListEntityParams) (chan VerifyV2Entity, error)
Streams Entity records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamFactor ¶ added in v0.13.0
func (c *ApiService) StreamFactor(ServiceSid string, Identity string, params *ListFactorParams) (chan VerifyV2Factor, error)
Streams Factor records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamMessagingConfiguration ¶ added in v0.13.0
func (c *ApiService) StreamMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (chan VerifyV2MessagingConfiguration, error)
Streams MessagingConfiguration records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamRateLimit ¶ added in v0.13.0
func (c *ApiService) StreamRateLimit(ServiceSid string, params *ListRateLimitParams) (chan VerifyV2RateLimit, error)
Streams RateLimit records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamService ¶ added in v0.13.0
func (c *ApiService) StreamService(params *ListServiceParams) (chan VerifyV2Service, error)
Streams Service records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamVerificationAttempt ¶ added in v0.13.0
func (c *ApiService) StreamVerificationAttempt(params *ListVerificationAttemptParams) (chan VerifyV2VerificationAttempt, error)
Streams VerificationAttempt records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamVerificationTemplate ¶ added in v0.14.2
func (c *ApiService) StreamVerificationTemplate(params *ListVerificationTemplateParams) (chan VerifyV2VerificationTemplate, error)
Streams VerificationTemplate records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamWebhook ¶ added in v0.13.0
func (c *ApiService) StreamWebhook(ServiceSid string, params *ListWebhookParams) (chan VerifyV2Webhook, error)
Streams Webhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateBucket ¶ added in v0.11.0
func (c *ApiService) UpdateBucket(ServiceSid string, RateLimitSid string, Sid string, params *UpdateBucketParams) (*VerifyV2Bucket, error)
Update a specific Bucket.
func (*ApiService) UpdateChallenge ¶ added in v0.11.0
func (c *ApiService) UpdateChallenge(ServiceSid string, Identity string, Sid string, params *UpdateChallengeParams) (*VerifyV2Challenge, error)
Verify a specific Challenge.
func (*ApiService) UpdateFactor ¶ added in v0.11.0
func (c *ApiService) UpdateFactor(ServiceSid string, Identity string, Sid string, params *UpdateFactorParams) (*VerifyV2Factor, error)
Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param.
func (*ApiService) UpdateMessagingConfiguration ¶ added in v0.11.0
func (c *ApiService) UpdateMessagingConfiguration(ServiceSid string, Country string, params *UpdateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error)
Update a specific MessagingConfiguration
func (*ApiService) UpdateRateLimit ¶ added in v0.11.0
func (c *ApiService) UpdateRateLimit(ServiceSid string, Sid string, params *UpdateRateLimitParams) (*VerifyV2RateLimit, error)
Update a specific Rate Limit.
func (*ApiService) UpdateService ¶ added in v0.11.0
func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*VerifyV2Service, error)
Update a specific Verification Service.
func (*ApiService) UpdateVerification ¶ added in v0.11.0
func (c *ApiService) UpdateVerification(ServiceSid string, Sid string, params *UpdateVerificationParams) (*VerifyV2Verification, error)
Update a Verification status
func (*ApiService) UpdateWebhook ¶ added in v0.11.0
func (c *ApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2Webhook, error)
type CreateAccessTokenParams ¶
type CreateAccessTokenParams struct { // The friendly name of the factor that is going to be created with this access token FactorFriendlyName *string `json:"FactorFriendlyName,omitempty"` // The Type of this Factor. Eg. `push` FactorType *string `json:"FactorType,omitempty"` // The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. Identity *string `json:"Identity,omitempty"` }
Optional parameters for the method 'CreateAccessToken'
func (*CreateAccessTokenParams) SetFactorFriendlyName ¶ added in v0.18.2
func (params *CreateAccessTokenParams) SetFactorFriendlyName(FactorFriendlyName string) *CreateAccessTokenParams
func (*CreateAccessTokenParams) SetFactorType ¶
func (params *CreateAccessTokenParams) SetFactorType(FactorType string) *CreateAccessTokenParams
func (*CreateAccessTokenParams) SetIdentity ¶
func (params *CreateAccessTokenParams) SetIdentity(Identity string) *CreateAccessTokenParams
type CreateBucketParams ¶
type CreateBucketParams struct { // Number of seconds that the rate limit will be enforced over. Interval *int `json:"Interval,omitempty"` // Maximum number of requests permitted in during the interval. Max *int `json:"Max,omitempty"` }
Optional parameters for the method 'CreateBucket'
func (*CreateBucketParams) SetInterval ¶
func (params *CreateBucketParams) SetInterval(Interval int) *CreateBucketParams
func (*CreateBucketParams) SetMax ¶
func (params *CreateBucketParams) SetMax(Max int) *CreateBucketParams
type CreateChallengeParams ¶
type CreateChallengeParams struct { // Optional payload used to verify the Challenge upon creation. Only used with a Factor of type `totp` to carry the TOTP code that needs to be verified. For `TOTP` this value must be between 3 and 8 characters long. AuthPayload *string `json:"AuthPayload,omitempty"` // A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field, the label can be up to 36 characters in length and the value can be up to 128 characters in length. Used when `factor_type` is `push`. There can be up to 20 details fields. DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` // Shown to the user when the push notification arrives. Required when `factor_type` is `push`. Can be up to 256 characters in length DetailsMessage *string `json:"Details.Message,omitempty"` // The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` // The unique SID identifier of the Factor. FactorSid *string `json:"FactorSid,omitempty"` // Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}`. Can be up to 1024 characters in length HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` }
Optional parameters for the method 'CreateChallenge'
func (*CreateChallengeParams) SetAuthPayload ¶
func (params *CreateChallengeParams) SetAuthPayload(AuthPayload string) *CreateChallengeParams
func (*CreateChallengeParams) SetDetailsFields ¶
func (params *CreateChallengeParams) SetDetailsFields(DetailsFields []map[string]interface{}) *CreateChallengeParams
func (*CreateChallengeParams) SetDetailsMessage ¶
func (params *CreateChallengeParams) SetDetailsMessage(DetailsMessage string) *CreateChallengeParams
func (*CreateChallengeParams) SetExpirationDate ¶
func (params *CreateChallengeParams) SetExpirationDate(ExpirationDate time.Time) *CreateChallengeParams
func (*CreateChallengeParams) SetFactorSid ¶
func (params *CreateChallengeParams) SetFactorSid(FactorSid string) *CreateChallengeParams
func (*CreateChallengeParams) SetHiddenDetails ¶
func (params *CreateChallengeParams) SetHiddenDetails(HiddenDetails map[string]interface{}) *CreateChallengeParams
type CreateEntityParams ¶
type CreateEntityParams struct { // The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters. Identity *string `json:"Identity,omitempty"` }
Optional parameters for the method 'CreateEntity'
func (*CreateEntityParams) SetIdentity ¶
func (params *CreateEntityParams) SetIdentity(Identity string) *CreateEntityParams
type CreateMessagingConfigurationParams ¶
type CreateMessagingConfigurationParams struct { // The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. Country *string `json:"Country,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` }
Optional parameters for the method 'CreateMessagingConfiguration'
func (*CreateMessagingConfigurationParams) SetCountry ¶
func (params *CreateMessagingConfigurationParams) SetCountry(Country string) *CreateMessagingConfigurationParams
func (*CreateMessagingConfigurationParams) SetMessagingServiceSid ¶
func (params *CreateMessagingConfigurationParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateMessagingConfigurationParams
type CreateNewFactorParams ¶
type CreateNewFactorParams struct { // The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` BindingAlg *string `json:"Binding.Alg,omitempty"` // The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64. Required when `factor_type` is `push` BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` // The shared secret for TOTP factors encoded in Base32. This can be provided when creating the Factor, otherwise it will be generated. Used when `factor_type` is `totp` BindingSecret *string `json:"Binding.Secret,omitempty"` // The algorithm used to derive the TOTP codes. Can be `sha1`, `sha256` or `sha512`. Defaults to `sha1`. Used when `factor_type` is `totp` ConfigAlg *string `json:"Config.Alg,omitempty"` // The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. It can be up to 100 characters long. Required when `factor_type` is `push`. ConfigAppId *string `json:"Config.AppId,omitempty"` // Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. The default value is defined at the service level in the property `totp.code_length`. If not configured defaults to 6. Used when `factor_type` is `totp` ConfigCodeLength *int `json:"Config.CodeLength,omitempty"` // The transport technology used to generate the Notification Token. Can be `apn`, `fcm` or `none`. Required when `factor_type` is `push`. ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` // For APN, the device token. For FCM, the registration token. It is used to send the push notifications. Must be between 32 and 255 characters long. Required when `factor_type` is `push`. ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` // The Verify Push SDK version used to configure the factor Required when `factor_type` is `push` ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` // The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. The default value is defined at the service level in the property `totp.skew`. If not configured defaults to 1. Used when `factor_type` is `totp` ConfigSkew *int `json:"Config.Skew,omitempty"` // Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. The default value is defined at the service level in the property `totp.time_step`. Defaults to 30 seconds if not configured. Used when `factor_type` is `totp` ConfigTimeStep *int `json:"Config.TimeStep,omitempty"` // The Type of this Factor. Currently `push` and `totp` are supported. For `totp` to work, you need to contact [Twilio sales](https://www.twilio.com/help/sales) first to have the Verify TOTP feature enabled for your Twilio account. FactorType *string `json:"FactorType,omitempty"` // The friendly name of this Factor. This can be any string up to 64 characters, meant for humans to distinguish between Factors. For `factor_type` `push`, this could be a device name. For `factor_type` `totp`, this value is used as the “account name” in constructing the `binding.uri` property. At the same time, we recommend avoiding providing PII. FriendlyName *string `json:"FriendlyName,omitempty"` }
Optional parameters for the method 'CreateNewFactor'
func (*CreateNewFactorParams) SetBindingAlg ¶
func (params *CreateNewFactorParams) SetBindingAlg(BindingAlg string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetBindingPublicKey ¶
func (params *CreateNewFactorParams) SetBindingPublicKey(BindingPublicKey string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetBindingSecret ¶
func (params *CreateNewFactorParams) SetBindingSecret(BindingSecret string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigAlg ¶
func (params *CreateNewFactorParams) SetConfigAlg(ConfigAlg string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigAppId ¶
func (params *CreateNewFactorParams) SetConfigAppId(ConfigAppId string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigCodeLength ¶
func (params *CreateNewFactorParams) SetConfigCodeLength(ConfigCodeLength int) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigNotificationPlatform ¶
func (params *CreateNewFactorParams) SetConfigNotificationPlatform(ConfigNotificationPlatform string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigNotificationToken ¶
func (params *CreateNewFactorParams) SetConfigNotificationToken(ConfigNotificationToken string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigSdkVersion ¶
func (params *CreateNewFactorParams) SetConfigSdkVersion(ConfigSdkVersion string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigSkew ¶
func (params *CreateNewFactorParams) SetConfigSkew(ConfigSkew int) *CreateNewFactorParams
func (*CreateNewFactorParams) SetConfigTimeStep ¶
func (params *CreateNewFactorParams) SetConfigTimeStep(ConfigTimeStep int) *CreateNewFactorParams
func (*CreateNewFactorParams) SetFactorType ¶
func (params *CreateNewFactorParams) SetFactorType(FactorType string) *CreateNewFactorParams
func (*CreateNewFactorParams) SetFriendlyName ¶
func (params *CreateNewFactorParams) SetFriendlyName(FriendlyName string) *CreateNewFactorParams
type CreateNotificationParams ¶
type CreateNotificationParams struct { // How long, in seconds, the notification is valid. Can be an integer between 0 and 300. Default is 300. Delivery is attempted until the TTL elapses, even if the device is offline. 0 means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. Ttl *int `json:"Ttl,omitempty"` }
Optional parameters for the method 'CreateNotification'
func (*CreateNotificationParams) SetTtl ¶
func (params *CreateNotificationParams) SetTtl(Ttl int) *CreateNotificationParams
type CreateRateLimitParams ¶
type CreateRateLimitParams struct { // Description of this Rate Limit Description *string `json:"Description,omitempty"` // Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** UniqueName *string `json:"UniqueName,omitempty"` }
Optional parameters for the method 'CreateRateLimit'
func (*CreateRateLimitParams) SetDescription ¶
func (params *CreateRateLimitParams) SetDescription(Description string) *CreateRateLimitParams
func (*CreateRateLimitParams) SetUniqueName ¶
func (params *CreateRateLimitParams) SetUniqueName(UniqueName string) *CreateRateLimitParams
type CreateServiceParams ¶
type CreateServiceParams struct { // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. CodeLength *int `json:"CodeLength,omitempty"` // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` // The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. DefaultTemplateSid *string `json:"DefaultTemplateSid,omitempty"` DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` // Whether to ask the user to press a number before delivering the verify code in a phone call. DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` // A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** FriendlyName *string `json:"FriendlyName,omitempty"` // Whether to perform a lookup with each verification started and return info about the phone number. LookupEnabled *bool `json:"LookupEnabled,omitempty"` // Whether to pass PSD2 transaction parameters when starting a verification. Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` // Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 TotpCodeLength *int `json:"Totp.CodeLength,omitempty"` // Optional configuration for the TOTP factors. Set TOTP Issuer for this service. This will allow to configure the issuer of the TOTP URI. Defaults to the service friendly name if not provided. TotpIssuer *string `json:"Totp.Issuer,omitempty"` // Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 TotpSkew *int `json:"Totp.Skew,omitempty"` // Optional configuration for the TOTP factors. Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. Defaults to 30 seconds TotpTimeStep *int `json:"Totp.TimeStep,omitempty"` // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. TtsName *string `json:"TtsName,omitempty"` }
Optional parameters for the method 'CreateService'
func (*CreateServiceParams) SetCodeLength ¶
func (params *CreateServiceParams) SetCodeLength(CodeLength int) *CreateServiceParams
func (*CreateServiceParams) SetCustomCodeEnabled ¶
func (params *CreateServiceParams) SetCustomCodeEnabled(CustomCodeEnabled bool) *CreateServiceParams
func (*CreateServiceParams) SetDefaultTemplateSid ¶ added in v0.18.0
func (params *CreateServiceParams) SetDefaultTemplateSid(DefaultTemplateSid string) *CreateServiceParams
func (*CreateServiceParams) SetDoNotShareWarningEnabled ¶
func (params *CreateServiceParams) SetDoNotShareWarningEnabled(DoNotShareWarningEnabled bool) *CreateServiceParams
func (*CreateServiceParams) SetDtmfInputRequired ¶
func (params *CreateServiceParams) SetDtmfInputRequired(DtmfInputRequired bool) *CreateServiceParams
func (*CreateServiceParams) SetFriendlyName ¶
func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
func (*CreateServiceParams) SetLookupEnabled ¶
func (params *CreateServiceParams) SetLookupEnabled(LookupEnabled bool) *CreateServiceParams
func (*CreateServiceParams) SetPsd2Enabled ¶
func (params *CreateServiceParams) SetPsd2Enabled(Psd2Enabled bool) *CreateServiceParams
func (*CreateServiceParams) SetPushApnCredentialSid ¶
func (params *CreateServiceParams) SetPushApnCredentialSid(PushApnCredentialSid string) *CreateServiceParams
func (*CreateServiceParams) SetPushFcmCredentialSid ¶
func (params *CreateServiceParams) SetPushFcmCredentialSid(PushFcmCredentialSid string) *CreateServiceParams
func (*CreateServiceParams) SetPushIncludeDate ¶
func (params *CreateServiceParams) SetPushIncludeDate(PushIncludeDate bool) *CreateServiceParams
func (*CreateServiceParams) SetSkipSmsToLandlines ¶
func (params *CreateServiceParams) SetSkipSmsToLandlines(SkipSmsToLandlines bool) *CreateServiceParams
func (*CreateServiceParams) SetTotpCodeLength ¶
func (params *CreateServiceParams) SetTotpCodeLength(TotpCodeLength int) *CreateServiceParams
func (*CreateServiceParams) SetTotpIssuer ¶
func (params *CreateServiceParams) SetTotpIssuer(TotpIssuer string) *CreateServiceParams
func (*CreateServiceParams) SetTotpSkew ¶
func (params *CreateServiceParams) SetTotpSkew(TotpSkew int) *CreateServiceParams
func (*CreateServiceParams) SetTotpTimeStep ¶
func (params *CreateServiceParams) SetTotpTimeStep(TotpTimeStep int) *CreateServiceParams
func (*CreateServiceParams) SetTtsName ¶
func (params *CreateServiceParams) SetTtsName(TtsName string) *CreateServiceParams
type CreateVerificationCheckParams ¶
type CreateVerificationCheckParams struct { // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. Amount *string `json:"Amount,omitempty"` // The 4-10 character string being verified. Code *string `json:"Code,omitempty"` // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. Payee *string `json:"Payee,omitempty"` // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). To *string `json:"To,omitempty"` // A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. VerificationSid *string `json:"VerificationSid,omitempty"` }
Optional parameters for the method 'CreateVerificationCheck'
func (*CreateVerificationCheckParams) SetAmount ¶
func (params *CreateVerificationCheckParams) SetAmount(Amount string) *CreateVerificationCheckParams
func (*CreateVerificationCheckParams) SetCode ¶
func (params *CreateVerificationCheckParams) SetCode(Code string) *CreateVerificationCheckParams
func (*CreateVerificationCheckParams) SetPayee ¶
func (params *CreateVerificationCheckParams) SetPayee(Payee string) *CreateVerificationCheckParams
func (*CreateVerificationCheckParams) SetTo ¶
func (params *CreateVerificationCheckParams) SetTo(To string) *CreateVerificationCheckParams
func (*CreateVerificationCheckParams) SetVerificationSid ¶
func (params *CreateVerificationCheckParams) SetVerificationSid(VerificationSid string) *CreateVerificationCheckParams
type CreateVerificationParams ¶
type CreateVerificationParams struct { // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. Amount *string `json:"Amount,omitempty"` // Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. AppHash *string `json:"AppHash,omitempty"` // The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms`, `whatsapp` or `call`. Channel *string `json:"Channel,omitempty"` // [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` // A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. CustomCode *string `json:"CustomCode,omitempty"` // A custom user defined friendly name that overwrites the existing one in the verification message CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` // The text of a custom message to use for the verification. CustomMessage *string `json:"CustomMessage,omitempty"` // The locale to use for the verification SMS, WhatsApp or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` Locale *string `json:"Locale,omitempty"` // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. Payee *string `json:"Payee,omitempty"` // The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` // The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). SendDigits *string `json:"SendDigits,omitempty"` // A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. TemplateCustomSubstitutions *string `json:"TemplateCustomSubstitutions,omitempty"` // The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS channel only. TemplateSid *string `json:"TemplateSid,omitempty"` // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). To *string `json:"To,omitempty"` }
Optional parameters for the method 'CreateVerification'
func (*CreateVerificationParams) SetAmount ¶
func (params *CreateVerificationParams) SetAmount(Amount string) *CreateVerificationParams
func (*CreateVerificationParams) SetAppHash ¶
func (params *CreateVerificationParams) SetAppHash(AppHash string) *CreateVerificationParams
func (*CreateVerificationParams) SetChannel ¶
func (params *CreateVerificationParams) SetChannel(Channel string) *CreateVerificationParams
func (*CreateVerificationParams) SetChannelConfiguration ¶
func (params *CreateVerificationParams) SetChannelConfiguration(ChannelConfiguration map[string]interface{}) *CreateVerificationParams
func (*CreateVerificationParams) SetCustomCode ¶
func (params *CreateVerificationParams) SetCustomCode(CustomCode string) *CreateVerificationParams
func (*CreateVerificationParams) SetCustomFriendlyName ¶
func (params *CreateVerificationParams) SetCustomFriendlyName(CustomFriendlyName string) *CreateVerificationParams
func (*CreateVerificationParams) SetCustomMessage ¶
func (params *CreateVerificationParams) SetCustomMessage(CustomMessage string) *CreateVerificationParams
func (*CreateVerificationParams) SetLocale ¶
func (params *CreateVerificationParams) SetLocale(Locale string) *CreateVerificationParams
func (*CreateVerificationParams) SetPayee ¶
func (params *CreateVerificationParams) SetPayee(Payee string) *CreateVerificationParams
func (*CreateVerificationParams) SetRateLimits ¶
func (params *CreateVerificationParams) SetRateLimits(RateLimits map[string]interface{}) *CreateVerificationParams
func (*CreateVerificationParams) SetSendDigits ¶
func (params *CreateVerificationParams) SetSendDigits(SendDigits string) *CreateVerificationParams
func (*CreateVerificationParams) SetTemplateCustomSubstitutions ¶ added in v0.18.0
func (params *CreateVerificationParams) SetTemplateCustomSubstitutions(TemplateCustomSubstitutions string) *CreateVerificationParams
func (*CreateVerificationParams) SetTemplateSid ¶ added in v0.14.0
func (params *CreateVerificationParams) SetTemplateSid(TemplateSid string) *CreateVerificationParams
func (*CreateVerificationParams) SetTo ¶
func (params *CreateVerificationParams) SetTo(To string) *CreateVerificationParams
type CreateWebhookParams ¶
type CreateWebhookParams struct { // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` EventTypes *[]string `json:"EventTypes,omitempty"` // The string that you assigned to describe the webhook. **This value should not contain PII.** FriendlyName *string `json:"FriendlyName,omitempty"` // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` Status *string `json:"Status,omitempty"` // The webhook version. Default value is `v2` which includes all the latest fields. Version `v1` is legacy and may be removed in the future. Version *string `json:"Version,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"WebhookUrl,omitempty"` }
Optional parameters for the method 'CreateWebhook'
func (*CreateWebhookParams) SetEventTypes ¶
func (params *CreateWebhookParams) SetEventTypes(EventTypes []string) *CreateWebhookParams
func (*CreateWebhookParams) SetFriendlyName ¶
func (params *CreateWebhookParams) SetFriendlyName(FriendlyName string) *CreateWebhookParams
func (*CreateWebhookParams) SetStatus ¶
func (params *CreateWebhookParams) SetStatus(Status string) *CreateWebhookParams
func (*CreateWebhookParams) SetVersion ¶ added in v0.13.0
func (params *CreateWebhookParams) SetVersion(Version string) *CreateWebhookParams
func (*CreateWebhookParams) SetWebhookUrl ¶
func (params *CreateWebhookParams) SetWebhookUrl(WebhookUrl string) *CreateWebhookParams
type ListBucketParams ¶
type ListBucketParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListBucket'
func (*ListBucketParams) SetLimit ¶ added in v0.13.0
func (params *ListBucketParams) SetLimit(Limit int) *ListBucketParams
func (*ListBucketParams) SetPageSize ¶
func (params *ListBucketParams) SetPageSize(PageSize int) *ListBucketParams
type ListBucketResponse ¶
type ListBucketResponse struct { Buckets []VerifyV2Bucket `json:"buckets,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListBucketResponse struct for ListBucketResponse
type ListChallengeParams ¶
type ListChallengeParams struct { // The unique SID identifier of the Factor. FactorSid *string `json:"FactorSid,omitempty"` // The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. Status *string `json:"Status,omitempty"` // The desired sort order of the Challenges list. One of `asc` or `desc` for ascending and descending respectively. Defaults to `asc`. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListChallenge'
func (*ListChallengeParams) SetFactorSid ¶
func (params *ListChallengeParams) SetFactorSid(FactorSid string) *ListChallengeParams
func (*ListChallengeParams) SetLimit ¶ added in v0.13.0
func (params *ListChallengeParams) SetLimit(Limit int) *ListChallengeParams
func (*ListChallengeParams) SetOrder ¶ added in v0.14.1
func (params *ListChallengeParams) SetOrder(Order string) *ListChallengeParams
func (*ListChallengeParams) SetPageSize ¶
func (params *ListChallengeParams) SetPageSize(PageSize int) *ListChallengeParams
func (*ListChallengeParams) SetStatus ¶
func (params *ListChallengeParams) SetStatus(Status string) *ListChallengeParams
type ListChallengeResponse ¶
type ListChallengeResponse struct { Challenges []VerifyV2Challenge `json:"challenges,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListChallengeResponse struct for ListChallengeResponse
type ListEntityParams ¶
type ListEntityParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListEntity'
func (*ListEntityParams) SetLimit ¶ added in v0.13.0
func (params *ListEntityParams) SetLimit(Limit int) *ListEntityParams
func (*ListEntityParams) SetPageSize ¶
func (params *ListEntityParams) SetPageSize(PageSize int) *ListEntityParams
type ListEntityResponse ¶
type ListEntityResponse struct { Entities []VerifyV2Entity `json:"entities,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListEntityResponse struct for ListEntityResponse
type ListFactorParams ¶
type ListFactorParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListFactor'
func (*ListFactorParams) SetLimit ¶ added in v0.13.0
func (params *ListFactorParams) SetLimit(Limit int) *ListFactorParams
func (*ListFactorParams) SetPageSize ¶
func (params *ListFactorParams) SetPageSize(PageSize int) *ListFactorParams
type ListFactorResponse ¶
type ListFactorResponse struct { Factors []VerifyV2Factor `json:"factors,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListFactorResponse struct for ListFactorResponse
type ListMessagingConfigurationParams ¶
type ListMessagingConfigurationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListMessagingConfiguration'
func (*ListMessagingConfigurationParams) SetLimit ¶ added in v0.13.0
func (params *ListMessagingConfigurationParams) SetLimit(Limit int) *ListMessagingConfigurationParams
func (*ListMessagingConfigurationParams) SetPageSize ¶
func (params *ListMessagingConfigurationParams) SetPageSize(PageSize int) *ListMessagingConfigurationParams
type ListMessagingConfigurationResponse ¶
type ListMessagingConfigurationResponse struct { MessagingConfigurations []VerifyV2MessagingConfiguration `json:"messaging_configurations,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListMessagingConfigurationResponse struct for ListMessagingConfigurationResponse
type ListRateLimitParams ¶
type ListRateLimitParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListRateLimit'
func (*ListRateLimitParams) SetLimit ¶ added in v0.13.0
func (params *ListRateLimitParams) SetLimit(Limit int) *ListRateLimitParams
func (*ListRateLimitParams) SetPageSize ¶
func (params *ListRateLimitParams) SetPageSize(PageSize int) *ListRateLimitParams
type ListRateLimitResponse ¶
type ListRateLimitResponse struct { Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` RateLimits []VerifyV2RateLimit `json:"rate_limits,omitempty"` }
ListRateLimitResponse struct for ListRateLimitResponse
type ListServiceParams ¶
type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListService'
func (*ListServiceParams) SetLimit ¶ added in v0.13.0
func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams
func (*ListServiceParams) SetPageSize ¶
func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams
type ListServiceResponse ¶
type ListServiceResponse struct { Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` Services []VerifyV2Service `json:"services,omitempty"` }
ListServiceResponse struct for ListServiceResponse
type ListVerificationAttemptParams ¶
type ListVerificationAttemptParams struct { // Datetime filter used to query Verification Attempts created after this datetime. Given as GMT in RFC 2822 format. DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` // Datetime filter used to query Verification Attempts created before this datetime. Given as GMT in RFC 2822 format. DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` // Destination of a verification. It is phone number in E.164 format. ChannelDataTo *string `json:"ChannelData.To,omitempty"` // Filter used to query Verification Attempts sent to the specified destination country. Country *string `json:"Country,omitempty"` // Filter used to query Verification Attempts by communication channel. Valid values are `SMS` and `CALL` Channel *string `json:"Channel,omitempty"` // Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. VerifyServiceSid *string `json:"VerifyServiceSid,omitempty"` // Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. VerificationSid *string `json:"VerificationSid,omitempty"` // Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListVerificationAttempt'
func (*ListVerificationAttemptParams) SetChannel ¶ added in v0.21.0
func (params *ListVerificationAttemptParams) SetChannel(Channel string) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetChannelDataTo ¶
func (params *ListVerificationAttemptParams) SetChannelDataTo(ChannelDataTo string) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetCountry ¶ added in v0.21.0
func (params *ListVerificationAttemptParams) SetCountry(Country string) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetDateCreatedAfter ¶
func (params *ListVerificationAttemptParams) SetDateCreatedAfter(DateCreatedAfter time.Time) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetDateCreatedBefore ¶
func (params *ListVerificationAttemptParams) SetDateCreatedBefore(DateCreatedBefore time.Time) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetLimit ¶ added in v0.13.0
func (params *ListVerificationAttemptParams) SetLimit(Limit int) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetPageSize ¶
func (params *ListVerificationAttemptParams) SetPageSize(PageSize int) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetStatus ¶ added in v0.21.0
func (params *ListVerificationAttemptParams) SetStatus(Status string) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetVerificationSid ¶ added in v0.21.0
func (params *ListVerificationAttemptParams) SetVerificationSid(VerificationSid string) *ListVerificationAttemptParams
func (*ListVerificationAttemptParams) SetVerifyServiceSid ¶ added in v0.21.0
func (params *ListVerificationAttemptParams) SetVerifyServiceSid(VerifyServiceSid string) *ListVerificationAttemptParams
type ListVerificationAttemptResponse ¶
type ListVerificationAttemptResponse struct { Attempts []VerifyV2VerificationAttempt `json:"attempts,omitempty"` Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` }
ListVerificationAttemptResponse struct for ListVerificationAttemptResponse
type ListVerificationAttemptResponseMeta ¶
type ListVerificationAttemptResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` Key string `json:"key,omitempty"` NextPageUrl string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` }
ListVerificationAttemptResponseMeta struct for ListVerificationAttemptResponseMeta
type ListVerificationTemplateParams ¶ added in v0.14.2
type ListVerificationTemplateParams struct { // String filter used to query templates with a given friendly name FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListVerificationTemplate'
func (*ListVerificationTemplateParams) SetFriendlyName ¶ added in v0.14.2
func (params *ListVerificationTemplateParams) SetFriendlyName(FriendlyName string) *ListVerificationTemplateParams
func (*ListVerificationTemplateParams) SetLimit ¶ added in v0.14.2
func (params *ListVerificationTemplateParams) SetLimit(Limit int) *ListVerificationTemplateParams
func (*ListVerificationTemplateParams) SetPageSize ¶ added in v0.14.2
func (params *ListVerificationTemplateParams) SetPageSize(PageSize int) *ListVerificationTemplateParams
type ListVerificationTemplateResponse ¶ added in v0.14.2
type ListVerificationTemplateResponse struct { Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` Templates []VerifyV2VerificationTemplate `json:"templates,omitempty"` }
ListVerificationTemplateResponse struct for ListVerificationTemplateResponse
type ListWebhookParams ¶
type ListWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListWebhook'
func (*ListWebhookParams) SetLimit ¶ added in v0.13.0
func (params *ListWebhookParams) SetLimit(Limit int) *ListWebhookParams
func (*ListWebhookParams) SetPageSize ¶
func (params *ListWebhookParams) SetPageSize(PageSize int) *ListWebhookParams
type ListWebhookResponse ¶
type ListWebhookResponse struct { Meta ListVerificationAttemptResponseMeta `json:"meta,omitempty"` Webhooks []VerifyV2Webhook `json:"webhooks,omitempty"` }
ListWebhookResponse struct for ListWebhookResponse
type UpdateBucketParams ¶
type UpdateBucketParams struct { // Number of seconds that the rate limit will be enforced over. Interval *int `json:"Interval,omitempty"` // Maximum number of requests permitted in during the interval. Max *int `json:"Max,omitempty"` }
Optional parameters for the method 'UpdateBucket'
func (*UpdateBucketParams) SetInterval ¶
func (params *UpdateBucketParams) SetInterval(Interval int) *UpdateBucketParams
func (*UpdateBucketParams) SetMax ¶
func (params *UpdateBucketParams) SetMax(Max int) *UpdateBucketParams
type UpdateChallengeParams ¶
type UpdateChallengeParams struct { // The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. For `TOTP` this value must be between 3 and 8 characters long. For `Push` this value can be up to 5456 characters in length AuthPayload *string `json:"AuthPayload,omitempty"` }
Optional parameters for the method 'UpdateChallenge'
func (*UpdateChallengeParams) SetAuthPayload ¶
func (params *UpdateChallengeParams) SetAuthPayload(AuthPayload string) *UpdateChallengeParams
type UpdateFactorParams ¶
type UpdateFactorParams struct { // The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. AuthPayload *string `json:"AuthPayload,omitempty"` // The algorithm used to derive the TOTP codes. Can be `sha1`, `sha256` or `sha512` ConfigAlg *string `json:"Config.Alg,omitempty"` // Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive ConfigCodeLength *int `json:"Config.CodeLength,omitempty"` // The transport technology used to generate the Notification Token. Can be `apn`, `fcm` or `none`. Required when `factor_type` is `push`. ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` // For APN, the device token. For FCM, the registration token. It is used to send the push notifications. Required when `factor_type` is `push`. If specified, this value must be between 32 and 255 characters long. ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` // The Verify Push SDK version used to configure the factor ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` // The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive ConfigSkew *int `json:"Config.Skew,omitempty"` // Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive ConfigTimeStep *int `json:"Config.TimeStep,omitempty"` // The new friendly name of this Factor. It can be up to 64 characters. FriendlyName *string `json:"FriendlyName,omitempty"` }
Optional parameters for the method 'UpdateFactor'
func (*UpdateFactorParams) SetAuthPayload ¶
func (params *UpdateFactorParams) SetAuthPayload(AuthPayload string) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigAlg ¶
func (params *UpdateFactorParams) SetConfigAlg(ConfigAlg string) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigCodeLength ¶
func (params *UpdateFactorParams) SetConfigCodeLength(ConfigCodeLength int) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigNotificationPlatform ¶ added in v0.18.1
func (params *UpdateFactorParams) SetConfigNotificationPlatform(ConfigNotificationPlatform string) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigNotificationToken ¶
func (params *UpdateFactorParams) SetConfigNotificationToken(ConfigNotificationToken string) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigSdkVersion ¶
func (params *UpdateFactorParams) SetConfigSdkVersion(ConfigSdkVersion string) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigSkew ¶
func (params *UpdateFactorParams) SetConfigSkew(ConfigSkew int) *UpdateFactorParams
func (*UpdateFactorParams) SetConfigTimeStep ¶
func (params *UpdateFactorParams) SetConfigTimeStep(ConfigTimeStep int) *UpdateFactorParams
func (*UpdateFactorParams) SetFriendlyName ¶
func (params *UpdateFactorParams) SetFriendlyName(FriendlyName string) *UpdateFactorParams
type UpdateMessagingConfigurationParams ¶
type UpdateMessagingConfigurationParams struct { // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` }
Optional parameters for the method 'UpdateMessagingConfiguration'
func (*UpdateMessagingConfigurationParams) SetMessagingServiceSid ¶
func (params *UpdateMessagingConfigurationParams) SetMessagingServiceSid(MessagingServiceSid string) *UpdateMessagingConfigurationParams
type UpdateRateLimitParams ¶
type UpdateRateLimitParams struct { // Description of this Rate Limit Description *string `json:"Description,omitempty"` }
Optional parameters for the method 'UpdateRateLimit'
func (*UpdateRateLimitParams) SetDescription ¶
func (params *UpdateRateLimitParams) SetDescription(Description string) *UpdateRateLimitParams
type UpdateServiceParams ¶
type UpdateServiceParams struct { // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. CodeLength *int `json:"CodeLength,omitempty"` // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` // The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. DefaultTemplateSid *string `json:"DefaultTemplateSid,omitempty"` DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` // Whether to ask the user to press a number before delivering the verify code in a phone call. DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` // A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** FriendlyName *string `json:"FriendlyName,omitempty"` // Whether to perform a lookup with each verification started and return info about the phone number. LookupEnabled *bool `json:"LookupEnabled,omitempty"` // Whether to pass PSD2 transaction parameters when starting a verification. Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` // Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 TotpCodeLength *int `json:"Totp.CodeLength,omitempty"` // Optional configuration for the TOTP factors. Set TOTP Issuer for this service. This will allow to configure the issuer of the TOTP URI. TotpIssuer *string `json:"Totp.Issuer,omitempty"` // Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 TotpSkew *int `json:"Totp.Skew,omitempty"` // Optional configuration for the TOTP factors. Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. Defaults to 30 seconds TotpTimeStep *int `json:"Totp.TimeStep,omitempty"` // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. TtsName *string `json:"TtsName,omitempty"` }
Optional parameters for the method 'UpdateService'
func (*UpdateServiceParams) SetCodeLength ¶
func (params *UpdateServiceParams) SetCodeLength(CodeLength int) *UpdateServiceParams
func (*UpdateServiceParams) SetCustomCodeEnabled ¶
func (params *UpdateServiceParams) SetCustomCodeEnabled(CustomCodeEnabled bool) *UpdateServiceParams
func (*UpdateServiceParams) SetDefaultTemplateSid ¶ added in v0.18.0
func (params *UpdateServiceParams) SetDefaultTemplateSid(DefaultTemplateSid string) *UpdateServiceParams
func (*UpdateServiceParams) SetDoNotShareWarningEnabled ¶
func (params *UpdateServiceParams) SetDoNotShareWarningEnabled(DoNotShareWarningEnabled bool) *UpdateServiceParams
func (*UpdateServiceParams) SetDtmfInputRequired ¶
func (params *UpdateServiceParams) SetDtmfInputRequired(DtmfInputRequired bool) *UpdateServiceParams
func (*UpdateServiceParams) SetFriendlyName ¶
func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
func (*UpdateServiceParams) SetLookupEnabled ¶
func (params *UpdateServiceParams) SetLookupEnabled(LookupEnabled bool) *UpdateServiceParams
func (*UpdateServiceParams) SetPsd2Enabled ¶
func (params *UpdateServiceParams) SetPsd2Enabled(Psd2Enabled bool) *UpdateServiceParams
func (*UpdateServiceParams) SetPushApnCredentialSid ¶
func (params *UpdateServiceParams) SetPushApnCredentialSid(PushApnCredentialSid string) *UpdateServiceParams
func (*UpdateServiceParams) SetPushFcmCredentialSid ¶
func (params *UpdateServiceParams) SetPushFcmCredentialSid(PushFcmCredentialSid string) *UpdateServiceParams
func (*UpdateServiceParams) SetPushIncludeDate ¶
func (params *UpdateServiceParams) SetPushIncludeDate(PushIncludeDate bool) *UpdateServiceParams
func (*UpdateServiceParams) SetSkipSmsToLandlines ¶
func (params *UpdateServiceParams) SetSkipSmsToLandlines(SkipSmsToLandlines bool) *UpdateServiceParams
func (*UpdateServiceParams) SetTotpCodeLength ¶
func (params *UpdateServiceParams) SetTotpCodeLength(TotpCodeLength int) *UpdateServiceParams
func (*UpdateServiceParams) SetTotpIssuer ¶
func (params *UpdateServiceParams) SetTotpIssuer(TotpIssuer string) *UpdateServiceParams
func (*UpdateServiceParams) SetTotpSkew ¶
func (params *UpdateServiceParams) SetTotpSkew(TotpSkew int) *UpdateServiceParams
func (*UpdateServiceParams) SetTotpTimeStep ¶
func (params *UpdateServiceParams) SetTotpTimeStep(TotpTimeStep int) *UpdateServiceParams
func (*UpdateServiceParams) SetTtsName ¶
func (params *UpdateServiceParams) SetTtsName(TtsName string) *UpdateServiceParams
type UpdateVerificationParams ¶
type UpdateVerificationParams struct { // The new status of the resource. Can be: `canceled` or `approved`. Status *string `json:"Status,omitempty"` }
Optional parameters for the method 'UpdateVerification'
func (*UpdateVerificationParams) SetStatus ¶
func (params *UpdateVerificationParams) SetStatus(Status string) *UpdateVerificationParams
type UpdateWebhookParams ¶
type UpdateWebhookParams struct { // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` EventTypes *[]string `json:"EventTypes,omitempty"` // The string that you assigned to describe the webhook. **This value should not contain PII.** FriendlyName *string `json:"FriendlyName,omitempty"` // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` Status *string `json:"Status,omitempty"` // The webhook version. Default value is `v2` which includes all the latest fields. Version `v1` is legacy and may be removed in the future. Version *string `json:"Version,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"WebhookUrl,omitempty"` }
Optional parameters for the method 'UpdateWebhook'
func (*UpdateWebhookParams) SetEventTypes ¶
func (params *UpdateWebhookParams) SetEventTypes(EventTypes []string) *UpdateWebhookParams
func (*UpdateWebhookParams) SetFriendlyName ¶
func (params *UpdateWebhookParams) SetFriendlyName(FriendlyName string) *UpdateWebhookParams
func (*UpdateWebhookParams) SetStatus ¶
func (params *UpdateWebhookParams) SetStatus(Status string) *UpdateWebhookParams
func (*UpdateWebhookParams) SetVersion ¶ added in v0.13.0
func (params *UpdateWebhookParams) SetVersion(Version string) *UpdateWebhookParams
func (*UpdateWebhookParams) SetWebhookUrl ¶
func (params *UpdateWebhookParams) SetWebhookUrl(WebhookUrl string) *UpdateWebhookParams
type VerifyV2AccessToken ¶ added in v0.14.0
type VerifyV2AccessToken struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // Unique external identifier of the Entity EntityIdentity *string `json:"entity_identity,omitempty"` // A human readable description of this factor. FactorFriendlyName *string `json:"factor_friendly_name,omitempty"` // The Type of the Factor FactorType *string `json:"factor_type,omitempty"` // Verify Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Access Token. Sid *string `json:"sid,omitempty"` // Generated access token. Token *string `json:"token,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2AccessToken struct for VerifyV2AccessToken
type VerifyV2Bucket ¶ added in v0.14.0
type VerifyV2Bucket struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Number of seconds that the rate limit will be enforced over. Interval *int `json:"interval,omitempty"` // Max number of requests. Max *int `json:"max,omitempty"` // Rate Limit Sid. RateLimitSid *string `json:"rate_limit_sid,omitempty"` // The SID of the Service that the resource is associated with ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Bucket. Sid *string `json:"sid,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2Bucket struct for VerifyV2Bucket
type VerifyV2Challenge ¶ added in v0.14.0
type VerifyV2Challenge struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // The date this Challenge was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Challenge was responded DateResponded *time.Time `json:"date_responded,omitempty"` // The date this Challenge was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Details about the Challenge. Details *map[string]interface{} `json:"details,omitempty"` // Entity Sid. EntitySid *string `json:"entity_sid,omitempty"` // The date-time when this Challenge expires ExpirationDate *time.Time `json:"expiration_date,omitempty"` // Factor Sid. FactorSid *string `json:"factor_sid,omitempty"` // The Factor Type of this Challenge FactorType *string `json:"factor_type,omitempty"` // Hidden details about the Challenge HiddenDetails *map[string]interface{} `json:"hidden_details,omitempty"` // Unique external identifier of the Entity Identity *string `json:"identity,omitempty"` // Nested resource URLs. Links *map[string]interface{} `json:"links,omitempty"` // The Reason of this Challenge `status` RespondedReason *string `json:"responded_reason,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Challenge. Sid *string `json:"sid,omitempty"` // The Status of this Challenge Status *string `json:"status,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2Challenge struct for VerifyV2Challenge
type VerifyV2Entity ¶ added in v0.14.0
type VerifyV2Entity struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // The date this Entity was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Entity was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Unique external identifier of the Entity Identity *string `json:"identity,omitempty"` // Nested resource URLs. Links *map[string]interface{} `json:"links,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Entity. Sid *string `json:"sid,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2Entity struct for VerifyV2Entity
type VerifyV2Factor ¶ added in v0.14.0
type VerifyV2Factor struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // Configurations for a `factor_type`. Config *map[string]interface{} `json:"config,omitempty"` // The date this Factor was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Factor was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Entity Sid. EntitySid *string `json:"entity_sid,omitempty"` // The Type of this Factor FactorType *string `json:"factor_type,omitempty"` // A human readable description of this resource. FriendlyName *string `json:"friendly_name,omitempty"` // Unique external identifier of the Entity Identity *string `json:"identity,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Factor. Sid *string `json:"sid,omitempty"` // The Status of this Factor Status *string `json:"status,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2Factor struct for VerifyV2Factor
type VerifyV2Form ¶
type VerifyV2Form struct { // Additional information for the available forms for this type. FormMeta *map[string]interface{} `json:"form_meta,omitempty"` // The Type of this Form FormType *string `json:"form_type,omitempty"` // Object that contains the available forms for this type. Forms *map[string]interface{} `json:"forms,omitempty"` // The URL to access the forms for this type. Url *string `json:"url,omitempty"` }
VerifyV2Form struct for VerifyV2Form
type VerifyV2MessagingConfiguration ¶ added in v0.14.0
type VerifyV2MessagingConfiguration struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The ISO-3166-1 country code of the country or `all`. Country *string `json:"country,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The SID of the Messaging Service used for this configuration. MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // The SID of the Service that the resource is associated with ServiceSid *string `json:"service_sid,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2MessagingConfiguration struct for VerifyV2MessagingConfiguration
type VerifyV2NewFactor ¶ added in v0.14.0
type VerifyV2NewFactor struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // Unique external identifier of the Entity Binding *map[string]interface{} `json:"binding,omitempty"` // Binding for a `factor_type`. Config *map[string]interface{} `json:"config,omitempty"` // The date this Factor was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Factor was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Entity Sid. EntitySid *string `json:"entity_sid,omitempty"` // The Type of this Factor FactorType *string `json:"factor_type,omitempty"` // A human readable description of this resource. FriendlyName *string `json:"friendly_name,omitempty"` // Unique external identifier of the Entity Identity *string `json:"identity,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Factor. Sid *string `json:"sid,omitempty"` // The Status of this Factor Status *string `json:"status,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2NewFactor struct for VerifyV2NewFactor
type VerifyV2Notification ¶ added in v0.14.0
type VerifyV2Notification struct { // Account Sid. AccountSid *string `json:"account_sid,omitempty"` // Challenge Sid. ChallengeSid *string `json:"challenge_sid,omitempty"` // The date this Notification was created DateCreated *time.Time `json:"date_created,omitempty"` // Entity Sid. EntitySid *string `json:"entity_sid,omitempty"` // Unique external identifier of the Entity Identity *string `json:"identity,omitempty"` // The priority of the notification. Priority *string `json:"priority,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Notification. Sid *string `json:"sid,omitempty"` // How long, in seconds, the notification is valid. Ttl *int `json:"ttl,omitempty"` }
VerifyV2Notification struct for VerifyV2Notification
type VerifyV2RateLimit ¶ added in v0.14.0
type VerifyV2RateLimit struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Description of this Rate Limit Description *string `json:"description,omitempty"` // The URLs of related resources Links *map[string]interface{} `json:"links,omitempty"` // The SID of the Service that the resource is associated with ServiceSid *string `json:"service_sid,omitempty"` // A string that uniquely identifies this Rate Limit. Sid *string `json:"sid,omitempty"` // A unique, developer assigned name of this Rate Limit. UniqueName *string `json:"unique_name,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
VerifyV2RateLimit struct for VerifyV2RateLimit
type VerifyV2Service ¶
type VerifyV2Service struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The length of the verification code CodeLength *int `json:"code_length,omitempty"` // Whether to allow sending verifications with a custom code. CustomCodeEnabled *bool `json:"custom_code_enabled,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` DefaultTemplateSid *string `json:"default_template_sid,omitempty"` DoNotShareWarningEnabled *bool `json:"do_not_share_warning_enabled,omitempty"` // Whether to ask the user to press a number before delivering the verify code in a phone call DtmfInputRequired *bool `json:"dtmf_input_required,omitempty"` // The string that you assigned to describe the verification service FriendlyName *string `json:"friendly_name,omitempty"` // The URLs of related resources Links *map[string]interface{} `json:"links,omitempty"` // Whether to perform a lookup with each verification LookupEnabled *bool `json:"lookup_enabled,omitempty"` // Whether to pass PSD2 transaction parameters when starting a verification Psd2Enabled *bool `json:"psd2_enabled,omitempty"` // The service level configuration of factor push type. Push *map[string]interface{} `json:"push,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // Whether to skip sending SMS verifications to landlines SkipSmsToLandlines *bool `json:"skip_sms_to_landlines,omitempty"` // The service level configuration of factor TOTP type. Totp *map[string]interface{} `json:"totp,omitempty"` // The name of an alternative text-to-speech service to use in phone calls TtsName *string `json:"tts_name,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` }
VerifyV2Service struct for VerifyV2Service
type VerifyV2Verification ¶ added in v0.14.0
type VerifyV2Verification struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The amount of the associated PSD2 compliant transaction. Amount *string `json:"amount,omitempty"` // The verification method used. Channel *string `json:"channel,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Information about the phone number being verified Lookup *map[string]interface{} `json:"lookup,omitempty"` // The payee of the associated PSD2 compliant transaction Payee *string `json:"payee,omitempty"` // An array of verification attempt objects. SendCodeAttempts *[]map[string]interface{} `json:"send_code_attempts,omitempty"` // The SID of the Service that the resource is associated with ServiceSid *string `json:"service_sid,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The status of the verification resource Status *string `json:"status,omitempty"` // The phone number or email being verified To *string `json:"to,omitempty"` // The absolute URL of the Verification resource Url *string `json:"url,omitempty"` // Whether the verification was successful Valid *bool `json:"valid,omitempty"` }
VerifyV2Verification struct for VerifyV2Verification
type VerifyV2VerificationAttempt ¶
type VerifyV2VerificationAttempt struct { // The SID of the Account that created the verification. AccountSid *string `json:"account_sid,omitempty"` // Communication channel used for the attempt. Channel *string `json:"channel,omitempty"` // An object containing the channel specific information for an attempt. ChannelData *map[string]interface{} `json:"channel_data,omitempty"` // Status of the conversion for the verification. ConversionStatus *string `json:"conversion_status,omitempty"` // The date this Attempt was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Attempt was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // An object containing the charge for this verification attempt. Price *map[string]interface{} `json:"price,omitempty"` // The SID of the verify service that generated this attempt. ServiceSid *string `json:"service_sid,omitempty"` // The SID that uniquely identifies the verification attempt. Sid *string `json:"sid,omitempty"` Url *string `json:"url,omitempty"` // The SID of the verification that generated this attempt. VerificationSid *string `json:"verification_sid,omitempty"` }
VerifyV2VerificationAttempt struct for VerifyV2VerificationAttempt
type VerifyV2VerificationCheck ¶ added in v0.14.0
type VerifyV2VerificationCheck struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The amount of the associated PSD2 compliant transaction. Amount *string `json:"amount,omitempty"` // The verification method to use Channel *string `json:"channel,omitempty"` // The ISO 8601 date and time in GMT when the Verification Check resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The ISO 8601 date and time in GMT when the Verification Check resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The payee of the associated PSD2 compliant transaction Payee *string `json:"payee,omitempty"` // The SID of the Service that the resource is associated with ServiceSid *string `json:"service_sid,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The status of the verification resource Status *string `json:"status,omitempty"` // The phone number or email being verified To *string `json:"to,omitempty"` // Whether the verification was successful Valid *bool `json:"valid,omitempty"` }
VerifyV2VerificationCheck struct for VerifyV2VerificationCheck
type VerifyV2VerificationTemplate ¶ added in v0.14.2
type VerifyV2VerificationTemplate struct { // Account Sid AccountSid *string `json:"account_sid,omitempty"` // A string to describe the verification template FriendlyName *string `json:"friendly_name,omitempty"` // A string that uniquely identifies this Template Sid *string `json:"sid,omitempty"` // Object with the template translations. Translations *map[string]interface{} `json:"translations,omitempty"` }
VerifyV2VerificationTemplate struct for VerifyV2VerificationTemplate
type VerifyV2Webhook ¶ added in v0.14.0
type VerifyV2Webhook struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The ISO 8601 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The ISO 8601 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The array of events that this Webhook is subscribed to. EventTypes *[]string `json:"event_types,omitempty"` // The string that you assigned to describe the webhook FriendlyName *string `json:"friendly_name,omitempty"` // Service Sid. ServiceSid *string `json:"service_sid,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The webhook status Status *string `json:"status,omitempty"` // The absolute URL of the Webhook resource Url *string `json:"url,omitempty"` // The webhook version Version *string `json:"version,omitempty"` // The method used when calling the webhook's URL. WebhookMethod *string `json:"webhook_method,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"webhook_url,omitempty"` }
VerifyV2Webhook struct for VerifyV2Webhook
Source Files ¶
- api_service.go
- attempts.go
- forms.go
- model_list_bucket_response.go
- model_list_challenge_response.go
- model_list_entity_response.go
- model_list_factor_response.go
- model_list_messaging_configuration_response.go
- model_list_rate_limit_response.go
- model_list_service_response.go
- model_list_verification_attempt_response.go
- model_list_verification_attempt_response_meta.go
- model_list_verification_template_response.go
- model_list_webhook_response.go
- model_verify_v2_access_token.go
- model_verify_v2_bucket.go
- model_verify_v2_challenge.go
- model_verify_v2_entity.go
- model_verify_v2_factor.go
- model_verify_v2_form.go
- model_verify_v2_messaging_configuration.go
- model_verify_v2_new_factor.go
- model_verify_v2_notification.go
- model_verify_v2_rate_limit.go
- model_verify_v2_service.go
- model_verify_v2_verification.go
- model_verify_v2_verification_attempt.go
- model_verify_v2_verification_check.go
- model_verify_v2_verification_template.go
- model_verify_v2_webhook.go
- services.go
- services_access_tokens.go
- services_entities.go
- services_entities_challenges.go
- services_entities_challenges_notifications.go
- services_entities_factors.go
- services_messaging_configurations.go
- services_rate_limits.go
- services_rate_limits_buckets.go
- services_verification_check.go
- services_verifications.go
- services_webhooks.go
- templates.go