Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error)
- func (c *ApiService) CreateBrandRegistrationOtp(BrandRegistrationSid string) (*MessagingV1BrandRegistrationOtp, error)
- func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsParams) (*MessagingV1BrandRegistrations, error)
- func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error)
- func (c *ApiService) CreateChannelSender(MessagingServiceSid string, params *CreateChannelSenderParams) (*MessagingV1ChannelSender, error)
- func (c *ApiService) CreateExternalCampaign(params *CreateExternalCampaignParams) (*MessagingV1ExternalCampaign, error)
- func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingService, error)
- func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error)
- func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error)
- func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ShortCode, error)
- func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)
- func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error)
- func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteChannelSender(MessagingServiceSid string, Sid string) error
- func (c *ApiService) DeleteDomainCertV4(DomainSid string) error
- func (c *ApiService) DeleteLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) error
- func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteService(Sid string) error
- func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error
- func (c *ApiService) DeleteTollfreeVerification(Sid string) error
- func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) error
- func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1AlphaSender, error)
- func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)
- func (c *ApiService) FetchBrandVetting(BrandSid string, BrandVettingSid string) (*MessagingV1BrandVetting, error)
- func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) (*MessagingV1ChannelSender, error)
- func (c *ApiService) FetchDeactivation(params *FetchDeactivationParams) (*MessagingV1Deactivation, error)
- func (c *ApiService) FetchDomainCertV4(DomainSid string) (*MessagingV1DomainCertV4, error)
- func (c *ApiService) FetchDomainConfig(DomainSid string) (*MessagingV1DomainConfig, error)
- func (c *ApiService) FetchDomainConfigMessagingService(MessagingServiceSid string) (*MessagingV1DomainConfigMessagingService, error)
- func (c *ApiService) FetchLinkshorteningMessagingServiceDomainAssociation(MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingServiceDomainAssociation, error)
- func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1PhoneNumber, error)
- func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error)
- func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ShortCode, error)
- func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error)
- func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) (*MessagingV1UsAppToPerson, error)
- func (c *ApiService) FetchUsAppToPersonUsecase(MessagingServiceSid string, params *FetchUsAppToPersonUsecaseParams) (*MessagingV1UsAppToPersonUsecase, error)
- func (c *ApiService) FetchUsecase() (*MessagingV1Usecase, error)
- func (c *ApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) ([]MessagingV1AlphaSender, error)
- func (c *ApiService) ListBrandRegistrations(params *ListBrandRegistrationsParams) ([]MessagingV1BrandRegistrations, error)
- func (c *ApiService) ListBrandVetting(BrandSid string, params *ListBrandVettingParams) ([]MessagingV1BrandVetting, error)
- func (c *ApiService) ListChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) ([]MessagingV1ChannelSender, error)
- func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) ([]MessagingV1PhoneNumber, error)
- func (c *ApiService) ListService(params *ListServiceParams) ([]MessagingV1Service, error)
- func (c *ApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) ([]MessagingV1ShortCode, error)
- func (c *ApiService) ListTollfreeVerification(params *ListTollfreeVerificationParams) ([]MessagingV1TollfreeVerification, error)
- func (c *ApiService) ListUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) ([]MessagingV1UsAppToPerson, error)
- func (c *ApiService) PageAlphaSender(ServiceSid string, params *ListAlphaSenderParams, pageToken, pageNumber string) (*ListAlphaSenderResponse, error)
- func (c *ApiService) PageBrandRegistrations(params *ListBrandRegistrationsParams, pageToken, pageNumber string) (*ListBrandRegistrationsResponse, error)
- func (c *ApiService) PageBrandVetting(BrandSid string, params *ListBrandVettingParams, pageToken, pageNumber string) (*ListBrandVettingResponse, error)
- func (c *ApiService) PageChannelSender(MessagingServiceSid string, params *ListChannelSenderParams, ...) (*ListChannelSenderResponse, error)
- func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error)
- func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
- func (c *ApiService) PageShortCode(ServiceSid string, params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error)
- func (c *ApiService) PageTollfreeVerification(params *ListTollfreeVerificationParams, pageToken, pageNumber string) (*ListTollfreeVerificationResponse, error)
- func (c *ApiService) PageUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams, ...) (*ListUsAppToPersonResponse, error)
- func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (chan MessagingV1AlphaSender, chan error)
- func (c *ApiService) StreamBrandRegistrations(params *ListBrandRegistrationsParams) (chan MessagingV1BrandRegistrations, chan error)
- func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettingParams) (chan MessagingV1BrandVetting, chan error)
- func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) (chan MessagingV1ChannelSender, chan error)
- func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (chan MessagingV1PhoneNumber, chan error)
- func (c *ApiService) StreamService(params *ListServiceParams) (chan MessagingV1Service, chan error)
- func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodeParams) (chan MessagingV1ShortCode, chan error)
- func (c *ApiService) StreamTollfreeVerification(params *ListTollfreeVerificationParams) (chan MessagingV1TollfreeVerification, chan error)
- func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) (chan MessagingV1UsAppToPerson, chan error)
- func (c *ApiService) UpdateBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)
- func (c *ApiService) UpdateDomainCertV4(DomainSid string, params *UpdateDomainCertV4Params) (*MessagingV1DomainCertV4, error)
- func (c *ApiService) UpdateDomainConfig(DomainSid string, params *UpdateDomainConfigParams) (*MessagingV1DomainConfig, error)
- func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error)
- func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error)
- func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)
- func (c *ApiService) UpdateUsAppToPerson(MessagingServiceSid string, Sid string, params *UpdateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error)
- type CreateAlphaSenderParams
- type CreateBrandRegistrationsParams
- func (params *CreateBrandRegistrationsParams) SetA2PProfileBundleSid(A2PProfileBundleSid string) *CreateBrandRegistrationsParams
- func (params *CreateBrandRegistrationsParams) SetBrandType(BrandType string) *CreateBrandRegistrationsParams
- func (params *CreateBrandRegistrationsParams) SetCustomerProfileBundleSid(CustomerProfileBundleSid string) *CreateBrandRegistrationsParams
- func (params *CreateBrandRegistrationsParams) SetMock(Mock bool) *CreateBrandRegistrationsParams
- func (params *CreateBrandRegistrationsParams) SetSkipAutomaticSecVet(SkipAutomaticSecVet bool) *CreateBrandRegistrationsParams
- type CreateBrandVettingParams
- type CreateChannelSenderParams
- type CreateExternalCampaignParams
- func (params *CreateExternalCampaignParams) SetCampaignId(CampaignId string) *CreateExternalCampaignParams
- func (params *CreateExternalCampaignParams) SetCnpMigration(CnpMigration bool) *CreateExternalCampaignParams
- func (params *CreateExternalCampaignParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateExternalCampaignParams
- type CreatePhoneNumberParams
- type CreateServiceParams
- func (params *CreateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *CreateServiceParams
- func (params *CreateServiceParams) SetFallbackMethod(FallbackMethod string) *CreateServiceParams
- func (params *CreateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *CreateServiceParams
- func (params *CreateServiceParams) SetFallbackUrl(FallbackUrl string) *CreateServiceParams
- func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
- func (params *CreateServiceParams) SetInboundMethod(InboundMethod string) *CreateServiceParams
- func (params *CreateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *CreateServiceParams
- func (params *CreateServiceParams) SetMmsConverter(MmsConverter bool) *CreateServiceParams
- func (params *CreateServiceParams) SetScanMessageContent(ScanMessageContent string) *CreateServiceParams
- func (params *CreateServiceParams) SetSmartEncoding(SmartEncoding bool) *CreateServiceParams
- func (params *CreateServiceParams) SetStatusCallback(StatusCallback string) *CreateServiceParams
- func (params *CreateServiceParams) SetStickySender(StickySender bool) *CreateServiceParams
- func (params *CreateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *CreateServiceParams
- func (params *CreateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *CreateServiceParams
- func (params *CreateServiceParams) SetUsecase(Usecase string) *CreateServiceParams
- func (params *CreateServiceParams) SetValidityPeriod(ValidityPeriod int) *CreateServiceParams
- type CreateShortCodeParams
- type CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessName(BusinessName string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetCustomerProfileSid(CustomerProfileSid string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetExternalReferenceId(ExternalReferenceId string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetOptInType(OptInType string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *CreateTollfreeVerificationParams
- func (params *CreateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *CreateTollfreeVerificationParams
- type CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetAgeGated(AgeGated bool) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetBrandRegistrationSid(BrandRegistrationSid string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetDescription(Description string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetDirectLending(DirectLending bool) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetHasEmbeddedLinks(HasEmbeddedLinks bool) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetHasEmbeddedPhone(HasEmbeddedPhone bool) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetHelpKeywords(HelpKeywords []string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetHelpMessage(HelpMessage string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetMessageFlow(MessageFlow string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetMessageSamples(MessageSamples []string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetOptInKeywords(OptInKeywords []string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetOptInMessage(OptInMessage string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetOptOutKeywords(OptOutKeywords []string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetOptOutMessage(OptOutMessage string) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetSubscriberOptIn(SubscriberOptIn bool) *CreateUsAppToPersonParams
- func (params *CreateUsAppToPersonParams) SetUsAppToPersonUsecase(UsAppToPersonUsecase string) *CreateUsAppToPersonParams
- type FetchDeactivationParams
- type FetchUsAppToPersonUsecaseParams
- type ListAlphaSenderParams
- type ListAlphaSenderResponse
- type ListAlphaSenderResponseMeta
- type ListBrandRegistrationsParams
- type ListBrandRegistrationsResponse
- type ListBrandVettingParams
- type ListBrandVettingResponse
- type ListChannelSenderParams
- type ListChannelSenderResponse
- type ListPhoneNumberParams
- type ListPhoneNumberResponse
- type ListServiceParams
- type ListServiceResponse
- type ListShortCodeParams
- type ListShortCodeResponse
- type ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetExternalReferenceId(ExternalReferenceId string) *ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetIncludeSubAccounts(IncludeSubAccounts bool) *ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetLimit(Limit int) *ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetPageSize(PageSize int) *ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetStatus(Status string) *ListTollfreeVerificationParams
- func (params *ListTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *ListTollfreeVerificationParams
- type ListTollfreeVerificationResponse
- type ListUsAppToPersonParams
- type ListUsAppToPersonResponse
- type MessagingV1AlphaSender
- type MessagingV1BrandRegistrationOtp
- type MessagingV1BrandRegistrations
- type MessagingV1BrandVetting
- type MessagingV1ChannelSender
- type MessagingV1Deactivation
- type MessagingV1DomainCertV4
- type MessagingV1DomainConfig
- type MessagingV1DomainConfigMessagingService
- type MessagingV1ExternalCampaign
- type MessagingV1LinkshorteningMessagingService
- type MessagingV1LinkshorteningMessagingServiceDomainAssociation
- type MessagingV1PhoneNumber
- type MessagingV1RequestManagedCert
- type MessagingV1Service
- type MessagingV1ShortCode
- type MessagingV1TollfreeVerification
- type MessagingV1UsAppToPerson
- type MessagingV1UsAppToPersonUsecase
- type MessagingV1Usecase
- type UpdateDomainCertV4Params
- type UpdateDomainConfigParams
- func (params *UpdateDomainConfigParams) SetCallbackUrl(CallbackUrl string) *UpdateDomainConfigParams
- func (params *UpdateDomainConfigParams) SetContinueOnFailure(ContinueOnFailure bool) *UpdateDomainConfigParams
- func (params *UpdateDomainConfigParams) SetDisableHttps(DisableHttps bool) *UpdateDomainConfigParams
- func (params *UpdateDomainConfigParams) SetFallbackUrl(FallbackUrl string) *UpdateDomainConfigParams
- type UpdateServiceParams
- func (params *UpdateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFallbackMethod(FallbackMethod string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFallbackUrl(FallbackUrl string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetInboundMethod(InboundMethod string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetMmsConverter(MmsConverter bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetScanMessageContent(ScanMessageContent string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetSmartEncoding(SmartEncoding bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetStatusCallback(StatusCallback string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetStickySender(StickySender bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetUsecase(Usecase string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetValidityPeriod(ValidityPeriod int) *UpdateServiceParams
- type UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessName(BusinessName string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetOptInType(OptInType string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *UpdateTollfreeVerificationParams
- func (params *UpdateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *UpdateTollfreeVerificationParams
- type UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetAgeGated(AgeGated bool) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetDescription(Description string) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetDirectLending(DirectLending bool) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetHasEmbeddedLinks(HasEmbeddedLinks bool) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetHasEmbeddedPhone(HasEmbeddedPhone bool) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetMessageFlow(MessageFlow string) *UpdateUsAppToPersonParams
- func (params *UpdateUsAppToPersonParams) SetMessageSamples(MessageSamples []string) *UpdateUsAppToPersonParams
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) CreateAlphaSender ¶ added in v0.11.0
func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error)
func (*ApiService) CreateBrandRegistrationOtp ¶ added in v1.5.0
func (c *ApiService) CreateBrandRegistrationOtp(BrandRegistrationSid string) (*MessagingV1BrandRegistrationOtp, error)
func (*ApiService) CreateBrandRegistrations ¶ added in v0.11.0
func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsParams) (*MessagingV1BrandRegistrations, error)
func (*ApiService) CreateBrandVetting ¶ added in v0.17.0
func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error)
func (*ApiService) CreateChannelSender ¶ added in v1.22.4
func (c *ApiService) CreateChannelSender(MessagingServiceSid string, params *CreateChannelSenderParams) (*MessagingV1ChannelSender, error)
func (*ApiService) CreateExternalCampaign ¶ added in v0.11.0
func (c *ApiService) CreateExternalCampaign(params *CreateExternalCampaignParams) (*MessagingV1ExternalCampaign, error)
func (*ApiService) CreateLinkshorteningMessagingService ¶ added in v1.4.0
func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingService, error)
func (*ApiService) CreatePhoneNumber ¶ added in v0.11.0
func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error)
func (*ApiService) CreateService ¶ added in v0.11.0
func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error)
func (*ApiService) CreateShortCode ¶ added in v0.11.0
func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ShortCode, error)
func (*ApiService) CreateTollfreeVerification ¶ added in v1.0.0
func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)
func (*ApiService) CreateUsAppToPerson ¶ added in v0.11.0
func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error)
func (*ApiService) DeleteAlphaSender ¶ added in v0.11.0
func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error
func (*ApiService) DeleteChannelSender ¶ added in v1.22.4
func (c *ApiService) DeleteChannelSender(MessagingServiceSid string, Sid string) error
func (*ApiService) DeleteDomainCertV4 ¶ added in v1.2.2
func (c *ApiService) DeleteDomainCertV4(DomainSid string) error
func (*ApiService) DeleteLinkshorteningMessagingService ¶ added in v1.4.0
func (c *ApiService) DeleteLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) error
func (*ApiService) DeletePhoneNumber ¶ added in v0.11.0
func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error
func (*ApiService) DeleteService ¶ added in v0.11.0
func (c *ApiService) DeleteService(Sid string) error
func (*ApiService) DeleteShortCode ¶ added in v0.11.0
func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error
func (*ApiService) DeleteTollfreeVerification ¶ added in v1.15.1
func (c *ApiService) DeleteTollfreeVerification(Sid string) error
func (*ApiService) DeleteUsAppToPerson ¶ added in v0.11.0
func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) error
func (*ApiService) FetchAlphaSender ¶ added in v0.11.0
func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1AlphaSender, error)
func (*ApiService) FetchBrandRegistrations ¶ added in v0.11.0
func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)
func (*ApiService) FetchBrandVetting ¶ added in v0.18.1
func (c *ApiService) FetchBrandVetting(BrandSid string, BrandVettingSid string) (*MessagingV1BrandVetting, error)
func (*ApiService) FetchChannelSender ¶ added in v1.12.0
func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) (*MessagingV1ChannelSender, error)
func (*ApiService) FetchDeactivation ¶ added in v0.11.0
func (c *ApiService) FetchDeactivation(params *FetchDeactivationParams) (*MessagingV1Deactivation, error)
Fetch a list of all United States numbers that have been deactivated on a specific date.
func (*ApiService) FetchDomainCertV4 ¶ added in v1.2.2
func (c *ApiService) FetchDomainCertV4(DomainSid string) (*MessagingV1DomainCertV4, error)
func (*ApiService) FetchDomainConfig ¶ added in v1.2.2
func (c *ApiService) FetchDomainConfig(DomainSid string) (*MessagingV1DomainConfig, error)
func (*ApiService) FetchDomainConfigMessagingService ¶ added in v1.4.0
func (c *ApiService) FetchDomainConfigMessagingService(MessagingServiceSid string) (*MessagingV1DomainConfigMessagingService, error)
func (*ApiService) FetchLinkshorteningMessagingServiceDomainAssociation ¶ added in v1.7.1
func (c *ApiService) FetchLinkshorteningMessagingServiceDomainAssociation(MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingServiceDomainAssociation, error)
func (*ApiService) FetchPhoneNumber ¶ added in v0.11.0
func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1PhoneNumber, error)
func (*ApiService) FetchService ¶ added in v0.11.0
func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error)
func (*ApiService) FetchShortCode ¶ added in v0.11.0
func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ShortCode, error)
func (*ApiService) FetchTollfreeVerification ¶ added in v1.0.0
func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error)
func (*ApiService) FetchUsAppToPerson ¶ added in v0.11.0
func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) (*MessagingV1UsAppToPerson, error)
func (*ApiService) FetchUsAppToPersonUsecase ¶ added in v0.11.0
func (c *ApiService) FetchUsAppToPersonUsecase(MessagingServiceSid string, params *FetchUsAppToPersonUsecaseParams) (*MessagingV1UsAppToPersonUsecase, error)
func (*ApiService) FetchUsecase ¶ added in v0.11.0
func (c *ApiService) FetchUsecase() (*MessagingV1Usecase, error)
func (*ApiService) ListAlphaSender ¶ added in v0.11.0
func (c *ApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) ([]MessagingV1AlphaSender, error)
Lists AlphaSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListBrandRegistrations ¶ added in v0.11.0
func (c *ApiService) ListBrandRegistrations(params *ListBrandRegistrationsParams) ([]MessagingV1BrandRegistrations, error)
Lists BrandRegistrations records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListBrandVetting ¶ added in v0.17.0
func (c *ApiService) ListBrandVetting(BrandSid string, params *ListBrandVettingParams) ([]MessagingV1BrandVetting, error)
Lists BrandVetting records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListChannelSender ¶ added in v1.12.0
func (c *ApiService) ListChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) ([]MessagingV1ChannelSender, error)
Lists ChannelSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListPhoneNumber ¶ added in v0.11.0
func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) ([]MessagingV1PhoneNumber, error)
Lists PhoneNumber 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) ([]MessagingV1Service, 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) ListShortCode ¶ added in v0.11.0
func (c *ApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) ([]MessagingV1ShortCode, error)
Lists ShortCode records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListTollfreeVerification ¶ added in v1.0.0
func (c *ApiService) ListTollfreeVerification(params *ListTollfreeVerificationParams) ([]MessagingV1TollfreeVerification, error)
Lists TollfreeVerification records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListUsAppToPerson ¶ added in v0.11.0
func (c *ApiService) ListUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) ([]MessagingV1UsAppToPerson, error)
Lists UsAppToPerson records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageAlphaSender ¶ added in v0.13.0
func (c *ApiService) PageAlphaSender(ServiceSid string, params *ListAlphaSenderParams, pageToken, pageNumber string) (*ListAlphaSenderResponse, error)
Retrieve a single page of AlphaSender records from the API. Request is executed immediately.
func (*ApiService) PageBrandRegistrations ¶ added in v0.13.0
func (c *ApiService) PageBrandRegistrations(params *ListBrandRegistrationsParams, pageToken, pageNumber string) (*ListBrandRegistrationsResponse, error)
Retrieve a single page of BrandRegistrations records from the API. Request is executed immediately.
func (*ApiService) PageBrandVetting ¶ added in v0.17.0
func (c *ApiService) PageBrandVetting(BrandSid string, params *ListBrandVettingParams, pageToken, pageNumber string) (*ListBrandVettingResponse, error)
Retrieve a single page of BrandVetting records from the API. Request is executed immediately.
func (*ApiService) PageChannelSender ¶ added in v1.12.0
func (c *ApiService) PageChannelSender(MessagingServiceSid string, params *ListChannelSenderParams, pageToken, pageNumber string) (*ListChannelSenderResponse, error)
Retrieve a single page of ChannelSender records from the API. Request is executed immediately.
func (*ApiService) PagePhoneNumber ¶ added in v0.13.0
func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error)
Retrieve a single page of PhoneNumber 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) PageShortCode ¶ added in v0.13.0
func (c *ApiService) PageShortCode(ServiceSid string, params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error)
Retrieve a single page of ShortCode records from the API. Request is executed immediately.
func (*ApiService) PageTollfreeVerification ¶ added in v1.0.0
func (c *ApiService) PageTollfreeVerification(params *ListTollfreeVerificationParams, pageToken, pageNumber string) (*ListTollfreeVerificationResponse, error)
Retrieve a single page of TollfreeVerification records from the API. Request is executed immediately.
func (*ApiService) PageUsAppToPerson ¶ added in v0.13.0
func (c *ApiService) PageUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams, pageToken, pageNumber string) (*ListUsAppToPersonResponse, error)
Retrieve a single page of UsAppToPerson records from the API. Request is executed immediately.
func (*ApiService) StreamAlphaSender ¶ added in v0.13.0
func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (chan MessagingV1AlphaSender, chan error)
Streams AlphaSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamBrandRegistrations ¶ added in v0.13.0
func (c *ApiService) StreamBrandRegistrations(params *ListBrandRegistrationsParams) (chan MessagingV1BrandRegistrations, chan error)
Streams BrandRegistrations records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamBrandVetting ¶ added in v0.17.0
func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettingParams) (chan MessagingV1BrandVetting, chan error)
Streams BrandVetting records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamChannelSender ¶ added in v1.12.0
func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) (chan MessagingV1ChannelSender, chan error)
Streams ChannelSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamPhoneNumber ¶ added in v0.13.0
func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (chan MessagingV1PhoneNumber, chan error)
Streams PhoneNumber 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 MessagingV1Service, chan 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) StreamShortCode ¶ added in v0.13.0
func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodeParams) (chan MessagingV1ShortCode, chan error)
Streams ShortCode records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamTollfreeVerification ¶ added in v1.0.0
func (c *ApiService) StreamTollfreeVerification(params *ListTollfreeVerificationParams) (chan MessagingV1TollfreeVerification, chan error)
Streams TollfreeVerification records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamUsAppToPerson ¶ added in v0.13.0
func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) (chan MessagingV1UsAppToPerson, chan error)
Streams UsAppToPerson records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateBrandRegistrations ¶ added in v0.20.0
func (c *ApiService) UpdateBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)
func (*ApiService) UpdateDomainCertV4 ¶ added in v1.2.2
func (c *ApiService) UpdateDomainCertV4(DomainSid string, params *UpdateDomainCertV4Params) (*MessagingV1DomainCertV4, error)
func (*ApiService) UpdateDomainConfig ¶ added in v1.2.2
func (c *ApiService) UpdateDomainConfig(DomainSid string, params *UpdateDomainConfigParams) (*MessagingV1DomainConfig, error)
func (*ApiService) UpdateRequestManagedCert ¶ added in v1.23.4
func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error)
func (*ApiService) UpdateService ¶ added in v0.11.0
func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error)
func (*ApiService) UpdateTollfreeVerification ¶ added in v1.3.1
func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)
func (*ApiService) UpdateUsAppToPerson ¶ added in v1.18.0
func (c *ApiService) UpdateUsAppToPerson(MessagingServiceSid string, Sid string, params *UpdateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error)
type CreateAlphaSenderParams ¶
type CreateAlphaSenderParams struct { // The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen `-`, plus `+`, underscore `_` and ampersand `&`. This value cannot contain only numbers. AlphaSender *string `json:"AlphaSender,omitempty"` }
Optional parameters for the method 'CreateAlphaSender'
func (*CreateAlphaSenderParams) SetAlphaSender ¶
func (params *CreateAlphaSenderParams) SetAlphaSender(AlphaSender string) *CreateAlphaSenderParams
type CreateBrandRegistrationsParams ¶
type CreateBrandRegistrationsParams struct { // Customer Profile Bundle Sid. CustomerProfileBundleSid *string `json:"CustomerProfileBundleSid,omitempty"` // A2P Messaging Profile Bundle Sid. A2PProfileBundleSid *string `json:"A2PProfileBundleSid,omitempty"` // Type of brand being created. One of: \\\"STANDARD\\\", \\\"SOLE_PROPRIETOR\\\". SOLE_PROPRIETOR is for low volume, SOLE_PROPRIETOR use cases. STANDARD is for all other use cases. BrandType *string `json:"BrandType,omitempty"` // A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided. Mock *bool `json:"Mock,omitempty"` // A flag to disable automatic secondary vetting for brands which it would otherwise be done. SkipAutomaticSecVet *bool `json:"SkipAutomaticSecVet,omitempty"` }
Optional parameters for the method 'CreateBrandRegistrations'
func (*CreateBrandRegistrationsParams) SetA2PProfileBundleSid ¶ added in v0.16.0
func (params *CreateBrandRegistrationsParams) SetA2PProfileBundleSid(A2PProfileBundleSid string) *CreateBrandRegistrationsParams
func (*CreateBrandRegistrationsParams) SetBrandType ¶ added in v0.14.0
func (params *CreateBrandRegistrationsParams) SetBrandType(BrandType string) *CreateBrandRegistrationsParams
func (*CreateBrandRegistrationsParams) SetCustomerProfileBundleSid ¶
func (params *CreateBrandRegistrationsParams) SetCustomerProfileBundleSid(CustomerProfileBundleSid string) *CreateBrandRegistrationsParams
func (*CreateBrandRegistrationsParams) SetMock ¶ added in v0.14.2
func (params *CreateBrandRegistrationsParams) SetMock(Mock bool) *CreateBrandRegistrationsParams
func (*CreateBrandRegistrationsParams) SetSkipAutomaticSecVet ¶ added in v0.15.0
func (params *CreateBrandRegistrationsParams) SetSkipAutomaticSecVet(SkipAutomaticSecVet bool) *CreateBrandRegistrationsParams
type CreateBrandVettingParams ¶ added in v0.17.0
type CreateBrandVettingParams struct { // VettingProvider *string `json:"VettingProvider,omitempty"` // The unique ID of the vetting VettingId *string `json:"VettingId,omitempty"` }
Optional parameters for the method 'CreateBrandVetting'
func (*CreateBrandVettingParams) SetVettingId ¶ added in v0.17.0
func (params *CreateBrandVettingParams) SetVettingId(VettingId string) *CreateBrandVettingParams
func (*CreateBrandVettingParams) SetVettingProvider ¶ added in v0.17.0
func (params *CreateBrandVettingParams) SetVettingProvider(VettingProvider string) *CreateBrandVettingParams
type CreateChannelSenderParams ¶ added in v1.22.4
type CreateChannelSenderParams struct { // The SID of the Channel Sender being added to the Service. Sid *string `json:"Sid,omitempty"` }
Optional parameters for the method 'CreateChannelSender'
func (*CreateChannelSenderParams) SetSid ¶ added in v1.22.4
func (params *CreateChannelSenderParams) SetSid(Sid string) *CreateChannelSenderParams
type CreateExternalCampaignParams ¶
type CreateExternalCampaignParams struct { // ID of the preregistered campaign. CampaignId *string `json:"CampaignId,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` // Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. CnpMigration *bool `json:"CnpMigration,omitempty"` }
Optional parameters for the method 'CreateExternalCampaign'
func (*CreateExternalCampaignParams) SetCampaignId ¶
func (params *CreateExternalCampaignParams) SetCampaignId(CampaignId string) *CreateExternalCampaignParams
func (*CreateExternalCampaignParams) SetCnpMigration ¶ added in v1.22.4
func (params *CreateExternalCampaignParams) SetCnpMigration(CnpMigration bool) *CreateExternalCampaignParams
func (*CreateExternalCampaignParams) SetMessagingServiceSid ¶
func (params *CreateExternalCampaignParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateExternalCampaignParams
type CreatePhoneNumberParams ¶
type CreatePhoneNumberParams struct { // The SID of the Phone Number being added to the Service. PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` }
Optional parameters for the method 'CreatePhoneNumber'
func (*CreatePhoneNumberParams) SetPhoneNumberSid ¶
func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) *CreatePhoneNumberParams
type CreateServiceParams ¶
type CreateServiceParams struct { // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service. InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` // The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. InboundMethod *string `json:"InboundMethod,omitempty"` // The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service. FallbackUrl *string `json:"FallbackUrl,omitempty"` // The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. FallbackMethod *string `json:"FallbackMethod,omitempty"` // The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. StatusCallback *string `json:"StatusCallback,omitempty"` // Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. StickySender *bool `json:"StickySender,omitempty"` // Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. MmsConverter *bool `json:"MmsConverter,omitempty"` // Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. SmartEncoding *bool `json:"SmartEncoding,omitempty"` // ScanMessageContent *string `json:"ScanMessageContent,omitempty"` // [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. ValidityPeriod *int `json:"ValidityPeriod,omitempty"` // Reserved. SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` // A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. Usecase *string `json:"Usecase,omitempty"` // A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. UseInboundWebhookOnNumber *bool `json:"UseInboundWebhookOnNumber,omitempty"` }
Optional parameters for the method 'CreateService'
func (*CreateServiceParams) SetAreaCodeGeomatch ¶
func (params *CreateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *CreateServiceParams
func (*CreateServiceParams) SetFallbackMethod ¶
func (params *CreateServiceParams) SetFallbackMethod(FallbackMethod string) *CreateServiceParams
func (*CreateServiceParams) SetFallbackToLongCode ¶
func (params *CreateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *CreateServiceParams
func (*CreateServiceParams) SetFallbackUrl ¶
func (params *CreateServiceParams) SetFallbackUrl(FallbackUrl string) *CreateServiceParams
func (*CreateServiceParams) SetFriendlyName ¶
func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
func (*CreateServiceParams) SetInboundMethod ¶
func (params *CreateServiceParams) SetInboundMethod(InboundMethod string) *CreateServiceParams
func (*CreateServiceParams) SetInboundRequestUrl ¶
func (params *CreateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *CreateServiceParams
func (*CreateServiceParams) SetMmsConverter ¶
func (params *CreateServiceParams) SetMmsConverter(MmsConverter bool) *CreateServiceParams
func (*CreateServiceParams) SetScanMessageContent ¶
func (params *CreateServiceParams) SetScanMessageContent(ScanMessageContent string) *CreateServiceParams
func (*CreateServiceParams) SetSmartEncoding ¶
func (params *CreateServiceParams) SetSmartEncoding(SmartEncoding bool) *CreateServiceParams
func (*CreateServiceParams) SetStatusCallback ¶
func (params *CreateServiceParams) SetStatusCallback(StatusCallback string) *CreateServiceParams
func (*CreateServiceParams) SetStickySender ¶
func (params *CreateServiceParams) SetStickySender(StickySender bool) *CreateServiceParams
func (*CreateServiceParams) SetSynchronousValidation ¶
func (params *CreateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *CreateServiceParams
func (*CreateServiceParams) SetUseInboundWebhookOnNumber ¶
func (params *CreateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *CreateServiceParams
func (*CreateServiceParams) SetUsecase ¶ added in v0.17.0
func (params *CreateServiceParams) SetUsecase(Usecase string) *CreateServiceParams
func (*CreateServiceParams) SetValidityPeriod ¶
func (params *CreateServiceParams) SetValidityPeriod(ValidityPeriod int) *CreateServiceParams
type CreateShortCodeParams ¶
type CreateShortCodeParams struct { // The SID of the ShortCode resource being added to the Service. ShortCodeSid *string `json:"ShortCodeSid,omitempty"` }
Optional parameters for the method 'CreateShortCode'
func (*CreateShortCodeParams) SetShortCodeSid ¶
func (params *CreateShortCodeParams) SetShortCodeSid(ShortCodeSid string) *CreateShortCodeParams
type CreateTollfreeVerificationParams ¶ added in v1.0.0
type CreateTollfreeVerificationParams struct { // The name of the business or organization using the Tollfree number. BusinessName *string `json:"BusinessName,omitempty"` // The website of the business or organization using the Tollfree number. BusinessWebsite *string `json:"BusinessWebsite,omitempty"` // The email address to receive the notification about the verification result. . NotificationEmail *string `json:"NotificationEmail,omitempty"` // The category of the use case for the Tollfree Number. List as many are applicable.. UseCaseCategories *[]string `json:"UseCaseCategories,omitempty"` // Use this to further explain how messaging is used by the business or organization. UseCaseSummary *string `json:"UseCaseSummary,omitempty"` // An example of message content, i.e. a sample message. ProductionMessageSample *string `json:"ProductionMessageSample,omitempty"` // Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. OptInImageUrls *[]string `json:"OptInImageUrls,omitempty"` // OptInType *string `json:"OptInType,omitempty"` // Estimate monthly volume of messages from the Tollfree Number. MessageVolume *string `json:"MessageVolume,omitempty"` // The SID of the Phone Number associated with the Tollfree Verification. TollfreePhoneNumberSid *string `json:"TollfreePhoneNumberSid,omitempty"` // Customer's Profile Bundle BundleSid. CustomerProfileSid *string `json:"CustomerProfileSid,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress *string `json:"BusinessStreetAddress,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress2 *string `json:"BusinessStreetAddress2,omitempty"` // The city of the business or organization using the Tollfree number. BusinessCity *string `json:"BusinessCity,omitempty"` // The state/province/region of the business or organization using the Tollfree number. BusinessStateProvinceRegion *string `json:"BusinessStateProvinceRegion,omitempty"` // The postal code of the business or organization using the Tollfree number. BusinessPostalCode *string `json:"BusinessPostalCode,omitempty"` // The country of the business or organization using the Tollfree number. BusinessCountry *string `json:"BusinessCountry,omitempty"` // Additional information to be provided for verification. AdditionalInformation *string `json:"AdditionalInformation,omitempty"` // The first name of the contact for the business or organization using the Tollfree number. BusinessContactFirstName *string `json:"BusinessContactFirstName,omitempty"` // The last name of the contact for the business or organization using the Tollfree number. BusinessContactLastName *string `json:"BusinessContactLastName,omitempty"` // The email address of the contact for the business or organization using the Tollfree number. BusinessContactEmail *string `json:"BusinessContactEmail,omitempty"` // The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. BusinessContactPhone *string `json:"BusinessContactPhone,omitempty"` // An optional external reference ID supplied by customer and echoed back on status retrieval. ExternalReferenceId *string `json:"ExternalReferenceId,omitempty"` }
Optional parameters for the method 'CreateTollfreeVerification'
func (*CreateTollfreeVerificationParams) SetAdditionalInformation ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessCity ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessContactEmail ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessContactFirstName ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessContactLastName ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessContactPhone ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessCountry ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessName ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessName(BusinessName string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessPostalCode ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessStateProvinceRegion ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessStreetAddress ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessStreetAddress2 ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetBusinessWebsite ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetCustomerProfileSid ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetCustomerProfileSid(CustomerProfileSid string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetExternalReferenceId ¶ added in v1.3.2
func (params *CreateTollfreeVerificationParams) SetExternalReferenceId(ExternalReferenceId string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetMessageVolume ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetNotificationEmail ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetOptInImageUrls ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetOptInType ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetOptInType(OptInType string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetProductionMessageSample ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetTollfreePhoneNumberSid ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetUseCaseCategories ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *CreateTollfreeVerificationParams
func (*CreateTollfreeVerificationParams) SetUseCaseSummary ¶ added in v1.0.0
func (params *CreateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *CreateTollfreeVerificationParams
type CreateUsAppToPersonParams ¶
type CreateUsAppToPersonParams struct { // A2P Brand Registration SID BrandRegistrationSid *string `json:"BrandRegistrationSid,omitempty"` // A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. Description *string `json:"Description,omitempty"` // Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. MessageFlow *string `json:"MessageFlow,omitempty"` // An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. MessageSamples *[]string `json:"MessageSamples,omitempty"` // A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..] UsAppToPersonUsecase *string `json:"UsAppToPersonUsecase,omitempty"` // Indicates that this SMS campaign will send messages that contain links. HasEmbeddedLinks *bool `json:"HasEmbeddedLinks,omitempty"` // Indicates that this SMS campaign will send messages that contain phone numbers. HasEmbeddedPhone *bool `json:"HasEmbeddedPhone,omitempty"` // If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum. OptInMessage *string `json:"OptInMessage,omitempty"` // Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum. OptOutMessage *string `json:"OptOutMessage,omitempty"` // When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum. HelpMessage *string `json:"HelpMessage,omitempty"` // If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum. OptInKeywords *[]string `json:"OptInKeywords,omitempty"` // End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum. OptOutKeywords *[]string `json:"OptOutKeywords,omitempty"` // End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum. HelpKeywords *[]string `json:"HelpKeywords,omitempty"` // A boolean that specifies whether campaign has Subscriber Optin or not. SubscriberOptIn *bool `json:"SubscriberOptIn,omitempty"` // A boolean that specifies whether campaign is age gated or not. AgeGated *bool `json:"AgeGated,omitempty"` // A boolean that specifies whether campaign allows direct lending or not. DirectLending *bool `json:"DirectLending,omitempty"` }
Optional parameters for the method 'CreateUsAppToPerson'
func (*CreateUsAppToPersonParams) SetAgeGated ¶ added in v1.18.0
func (params *CreateUsAppToPersonParams) SetAgeGated(AgeGated bool) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetBrandRegistrationSid ¶
func (params *CreateUsAppToPersonParams) SetBrandRegistrationSid(BrandRegistrationSid string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetDescription ¶
func (params *CreateUsAppToPersonParams) SetDescription(Description string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetDirectLending ¶ added in v1.18.0
func (params *CreateUsAppToPersonParams) SetDirectLending(DirectLending bool) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetHasEmbeddedLinks ¶
func (params *CreateUsAppToPersonParams) SetHasEmbeddedLinks(HasEmbeddedLinks bool) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetHasEmbeddedPhone ¶
func (params *CreateUsAppToPersonParams) SetHasEmbeddedPhone(HasEmbeddedPhone bool) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetHelpKeywords ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetHelpKeywords(HelpKeywords []string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetHelpMessage ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetHelpMessage(HelpMessage string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetMessageFlow ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetMessageFlow(MessageFlow string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetMessageSamples ¶
func (params *CreateUsAppToPersonParams) SetMessageSamples(MessageSamples []string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetOptInKeywords ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetOptInKeywords(OptInKeywords []string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetOptInMessage ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetOptInMessage(OptInMessage string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetOptOutKeywords ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetOptOutKeywords(OptOutKeywords []string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetOptOutMessage ¶ added in v1.2.0
func (params *CreateUsAppToPersonParams) SetOptOutMessage(OptOutMessage string) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetSubscriberOptIn ¶ added in v1.18.0
func (params *CreateUsAppToPersonParams) SetSubscriberOptIn(SubscriberOptIn bool) *CreateUsAppToPersonParams
func (*CreateUsAppToPersonParams) SetUsAppToPersonUsecase ¶
func (params *CreateUsAppToPersonParams) SetUsAppToPersonUsecase(UsAppToPersonUsecase string) *CreateUsAppToPersonParams
type FetchDeactivationParams ¶
type FetchDeactivationParams struct { // The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. Date *string `json:"Date,omitempty"` }
Optional parameters for the method 'FetchDeactivation'
func (*FetchDeactivationParams) SetDate ¶
func (params *FetchDeactivationParams) SetDate(Date string) *FetchDeactivationParams
type FetchUsAppToPersonUsecaseParams ¶ added in v0.14.1
type FetchUsAppToPersonUsecaseParams struct { // The unique string to identify the A2P brand. BrandRegistrationSid *string `json:"BrandRegistrationSid,omitempty"` }
Optional parameters for the method 'FetchUsAppToPersonUsecase'
func (*FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid ¶ added in v0.14.1
func (params *FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid(BrandRegistrationSid string) *FetchUsAppToPersonUsecaseParams
type ListAlphaSenderParams ¶
type ListAlphaSenderParams 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 'ListAlphaSender'
func (*ListAlphaSenderParams) SetLimit ¶ added in v0.13.0
func (params *ListAlphaSenderParams) SetLimit(Limit int) *ListAlphaSenderParams
func (*ListAlphaSenderParams) SetPageSize ¶
func (params *ListAlphaSenderParams) SetPageSize(PageSize int) *ListAlphaSenderParams
type ListAlphaSenderResponse ¶
type ListAlphaSenderResponse struct { AlphaSenders []MessagingV1AlphaSender `json:"alpha_senders,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListAlphaSenderResponse struct for ListAlphaSenderResponse
type ListAlphaSenderResponseMeta ¶ added in v1.0.0
type ListAlphaSenderResponseMeta 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"` }
ListAlphaSenderResponseMeta struct for ListAlphaSenderResponseMeta
type ListBrandRegistrationsParams ¶
type ListBrandRegistrationsParams 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 'ListBrandRegistrations'
func (*ListBrandRegistrationsParams) SetLimit ¶ added in v0.13.0
func (params *ListBrandRegistrationsParams) SetLimit(Limit int) *ListBrandRegistrationsParams
func (*ListBrandRegistrationsParams) SetPageSize ¶
func (params *ListBrandRegistrationsParams) SetPageSize(PageSize int) *ListBrandRegistrationsParams
type ListBrandRegistrationsResponse ¶
type ListBrandRegistrationsResponse struct { Data []MessagingV1BrandRegistrations `json:"data,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListBrandRegistrationsResponse struct for ListBrandRegistrationsResponse
type ListBrandVettingParams ¶ added in v0.17.0
type ListBrandVettingParams struct { // The third-party provider of the vettings to read VettingProvider *string `json:"VettingProvider,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 'ListBrandVetting'
func (*ListBrandVettingParams) SetLimit ¶ added in v0.17.0
func (params *ListBrandVettingParams) SetLimit(Limit int) *ListBrandVettingParams
func (*ListBrandVettingParams) SetPageSize ¶ added in v0.17.0
func (params *ListBrandVettingParams) SetPageSize(PageSize int) *ListBrandVettingParams
func (*ListBrandVettingParams) SetVettingProvider ¶ added in v0.17.0
func (params *ListBrandVettingParams) SetVettingProvider(VettingProvider string) *ListBrandVettingParams
type ListBrandVettingResponse ¶ added in v0.17.0
type ListBrandVettingResponse struct { Data []MessagingV1BrandVetting `json:"data,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListBrandVettingResponse struct for ListBrandVettingResponse
type ListChannelSenderParams ¶ added in v1.12.0
type ListChannelSenderParams 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 'ListChannelSender'
func (*ListChannelSenderParams) SetLimit ¶ added in v1.12.0
func (params *ListChannelSenderParams) SetLimit(Limit int) *ListChannelSenderParams
func (*ListChannelSenderParams) SetPageSize ¶ added in v1.12.0
func (params *ListChannelSenderParams) SetPageSize(PageSize int) *ListChannelSenderParams
type ListChannelSenderResponse ¶ added in v1.12.0
type ListChannelSenderResponse struct { Senders []MessagingV1ChannelSender `json:"senders,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListChannelSenderResponse struct for ListChannelSenderResponse
type ListPhoneNumberParams ¶
type ListPhoneNumberParams 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 'ListPhoneNumber'
func (*ListPhoneNumberParams) SetLimit ¶ added in v0.13.0
func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams
func (*ListPhoneNumberParams) SetPageSize ¶
func (params *ListPhoneNumberParams) SetPageSize(PageSize int) *ListPhoneNumberParams
type ListPhoneNumberResponse ¶
type ListPhoneNumberResponse struct { PhoneNumbers []MessagingV1PhoneNumber `json:"phone_numbers,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListPhoneNumberResponse struct for ListPhoneNumberResponse
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 { Services []MessagingV1Service `json:"services,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListServiceResponse struct for ListServiceResponse
type ListShortCodeParams ¶
type ListShortCodeParams 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 'ListShortCode'
func (*ListShortCodeParams) SetLimit ¶ added in v0.13.0
func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams
func (*ListShortCodeParams) SetPageSize ¶
func (params *ListShortCodeParams) SetPageSize(PageSize int) *ListShortCodeParams
type ListShortCodeResponse ¶
type ListShortCodeResponse struct { ShortCodes []MessagingV1ShortCode `json:"short_codes,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListShortCodeResponse struct for ListShortCodeResponse
type ListTollfreeVerificationParams ¶ added in v1.0.0
type ListTollfreeVerificationParams struct { // The SID of the Phone Number associated with the Tollfree Verification. TollfreePhoneNumberSid *string `json:"TollfreePhoneNumberSid,omitempty"` // The compliance status of the Tollfree Verification record. Status *string `json:"Status,omitempty"` // Customer supplied reference id for the Tollfree Verification record. ExternalReferenceId *string `json:"ExternalReferenceId,omitempty"` // Whether to include Tollfree Verifications from sub accounts in list response. IncludeSubAccounts *bool `json:"IncludeSubAccounts,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 'ListTollfreeVerification'
func (*ListTollfreeVerificationParams) SetExternalReferenceId ¶ added in v1.21.1
func (params *ListTollfreeVerificationParams) SetExternalReferenceId(ExternalReferenceId string) *ListTollfreeVerificationParams
func (*ListTollfreeVerificationParams) SetIncludeSubAccounts ¶ added in v1.21.1
func (params *ListTollfreeVerificationParams) SetIncludeSubAccounts(IncludeSubAccounts bool) *ListTollfreeVerificationParams
func (*ListTollfreeVerificationParams) SetLimit ¶ added in v1.0.0
func (params *ListTollfreeVerificationParams) SetLimit(Limit int) *ListTollfreeVerificationParams
func (*ListTollfreeVerificationParams) SetPageSize ¶ added in v1.0.0
func (params *ListTollfreeVerificationParams) SetPageSize(PageSize int) *ListTollfreeVerificationParams
func (*ListTollfreeVerificationParams) SetStatus ¶ added in v1.0.0
func (params *ListTollfreeVerificationParams) SetStatus(Status string) *ListTollfreeVerificationParams
func (*ListTollfreeVerificationParams) SetTollfreePhoneNumberSid ¶ added in v1.0.0
func (params *ListTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *ListTollfreeVerificationParams
type ListTollfreeVerificationResponse ¶ added in v1.0.0
type ListTollfreeVerificationResponse struct { Verifications []MessagingV1TollfreeVerification `json:"verifications,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListTollfreeVerificationResponse struct for ListTollfreeVerificationResponse
type ListUsAppToPersonParams ¶
type ListUsAppToPersonParams 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 'ListUsAppToPerson'
func (*ListUsAppToPersonParams) SetLimit ¶ added in v0.13.0
func (params *ListUsAppToPersonParams) SetLimit(Limit int) *ListUsAppToPersonParams
func (*ListUsAppToPersonParams) SetPageSize ¶
func (params *ListUsAppToPersonParams) SetPageSize(PageSize int) *ListUsAppToPersonParams
type ListUsAppToPersonResponse ¶
type ListUsAppToPersonResponse struct { Compliance []MessagingV1UsAppToPerson `json:"compliance,omitempty"` Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"` }
ListUsAppToPersonResponse struct for ListUsAppToPersonResponse
type MessagingV1AlphaSender ¶ added in v0.14.0
type MessagingV1AlphaSender struct { // The unique string that we created to identify the AlphaSender resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AlphaSender resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with. ServiceSid *string `json:"service_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The Alphanumeric Sender ID string. AlphaSender *string `json:"alpha_sender,omitempty"` // An array of values that describe whether the number can receive calls or messages. Can be: `SMS`. Capabilities *[]string `json:"capabilities,omitempty"` // The absolute URL of the AlphaSender resource. Url *string `json:"url,omitempty"` }
MessagingV1AlphaSender struct for MessagingV1AlphaSender
type MessagingV1BrandRegistrationOtp ¶ added in v1.5.0
type MessagingV1BrandRegistrationOtp struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Brand Registration resource. AccountSid *string `json:"account_sid,omitempty"` // The unique string to identify Brand Registration of Sole Proprietor Brand BrandRegistrationSid *string `json:"brand_registration_sid,omitempty"` }
MessagingV1BrandRegistrationOtp struct for MessagingV1BrandRegistrationOtp
type MessagingV1BrandRegistrations ¶
type MessagingV1BrandRegistrations struct { // The unique string to identify Brand Registration. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Brand Registration resource. AccountSid *string `json:"account_sid,omitempty"` // A2P Messaging Profile Bundle BundleSid. CustomerProfileBundleSid *string `json:"customer_profile_bundle_sid,omitempty"` // A2P Messaging Profile Bundle BundleSid. A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // Type of brand. One of: \"STANDARD\", \"SOLE_PROPRIETOR\". SOLE_PROPRIETOR is for the low volume, SOLE_PROPRIETOR campaign use case. There can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR brand. STANDARD is for all other campaign use cases. Multiple campaign use cases can be created per STANDARD brand. BrandType *string `json:"brand_type,omitempty"` Status *string `json:"status,omitempty"` // Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration. TcrId *string `json:"tcr_id,omitempty"` // DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED. FailureReason *string `json:"failure_reason,omitempty"` // A list of errors that occurred during the brand registration process. Errors *[]interface{} `json:"errors,omitempty"` // The absolute URL of the Brand Registration resource. Url *string `json:"url,omitempty"` // The secondary vetting score if it was done. Otherwise, it will be the brand score if it's returned from TCR. It may be null if no score is available. BrandScore *int `json:"brand_score,omitempty"` // DEPRECATED. Feedback on how to improve brand score BrandFeedback *[]string `json:"brand_feedback,omitempty"` IdentityStatus *string `json:"identity_status,omitempty"` // Publicly traded company identified in the Russell 3000 Index Russell3000 *bool `json:"russell_3000,omitempty"` // Identified as a government entity GovernmentEntity *bool `json:"government_entity,omitempty"` // Nonprofit organization tax-exempt status per section 501 of the U.S. tax code. TaxExemptStatus *string `json:"tax_exempt_status,omitempty"` // A flag to disable automatic secondary vetting for brands which it would otherwise be done. SkipAutomaticSecVet *bool `json:"skip_automatic_sec_vet,omitempty"` // A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided. Mock *bool `json:"mock,omitempty"` Links *map[string]interface{} `json:"links,omitempty"` }
MessagingV1BrandRegistrations struct for MessagingV1BrandRegistrations
type MessagingV1BrandVetting ¶ added in v0.17.0
type MessagingV1BrandVetting struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the vetting record. AccountSid *string `json:"account_sid,omitempty"` // The unique string to identify Brand Registration. BrandSid *string `json:"brand_sid,omitempty"` // The Twilio SID of the third-party vetting record. BrandVettingSid *string `json:"brand_vetting_sid,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The unique identifier of the vetting from the third-party provider. VettingId *string `json:"vetting_id,omitempty"` // The type of vetting that has been conducted. One of “STANDARD” (Aegis) or “POLITICAL” (Campaign Verify). VettingClass *string `json:"vetting_class,omitempty"` // The status of the import vetting attempt. One of “PENDING,” “SUCCESS,” or “FAILED”. VettingStatus *string `json:"vetting_status,omitempty"` VettingProvider *string `json:"vetting_provider,omitempty"` // The absolute URL of the Brand Vetting resource. Url *string `json:"url,omitempty"` }
MessagingV1BrandVetting struct for MessagingV1BrandVetting
type MessagingV1ChannelSender ¶ added in v1.12.0
type MessagingV1ChannelSender struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ChannelSender resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Service](https://www.twilio.com/docs/messaging/services) the resource is associated with. MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // The unique string that we created to identify the ChannelSender resource. Sid *string `json:"sid,omitempty"` // The unique string that identifies the sender e.g whatsapp:+123456XXXX. Sender *string `json:"sender,omitempty"` // A string value that identifies the sender type e.g WhatsApp, Messenger. SenderType *string `json:"sender_type,omitempty"` // The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number. CountryCode *string `json:"country_code,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the ChannelSender resource. Url *string `json:"url,omitempty"` }
MessagingV1ChannelSender struct for MessagingV1ChannelSender
type MessagingV1Deactivation ¶
type MessagingV1Deactivation struct { // Returns an authenticated url that redirects to a file containing the deactivated numbers for the requested day. This url is valid for up to two minutes. RedirectTo *string `json:"redirect_to,omitempty"` }
MessagingV1Deactivation struct for MessagingV1Deactivation
type MessagingV1DomainCertV4 ¶ added in v1.2.2
type MessagingV1DomainCertV4 struct { // The unique string that we created to identify the Domain resource. DomainSid *string `json:"domain_sid,omitempty"` // Date that this Domain was last updated. DateUpdated *time.Time `json:"date_updated,omitempty"` // Date that the private certificate associated with this domain expires. You will need to update the certificate before that date to ensure your shortened links will continue to work. DateExpires *time.Time `json:"date_expires,omitempty"` // Date that this Domain was registered to the Twilio platform to create a new Domain object. DateCreated *time.Time `json:"date_created,omitempty"` // Full url path for this domain. DomainName *string `json:"domain_name,omitempty"` // The unique string that we created to identify this Certificate resource. CertificateSid *string `json:"certificate_sid,omitempty"` Url *string `json:"url,omitempty"` // Optional JSON field describing the status and upload date of a new certificate in the process of validation CertInValidation *interface{} `json:"cert_in_validation,omitempty"` }
MessagingV1DomainCertV4 struct for MessagingV1DomainCertV4
type MessagingV1DomainConfig ¶ added in v1.2.2
type MessagingV1DomainConfig struct { // The unique string that we created to identify the Domain resource. DomainSid *string `json:"domain_sid,omitempty"` // The unique string that we created to identify the Domain config (prefix ZK). ConfigSid *string `json:"config_sid,omitempty"` // Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. FallbackUrl *string `json:"fallback_url,omitempty"` // URL to receive click events to your webhook whenever the recipients click on the shortened links. CallbackUrl *string `json:"callback_url,omitempty"` // Boolean field to set customer delivery preference when there is a failure in linkShortening service ContinueOnFailure *bool `json:"continue_on_failure,omitempty"` // Date this Domain Config was created. DateCreated *time.Time `json:"date_created,omitempty"` // Date that this Domain Config was last updated. DateUpdated *time.Time `json:"date_updated,omitempty"` Url *string `json:"url,omitempty"` // Customer's choice to send links with/without \"https://\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified. DisableHttps *bool `json:"disable_https,omitempty"` }
MessagingV1DomainConfig struct for MessagingV1DomainConfig
type MessagingV1DomainConfigMessagingService ¶ added in v1.4.0
type MessagingV1DomainConfigMessagingService struct { // The unique string that we created to identify the Domain resource. DomainSid *string `json:"domain_sid,omitempty"` // The unique string that we created to identify the Domain config (prefix ZK). ConfigSid *string `json:"config_sid,omitempty"` // The unique string that identifies the messaging service MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. FallbackUrl *string `json:"fallback_url,omitempty"` // URL to receive click events to your webhook whenever the recipients click on the shortened links. CallbackUrl *string `json:"callback_url,omitempty"` // Boolean field to set customer delivery preference when there is a failure in linkShortening service ContinueOnFailure *bool `json:"continue_on_failure,omitempty"` // Date this Domain Config was created. DateCreated *time.Time `json:"date_created,omitempty"` // Date that this Domain Config was last updated. DateUpdated *time.Time `json:"date_updated,omitempty"` Url *string `json:"url,omitempty"` }
MessagingV1DomainConfigMessagingService struct for MessagingV1DomainConfigMessagingService
type MessagingV1ExternalCampaign ¶
type MessagingV1ExternalCampaign struct { // The unique string that identifies a US A2P Compliance resource `QE2c6890da8086d771620e9b13fadeba0b`. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Campaign belongs to. AccountSid *string `json:"account_sid,omitempty"` // ID of the preregistered campaign. CampaignId *string `json:"campaign_id,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` }
MessagingV1ExternalCampaign struct for MessagingV1ExternalCampaign
type MessagingV1LinkshorteningMessagingService ¶ added in v1.4.0
type MessagingV1LinkshorteningMessagingService struct { // The unique string identifies the domain resource DomainSid *string `json:"domain_sid,omitempty"` // The unique string that identifies the messaging service MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Url *string `json:"url,omitempty"` }
MessagingV1LinkshorteningMessagingService struct for MessagingV1LinkshorteningMessagingService
type MessagingV1LinkshorteningMessagingServiceDomainAssociation ¶ added in v1.7.1
type MessagingV1LinkshorteningMessagingServiceDomainAssociation struct { // The unique string that we created to identify the Domain resource. DomainSid *string `json:"domain_sid,omitempty"` // The unique string that identifies the messaging service MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Url *string `json:"url,omitempty"` }
MessagingV1LinkshorteningMessagingServiceDomainAssociation struct for MessagingV1LinkshorteningMessagingServiceDomainAssociation
type MessagingV1PhoneNumber ¶ added in v0.14.0
type MessagingV1PhoneNumber struct { // The unique string that we created to identify the PhoneNumber resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the PhoneNumber resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with. ServiceSid *string `json:"service_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. PhoneNumber *string `json:"phone_number,omitempty"` // The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number. CountryCode *string `json:"country_code,omitempty"` // An array of values that describe whether the number can receive calls or messages. Can be: `Voice`, `SMS`, and `MMS`. Capabilities *[]string `json:"capabilities,omitempty"` // The absolute URL of the PhoneNumber resource. Url *string `json:"url,omitempty"` }
MessagingV1PhoneNumber struct for MessagingV1PhoneNumber
type MessagingV1RequestManagedCert ¶ added in v1.23.4
type MessagingV1RequestManagedCert struct { // The unique string that we created to identify the Domain resource. DomainSid *string `json:"domain_sid,omitempty"` // Date that this Domain was last updated. DateUpdated *time.Time `json:"date_updated,omitempty"` // Date that this Domain was registered to the Twilio platform to create a new Domain object. DateCreated *time.Time `json:"date_created,omitempty"` // Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert. DateExpires *time.Time `json:"date_expires,omitempty"` // Full url path for this domain. DomainName *string `json:"domain_name,omitempty"` // The unique string that we created to identify this Certificate resource. CertificateSid *string `json:"certificate_sid,omitempty"` Url *string `json:"url,omitempty"` // A boolean flag indicating if the certificate is managed by Twilio. Managed *bool `json:"managed,omitempty"` // A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. Requesting *bool `json:"requesting,omitempty"` }
MessagingV1RequestManagedCert struct for MessagingV1RequestManagedCert
type MessagingV1Service ¶
type MessagingV1Service struct { // The unique string that we created to identify the Service resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource. AccountSid *string `json:"account_sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service. InboundRequestUrl *string `json:"inbound_request_url,omitempty"` // The HTTP method we use to call `inbound_request_url`. Can be `GET` or `POST`. InboundMethod *string `json:"inbound_method,omitempty"` // The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service. FallbackUrl *string `json:"fallback_url,omitempty"` // The HTTP method we use to call `fallback_url`. Can be: `GET` or `POST`. FallbackMethod *string `json:"fallback_method,omitempty"` // The URL we call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. StatusCallback *string `json:"status_callback,omitempty"` // Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. StickySender *bool `json:"sticky_sender,omitempty"` // Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. MmsConverter *bool `json:"mms_converter,omitempty"` // Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. SmartEncoding *bool `json:"smart_encoding,omitempty"` ScanMessageContent *string `json:"scan_message_content,omitempty"` // [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. FallbackToLongCode *bool `json:"fallback_to_long_code,omitempty"` // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. AreaCodeGeomatch *bool `json:"area_code_geomatch,omitempty"` // Reserved. SynchronousValidation *bool `json:"synchronous_validation,omitempty"` // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. ValidityPeriod int `json:"validity_period,omitempty"` // The absolute URL of the Service resource. Url *string `json:"url,omitempty"` // The absolute URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` // A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. Usecase *string `json:"usecase,omitempty"` // Whether US A2P campaign is registered for this Service. UsAppToPersonRegistered *bool `json:"us_app_to_person_registered,omitempty"` // A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. UseInboundWebhookOnNumber *bool `json:"use_inbound_webhook_on_number,omitempty"` }
MessagingV1Service struct for MessagingV1Service
type MessagingV1ShortCode ¶ added in v0.14.0
type MessagingV1ShortCode struct { // The unique string that we created to identify the ShortCode resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with. ServiceSid *string `json:"service_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The [E.164](https://www.twilio.com/docs/glossary/what-e164) format of the short code. ShortCode *string `json:"short_code,omitempty"` // The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number. CountryCode *string `json:"country_code,omitempty"` // An array of values that describe whether the number can receive calls or messages. Can be: `SMS` and `MMS`. Capabilities *[]string `json:"capabilities,omitempty"` // The absolute URL of the ShortCode resource. Url *string `json:"url,omitempty"` }
MessagingV1ShortCode struct for MessagingV1ShortCode
type MessagingV1TollfreeVerification ¶ added in v1.0.0
type MessagingV1TollfreeVerification struct { // The unique string to identify Tollfree Verification. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource. AccountSid *string `json:"account_sid,omitempty"` // Customer's Profile Bundle BundleSid. CustomerProfileSid *string `json:"customer_profile_sid,omitempty"` // Tollfree TrustProduct Bundle BundleSid. TrustProductSid *string `json:"trust_product_sid,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The SID of the Regulated Item. RegulatedItemSid *string `json:"regulated_item_sid,omitempty"` // The name of the business or organization using the Tollfree number. BusinessName *string `json:"business_name,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress *string `json:"business_street_address,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress2 *string `json:"business_street_address2,omitempty"` // The city of the business or organization using the Tollfree number. BusinessCity *string `json:"business_city,omitempty"` // The state/province/region of the business or organization using the Tollfree number. BusinessStateProvinceRegion *string `json:"business_state_province_region,omitempty"` // The postal code of the business or organization using the Tollfree number. BusinessPostalCode *string `json:"business_postal_code,omitempty"` // The country of the business or organization using the Tollfree number. BusinessCountry *string `json:"business_country,omitempty"` // The website of the business or organization using the Tollfree number. BusinessWebsite *string `json:"business_website,omitempty"` // The first name of the contact for the business or organization using the Tollfree number. BusinessContactFirstName *string `json:"business_contact_first_name,omitempty"` // The last name of the contact for the business or organization using the Tollfree number. BusinessContactLastName *string `json:"business_contact_last_name,omitempty"` // The email address of the contact for the business or organization using the Tollfree number. BusinessContactEmail *string `json:"business_contact_email,omitempty"` // The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. BusinessContactPhone *string `json:"business_contact_phone,omitempty"` // The email address to receive the notification about the verification result. . NotificationEmail *string `json:"notification_email,omitempty"` // The category of the use case for the Tollfree Number. List as many are applicable.. UseCaseCategories *[]string `json:"use_case_categories,omitempty"` // Use this to further explain how messaging is used by the business or organization. UseCaseSummary *string `json:"use_case_summary,omitempty"` // An example of message content, i.e. a sample message. ProductionMessageSample *string `json:"production_message_sample,omitempty"` // Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. OptInImageUrls *[]string `json:"opt_in_image_urls,omitempty"` OptInType *string `json:"opt_in_type,omitempty"` // Estimate monthly volume of messages from the Tollfree Number. MessageVolume *string `json:"message_volume,omitempty"` // Additional information to be provided for verification. AdditionalInformation *string `json:"additional_information,omitempty"` // The SID of the Phone Number associated with the Tollfree Verification. TollfreePhoneNumberSid *string `json:"tollfree_phone_number_sid,omitempty"` Status *string `json:"status,omitempty"` // The absolute URL of the Tollfree Verification resource. Url *string `json:"url,omitempty"` // The rejection reason given when a Tollfree Verification has been rejected. RejectionReason *string `json:"rejection_reason,omitempty"` // The error code given when a Tollfree Verification has been rejected. ErrorCode *int `json:"error_code,omitempty"` // The date and time when the ability to edit a rejected verification expires. EditExpiration *time.Time `json:"edit_expiration,omitempty"` // If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not. EditAllowed *bool `json:"edit_allowed,omitempty"` // A list of rejection reasons and codes describing why a Tollfree Verification has been rejected. RejectionReasons *[]interface{} `json:"rejection_reasons,omitempty"` // The URLs of the documents associated with the Tollfree Verification resource. ResourceLinks *interface{} `json:"resource_links,omitempty"` // An optional external reference ID supplied by customer and echoed back on status retrieval. ExternalReferenceId *string `json:"external_reference_id,omitempty"` }
MessagingV1TollfreeVerification struct for MessagingV1TollfreeVerification
type MessagingV1UsAppToPerson ¶ added in v0.14.0
type MessagingV1UsAppToPerson struct { // The unique string that identifies a US A2P Compliance resource `QE2c6890da8086d771620e9b13fadeba0b`. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Campaign belongs to. AccountSid *string `json:"account_sid,omitempty"` // The unique string to identify the A2P brand. BrandRegistrationSid *string `json:"brand_registration_sid,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. Description *string `json:"description,omitempty"` // An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. MessageSamples *[]string `json:"message_samples,omitempty"` // A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING, SOLE_PROPRIETOR...]. SOLE_PROPRIETOR campaign use cases can only be created by SOLE_PROPRIETOR Brands, and there can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR Brand. UsAppToPersonUsecase *string `json:"us_app_to_person_usecase,omitempty"` // Indicate that this SMS campaign will send messages that contain links. HasEmbeddedLinks *bool `json:"has_embedded_links,omitempty"` // Indicates that this SMS campaign will send messages that contain phone numbers. HasEmbeddedPhone *bool `json:"has_embedded_phone,omitempty"` // A boolean that specifies whether campaign has Subscriber Optin or not. SubscriberOptIn *bool `json:"subscriber_opt_in,omitempty"` // A boolean that specifies whether campaign is age gated or not. AgeGated *bool `json:"age_gated,omitempty"` // A boolean that specifies whether campaign allows direct lending or not. DirectLending *bool `json:"direct_lending,omitempty"` // Campaign status. Examples: IN_PROGRESS, VERIFIED, FAILED. CampaignStatus *string `json:"campaign_status,omitempty"` // The Campaign Registry (TCR) Campaign ID. CampaignId *string `json:"campaign_id,omitempty"` // Indicates whether the campaign was registered externally or not. IsExternallyRegistered *bool `json:"is_externally_registered,omitempty"` // Rate limit and/or classification set by each carrier, Ex. AT&T or T-Mobile. RateLimits *interface{} `json:"rate_limits,omitempty"` // Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. MessageFlow *string `json:"message_flow,omitempty"` // If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum. OptInMessage *string `json:"opt_in_message,omitempty"` // Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum. OptOutMessage *string `json:"opt_out_message,omitempty"` // When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum. HelpMessage *string `json:"help_message,omitempty"` // If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum. OptInKeywords *[]string `json:"opt_in_keywords,omitempty"` // End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum. OptOutKeywords *[]string `json:"opt_out_keywords,omitempty"` // End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum. HelpKeywords *[]string `json:"help_keywords,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the US App to Person resource. Url *string `json:"url,omitempty"` // A boolean that specifies whether campaign is a mock or not. Mock campaigns will be automatically created if using a mock brand. Mock campaigns should only be used for testing purposes. Mock *bool `json:"mock,omitempty"` // Details indicating why a campaign registration failed. These errors can indicate one or more fields that were incorrect or did not meet review requirements. Errors *[]interface{} `json:"errors,omitempty"` }
MessagingV1UsAppToPerson struct for MessagingV1UsAppToPerson
type MessagingV1UsAppToPersonUsecase ¶ added in v0.14.0
type MessagingV1UsAppToPersonUsecase struct {
// Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.
UsAppToPersonUsecases *[]interface{} `json:"us_app_to_person_usecases,omitempty"`
}
MessagingV1UsAppToPersonUsecase struct for MessagingV1UsAppToPersonUsecase
type MessagingV1Usecase ¶
type MessagingV1Usecase struct {
// Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases.
Usecases *[]interface{} `json:"usecases,omitempty"`
}
MessagingV1Usecase struct for MessagingV1Usecase
type UpdateDomainCertV4Params ¶ added in v1.2.2
type UpdateDomainCertV4Params struct { // Contains the full TLS certificate and private for this domain in PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail. Twilio uses this information to process HTTPS traffic sent to your domain. TlsCert *string `json:"TlsCert,omitempty"` }
Optional parameters for the method 'UpdateDomainCertV4'
func (*UpdateDomainCertV4Params) SetTlsCert ¶ added in v1.2.2
func (params *UpdateDomainCertV4Params) SetTlsCert(TlsCert string) *UpdateDomainCertV4Params
type UpdateDomainConfigParams ¶ added in v1.2.2
type UpdateDomainConfigParams struct { // Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. FallbackUrl *string `json:"FallbackUrl,omitempty"` // URL to receive click events to your webhook whenever the recipients click on the shortened links CallbackUrl *string `json:"CallbackUrl,omitempty"` // Boolean field to set customer delivery preference when there is a failure in linkShortening service ContinueOnFailure *bool `json:"ContinueOnFailure,omitempty"` // Customer's choice to send links with/without \\\"https://\\\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified. DisableHttps *bool `json:"DisableHttps,omitempty"` }
Optional parameters for the method 'UpdateDomainConfig'
func (*UpdateDomainConfigParams) SetCallbackUrl ¶ added in v1.2.2
func (params *UpdateDomainConfigParams) SetCallbackUrl(CallbackUrl string) *UpdateDomainConfigParams
func (*UpdateDomainConfigParams) SetContinueOnFailure ¶ added in v1.7.1
func (params *UpdateDomainConfigParams) SetContinueOnFailure(ContinueOnFailure bool) *UpdateDomainConfigParams
func (*UpdateDomainConfigParams) SetDisableHttps ¶ added in v1.7.1
func (params *UpdateDomainConfigParams) SetDisableHttps(DisableHttps bool) *UpdateDomainConfigParams
func (*UpdateDomainConfigParams) SetFallbackUrl ¶ added in v1.2.2
func (params *UpdateDomainConfigParams) SetFallbackUrl(FallbackUrl string) *UpdateDomainConfigParams
type UpdateServiceParams ¶
type UpdateServiceParams struct { // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service. InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` // The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. InboundMethod *string `json:"InboundMethod,omitempty"` // The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service. FallbackUrl *string `json:"FallbackUrl,omitempty"` // The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. FallbackMethod *string `json:"FallbackMethod,omitempty"` // The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. StatusCallback *string `json:"StatusCallback,omitempty"` // Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. StickySender *bool `json:"StickySender,omitempty"` // Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. MmsConverter *bool `json:"MmsConverter,omitempty"` // Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. SmartEncoding *bool `json:"SmartEncoding,omitempty"` // ScanMessageContent *string `json:"ScanMessageContent,omitempty"` // [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. ValidityPeriod *int `json:"ValidityPeriod,omitempty"` // Reserved. SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` // A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. Usecase *string `json:"Usecase,omitempty"` // A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. UseInboundWebhookOnNumber *bool `json:"UseInboundWebhookOnNumber,omitempty"` }
Optional parameters for the method 'UpdateService'
func (*UpdateServiceParams) SetAreaCodeGeomatch ¶
func (params *UpdateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *UpdateServiceParams
func (*UpdateServiceParams) SetFallbackMethod ¶
func (params *UpdateServiceParams) SetFallbackMethod(FallbackMethod string) *UpdateServiceParams
func (*UpdateServiceParams) SetFallbackToLongCode ¶
func (params *UpdateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *UpdateServiceParams
func (*UpdateServiceParams) SetFallbackUrl ¶
func (params *UpdateServiceParams) SetFallbackUrl(FallbackUrl string) *UpdateServiceParams
func (*UpdateServiceParams) SetFriendlyName ¶
func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
func (*UpdateServiceParams) SetInboundMethod ¶
func (params *UpdateServiceParams) SetInboundMethod(InboundMethod string) *UpdateServiceParams
func (*UpdateServiceParams) SetInboundRequestUrl ¶
func (params *UpdateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *UpdateServiceParams
func (*UpdateServiceParams) SetMmsConverter ¶
func (params *UpdateServiceParams) SetMmsConverter(MmsConverter bool) *UpdateServiceParams
func (*UpdateServiceParams) SetScanMessageContent ¶
func (params *UpdateServiceParams) SetScanMessageContent(ScanMessageContent string) *UpdateServiceParams
func (*UpdateServiceParams) SetSmartEncoding ¶
func (params *UpdateServiceParams) SetSmartEncoding(SmartEncoding bool) *UpdateServiceParams
func (*UpdateServiceParams) SetStatusCallback ¶
func (params *UpdateServiceParams) SetStatusCallback(StatusCallback string) *UpdateServiceParams
func (*UpdateServiceParams) SetStickySender ¶
func (params *UpdateServiceParams) SetStickySender(StickySender bool) *UpdateServiceParams
func (*UpdateServiceParams) SetSynchronousValidation ¶
func (params *UpdateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *UpdateServiceParams
func (*UpdateServiceParams) SetUseInboundWebhookOnNumber ¶
func (params *UpdateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *UpdateServiceParams
func (*UpdateServiceParams) SetUsecase ¶ added in v0.17.0
func (params *UpdateServiceParams) SetUsecase(Usecase string) *UpdateServiceParams
func (*UpdateServiceParams) SetValidityPeriod ¶
func (params *UpdateServiceParams) SetValidityPeriod(ValidityPeriod int) *UpdateServiceParams
type UpdateTollfreeVerificationParams ¶ added in v1.3.1
type UpdateTollfreeVerificationParams struct { // The name of the business or organization using the Tollfree number. BusinessName *string `json:"BusinessName,omitempty"` // The website of the business or organization using the Tollfree number. BusinessWebsite *string `json:"BusinessWebsite,omitempty"` // The email address to receive the notification about the verification result. . NotificationEmail *string `json:"NotificationEmail,omitempty"` // The category of the use case for the Tollfree Number. List as many are applicable.. UseCaseCategories *[]string `json:"UseCaseCategories,omitempty"` // Use this to further explain how messaging is used by the business or organization. UseCaseSummary *string `json:"UseCaseSummary,omitempty"` // An example of message content, i.e. a sample message. ProductionMessageSample *string `json:"ProductionMessageSample,omitempty"` // Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. OptInImageUrls *[]string `json:"OptInImageUrls,omitempty"` // OptInType *string `json:"OptInType,omitempty"` // Estimate monthly volume of messages from the Tollfree Number. MessageVolume *string `json:"MessageVolume,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress *string `json:"BusinessStreetAddress,omitempty"` // The address of the business or organization using the Tollfree number. BusinessStreetAddress2 *string `json:"BusinessStreetAddress2,omitempty"` // The city of the business or organization using the Tollfree number. BusinessCity *string `json:"BusinessCity,omitempty"` // The state/province/region of the business or organization using the Tollfree number. BusinessStateProvinceRegion *string `json:"BusinessStateProvinceRegion,omitempty"` // The postal code of the business or organization using the Tollfree number. BusinessPostalCode *string `json:"BusinessPostalCode,omitempty"` // The country of the business or organization using the Tollfree number. BusinessCountry *string `json:"BusinessCountry,omitempty"` // Additional information to be provided for verification. AdditionalInformation *string `json:"AdditionalInformation,omitempty"` // The first name of the contact for the business or organization using the Tollfree number. BusinessContactFirstName *string `json:"BusinessContactFirstName,omitempty"` // The last name of the contact for the business or organization using the Tollfree number. BusinessContactLastName *string `json:"BusinessContactLastName,omitempty"` // The email address of the contact for the business or organization using the Tollfree number. BusinessContactEmail *string `json:"BusinessContactEmail,omitempty"` // The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. BusinessContactPhone *string `json:"BusinessContactPhone,omitempty"` // Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. EditReason *string `json:"EditReason,omitempty"` }
Optional parameters for the method 'UpdateTollfreeVerification'
func (*UpdateTollfreeVerificationParams) SetAdditionalInformation ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessCity ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessContactEmail ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessContactFirstName ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessContactLastName ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessContactPhone ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessCountry ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessName ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessName(BusinessName string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessPostalCode ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessStateProvinceRegion ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessStreetAddress ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessStreetAddress2 ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetBusinessWebsite ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetEditReason ¶ added in v1.15.2
func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetMessageVolume ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetNotificationEmail ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetOptInImageUrls ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetOptInType ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetOptInType(OptInType string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetProductionMessageSample ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetUseCaseCategories ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *UpdateTollfreeVerificationParams
func (*UpdateTollfreeVerificationParams) SetUseCaseSummary ¶ added in v1.3.1
func (params *UpdateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *UpdateTollfreeVerificationParams
type UpdateUsAppToPersonParams ¶ added in v1.18.0
type UpdateUsAppToPersonParams struct { // Indicates that this SMS campaign will send messages that contain links. HasEmbeddedLinks *bool `json:"HasEmbeddedLinks,omitempty"` // Indicates that this SMS campaign will send messages that contain phone numbers. HasEmbeddedPhone *bool `json:"HasEmbeddedPhone,omitempty"` // An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. MessageSamples *[]string `json:"MessageSamples,omitempty"` // Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. MessageFlow *string `json:"MessageFlow,omitempty"` // A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. Description *string `json:"Description,omitempty"` // A boolean that specifies whether campaign requires age gate for federally legal content. AgeGated *bool `json:"AgeGated,omitempty"` // A boolean that specifies whether campaign allows direct lending or not. DirectLending *bool `json:"DirectLending,omitempty"` }
Optional parameters for the method 'UpdateUsAppToPerson'
func (*UpdateUsAppToPersonParams) SetAgeGated ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetAgeGated(AgeGated bool) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetDescription ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetDescription(Description string) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetDirectLending ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetDirectLending(DirectLending bool) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetHasEmbeddedLinks ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetHasEmbeddedLinks(HasEmbeddedLinks bool) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetHasEmbeddedPhone ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetHasEmbeddedPhone(HasEmbeddedPhone bool) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetMessageFlow ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetMessageFlow(MessageFlow string) *UpdateUsAppToPersonParams
func (*UpdateUsAppToPersonParams) SetMessageSamples ¶ added in v1.18.0
func (params *UpdateUsAppToPersonParams) SetMessageSamples(MessageSamples []string) *UpdateUsAppToPersonParams
Source Files ¶
- a2p_brand_registrations.go
- a2p_brand_registrations_sms_otp.go
- a2p_brand_registrations_vettings.go
- api_service.go
- deactivations.go
- link_shortening_domains_certificate.go
- link_shortening_domains_config.go
- link_shortening_domains_messaging_services.go
- link_shortening_domains_request_managed_cert.go
- link_shortening_messaging_service_domain_config.go
- link_shortening_messaging_services_domain.go
- model_list_alpha_sender_response.go
- model_list_alpha_sender_response_meta.go
- model_list_brand_registrations_response.go
- model_list_brand_vetting_response.go
- model_list_channel_sender_response.go
- model_list_phone_number_response.go
- model_list_service_response.go
- model_list_short_code_response.go
- model_list_tollfree_verification_response.go
- model_list_us_app_to_person_response.go
- model_messaging_v1_alpha_sender.go
- model_messaging_v1_brand_registration_otp.go
- model_messaging_v1_brand_registrations.go
- model_messaging_v1_brand_vetting.go
- model_messaging_v1_channel_sender.go
- model_messaging_v1_deactivation.go
- model_messaging_v1_domain_cert_v4.go
- model_messaging_v1_domain_config.go
- model_messaging_v1_domain_config_messaging_service.go
- model_messaging_v1_external_campaign.go
- model_messaging_v1_linkshortening_messaging_service.go
- model_messaging_v1_linkshortening_messaging_service_domain_association.go
- model_messaging_v1_phone_number.go
- model_messaging_v1_request_managed_cert.go
- model_messaging_v1_service.go
- model_messaging_v1_short_code.go
- model_messaging_v1_tollfree_verification.go
- model_messaging_v1_us_app_to_person.go
- model_messaging_v1_us_app_to_person_usecase.go
- model_messaging_v1_usecase.go
- services.go
- services_alpha_senders.go
- services_channel_senders.go
- services_compliance_usa2p.go
- services_compliance_usa2p_usecases.go
- services_phone_numbers.go
- services_preregistered_usa2p.go
- services_short_codes.go
- services_usecases.go
- tollfree_verifications.go