package
1.22.3
Repository: https://github.com/twilio/twilio-go.git
Documentation: pkg.go.dev

# README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://verify.twilio.com

ClassMethodHTTP requestDescription
AttemptsApiFetchVerificationAttemptGet /v2/Attempts/{Sid}
AttemptsApiListVerificationAttemptGet /v2/Attempts
AttemptsSummaryApiFetchVerificationAttemptsSummaryGet /v2/Attempts/Summary
FormsApiFetchFormGet /v2/Forms/{FormType}
SafeListNumbersApiCreateSafelistPost /v2/SafeList/Numbers
SafeListNumbersApiDeleteSafelistDelete /v2/SafeList/Numbers/{PhoneNumber}
SafeListNumbersApiFetchSafelistGet /v2/SafeList/Numbers/{PhoneNumber}
ServicesApiCreateServicePost /v2/Services
ServicesApiDeleteServiceDelete /v2/Services/{Sid}
ServicesApiFetchServiceGet /v2/Services/{Sid}
ServicesApiListServiceGet /v2/Services
ServicesApiUpdateServicePost /v2/Services/{Sid}
ServicesAccessTokensApiCreateAccessTokenPost /v2/Services/{ServiceSid}/AccessTokens
ServicesAccessTokensApiFetchAccessTokenGet /v2/Services/{ServiceSid}/AccessTokens/{Sid}
ServicesEntitiesApiCreateEntityPost /v2/Services/{ServiceSid}/Entities
ServicesEntitiesApiDeleteEntityDelete /v2/Services/{ServiceSid}/Entities/{Identity}
ServicesEntitiesApiFetchEntityGet /v2/Services/{ServiceSid}/Entities/{Identity}
ServicesEntitiesApiListEntityGet /v2/Services/{ServiceSid}/Entities
ServicesEntitiesChallengesApiCreateChallengePost /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges
ServicesEntitiesChallengesApiFetchChallengeGet /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}
ServicesEntitiesChallengesApiListChallengeGet /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges
ServicesEntitiesChallengesApiUpdateChallengePost /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}
ServicesEntitiesChallengesNotificationsApiCreateNotificationPost /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications
ServicesEntitiesFactorsApiCreateNewFactorPost /v2/Services/{ServiceSid}/Entities/{Identity}/Factors
ServicesEntitiesFactorsApiDeleteFactorDelete /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}
ServicesEntitiesFactorsApiFetchFactorGet /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}
ServicesEntitiesFactorsApiListFactorGet /v2/Services/{ServiceSid}/Entities/{Identity}/Factors
ServicesEntitiesFactorsApiUpdateFactorPost /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}
ServicesMessagingConfigurationsApiCreateMessagingConfigurationPost /v2/Services/{ServiceSid}/MessagingConfigurations
ServicesMessagingConfigurationsApiDeleteMessagingConfigurationDelete /v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
ServicesMessagingConfigurationsApiFetchMessagingConfigurationGet /v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
ServicesMessagingConfigurationsApiListMessagingConfigurationGet /v2/Services/{ServiceSid}/MessagingConfigurations
ServicesMessagingConfigurationsApiUpdateMessagingConfigurationPost /v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
ServicesRateLimitsApiCreateRateLimitPost /v2/Services/{ServiceSid}/RateLimits
ServicesRateLimitsApiDeleteRateLimitDelete /v2/Services/{ServiceSid}/RateLimits/{Sid}
ServicesRateLimitsApiFetchRateLimitGet /v2/Services/{ServiceSid}/RateLimits/{Sid}
ServicesRateLimitsApiListRateLimitGet /v2/Services/{ServiceSid}/RateLimits
ServicesRateLimitsApiUpdateRateLimitPost /v2/Services/{ServiceSid}/RateLimits/{Sid}
ServicesRateLimitsBucketsApiCreateBucketPost /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets
ServicesRateLimitsBucketsApiDeleteBucketDelete /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
ServicesRateLimitsBucketsApiFetchBucketGet /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
ServicesRateLimitsBucketsApiListBucketGet /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets
ServicesRateLimitsBucketsApiUpdateBucketPost /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}
ServicesVerificationCheckApiCreateVerificationCheckPost /v2/Services/{ServiceSid}/VerificationCheck
ServicesVerificationsApiCreateVerificationPost /v2/Services/{ServiceSid}/Verifications
ServicesVerificationsApiFetchVerificationGet /v2/Services/{ServiceSid}/Verifications/{Sid}
ServicesVerificationsApiUpdateVerificationPost /v2/Services/{ServiceSid}/Verifications/{Sid}
ServicesWebhooksApiCreateWebhookPost /v2/Services/{ServiceSid}/Webhooks
ServicesWebhooksApiDeleteWebhookDelete /v2/Services/{ServiceSid}/Webhooks/{Sid}
ServicesWebhooksApiFetchWebhookGet /v2/Services/{ServiceSid}/Webhooks/{Sid}
ServicesWebhooksApiListWebhookGet /v2/Services/{ServiceSid}/Webhooks
ServicesWebhooksApiUpdateWebhookPost /v2/Services/{ServiceSid}/Webhooks/{Sid}
TemplatesApiListVerificationTemplateGet /v2/Templates

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Optional parameters for the method 'CreateAccessToken'.
Optional parameters for the method 'CreateBucket'.
Optional parameters for the method 'CreateChallenge'.
Optional parameters for the method 'CreateEntity'.
Optional parameters for the method 'CreateMessagingConfiguration'.
Optional parameters for the method 'CreateNewFactor'.
Optional parameters for the method 'CreateNotification'.
Optional parameters for the method 'CreateRateLimit'.
Optional parameters for the method 'CreateSafelist'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'CreateVerificationCheck'.
Optional parameters for the method 'CreateVerification'.
Optional parameters for the method 'CreateWebhook'.
Optional parameters for the method 'FetchVerificationAttemptsSummary'.
Optional parameters for the method 'ListBucket'.
ListBucketResponse struct for ListBucketResponse.
ListBucketResponseMeta struct for ListBucketResponseMeta.
Optional parameters for the method 'ListChallenge'.
ListChallengeResponse struct for ListChallengeResponse.
Optional parameters for the method 'ListEntity'.
ListEntityResponse struct for ListEntityResponse.
Optional parameters for the method 'ListFactor'.
ListFactorResponse struct for ListFactorResponse.
Optional parameters for the method 'ListMessagingConfiguration'.
ListMessagingConfigurationResponse struct for ListMessagingConfigurationResponse.
Optional parameters for the method 'ListRateLimit'.
ListRateLimitResponse struct for ListRateLimitResponse.
Optional parameters for the method 'ListService'.
ListServiceResponse struct for ListServiceResponse.
Optional parameters for the method 'ListVerificationAttempt'.
ListVerificationAttemptResponse struct for ListVerificationAttemptResponse.
Optional parameters for the method 'ListVerificationTemplate'.
ListVerificationTemplateResponse struct for ListVerificationTemplateResponse.
Optional parameters for the method 'ListWebhook'.
ListWebhookResponse struct for ListWebhookResponse.
Optional parameters for the method 'UpdateBucket'.
Optional parameters for the method 'UpdateChallenge'.
Optional parameters for the method 'UpdateFactor'.
Optional parameters for the method 'UpdateMessagingConfiguration'.
Optional parameters for the method 'UpdateRateLimit'.
Optional parameters for the method 'UpdateService'.
Optional parameters for the method 'UpdateVerification'.
Optional parameters for the method 'UpdateWebhook'.
VerifyV2AccessToken struct for VerifyV2AccessToken.
VerifyV2Bucket struct for VerifyV2Bucket.
VerifyV2Challenge struct for VerifyV2Challenge.
VerifyV2Entity struct for VerifyV2Entity.
VerifyV2Factor struct for VerifyV2Factor.
VerifyV2Form struct for VerifyV2Form.
VerifyV2MessagingConfiguration struct for VerifyV2MessagingConfiguration.
VerifyV2NewFactor struct for VerifyV2NewFactor.
VerifyV2Notification struct for VerifyV2Notification.
VerifyV2RateLimit struct for VerifyV2RateLimit.
VerifyV2Safelist struct for VerifyV2Safelist.
VerifyV2Service struct for VerifyV2Service.
VerifyV2Verification struct for VerifyV2Verification.
VerifyV2VerificationAttempt struct for VerifyV2VerificationAttempt.
VerifyV2VerificationAttemptsSummary struct for VerifyV2VerificationAttemptsSummary.
VerifyV2VerificationCheck struct for VerifyV2VerificationCheck.
VerifyV2VerificationTemplate struct for VerifyV2VerificationTemplate.
VerifyV2Webhook struct for VerifyV2Webhook.