# 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
Class | Method | HTTP request | Description |
---|---|---|---|
AttemptsApi | FetchVerificationAttempt | Get /v2/Attempts/{Sid} | |
AttemptsApi | ListVerificationAttempt | Get /v2/Attempts | |
AttemptsSummaryApi | FetchVerificationAttemptsSummary | Get /v2/Attempts/Summary | |
FormsApi | FetchForm | Get /v2/Forms/{FormType} | |
SafeListNumbersApi | CreateSafelist | Post /v2/SafeList/Numbers | |
SafeListNumbersApi | DeleteSafelist | Delete /v2/SafeList/Numbers/{PhoneNumber} | |
SafeListNumbersApi | FetchSafelist | Get /v2/SafeList/Numbers/{PhoneNumber} | |
ServicesApi | CreateService | Post /v2/Services | |
ServicesApi | DeleteService | Delete /v2/Services/{Sid} | |
ServicesApi | FetchService | Get /v2/Services/{Sid} | |
ServicesApi | ListService | Get /v2/Services | |
ServicesApi | UpdateService | Post /v2/Services/{Sid} | |
ServicesAccessTokensApi | CreateAccessToken | Post /v2/Services/{ServiceSid}/AccessTokens | |
ServicesAccessTokensApi | FetchAccessToken | Get /v2/Services/{ServiceSid}/AccessTokens/{Sid} | |
ServicesEntitiesApi | CreateEntity | Post /v2/Services/{ServiceSid}/Entities | |
ServicesEntitiesApi | DeleteEntity | Delete /v2/Services/{ServiceSid}/Entities/{Identity} | |
ServicesEntitiesApi | FetchEntity | Get /v2/Services/{ServiceSid}/Entities/{Identity} | |
ServicesEntitiesApi | ListEntity | Get /v2/Services/{ServiceSid}/Entities | |
ServicesEntitiesChallengesApi | CreateChallenge | Post /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | |
ServicesEntitiesChallengesApi | FetchChallenge | Get /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | |
ServicesEntitiesChallengesApi | ListChallenge | Get /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | |
ServicesEntitiesChallengesApi | UpdateChallenge | Post /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | |
ServicesEntitiesChallengesNotificationsApi | CreateNotification | Post /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications | |
ServicesEntitiesFactorsApi | CreateNewFactor | Post /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | |
ServicesEntitiesFactorsApi | DeleteFactor | Delete /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | |
ServicesEntitiesFactorsApi | FetchFactor | Get /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | |
ServicesEntitiesFactorsApi | ListFactor | Get /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | |
ServicesEntitiesFactorsApi | UpdateFactor | Post /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | |
ServicesMessagingConfigurationsApi | CreateMessagingConfiguration | Post /v2/Services/{ServiceSid}/MessagingConfigurations | |
ServicesMessagingConfigurationsApi | DeleteMessagingConfiguration | Delete /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | |
ServicesMessagingConfigurationsApi | FetchMessagingConfiguration | Get /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | |
ServicesMessagingConfigurationsApi | ListMessagingConfiguration | Get /v2/Services/{ServiceSid}/MessagingConfigurations | |
ServicesMessagingConfigurationsApi | UpdateMessagingConfiguration | Post /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | |
ServicesRateLimitsApi | CreateRateLimit | Post /v2/Services/{ServiceSid}/RateLimits | |
ServicesRateLimitsApi | DeleteRateLimit | Delete /v2/Services/{ServiceSid}/RateLimits/{Sid} | |
ServicesRateLimitsApi | FetchRateLimit | Get /v2/Services/{ServiceSid}/RateLimits/{Sid} | |
ServicesRateLimitsApi | ListRateLimit | Get /v2/Services/{ServiceSid}/RateLimits | |
ServicesRateLimitsApi | UpdateRateLimit | Post /v2/Services/{ServiceSid}/RateLimits/{Sid} | |
ServicesRateLimitsBucketsApi | CreateBucket | Post /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | |
ServicesRateLimitsBucketsApi | DeleteBucket | Delete /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | |
ServicesRateLimitsBucketsApi | FetchBucket | Get /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | |
ServicesRateLimitsBucketsApi | ListBucket | Get /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | |
ServicesRateLimitsBucketsApi | UpdateBucket | Post /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | |
ServicesVerificationCheckApi | CreateVerificationCheck | Post /v2/Services/{ServiceSid}/VerificationCheck | |
ServicesVerificationsApi | CreateVerification | Post /v2/Services/{ServiceSid}/Verifications | |
ServicesVerificationsApi | FetchVerification | Get /v2/Services/{ServiceSid}/Verifications/{Sid} | |
ServicesVerificationsApi | UpdateVerification | Post /v2/Services/{ServiceSid}/Verifications/{Sid} | |
ServicesWebhooksApi | CreateWebhook | Post /v2/Services/{ServiceSid}/Webhooks | |
ServicesWebhooksApi | DeleteWebhook | Delete /v2/Services/{ServiceSid}/Webhooks/{Sid} | |
ServicesWebhooksApi | FetchWebhook | Get /v2/Services/{ServiceSid}/Webhooks/{Sid} | |
ServicesWebhooksApi | ListWebhook | Get /v2/Services/{ServiceSid}/Webhooks | |
ServicesWebhooksApi | UpdateWebhook | Post /v2/Services/{ServiceSid}/Webhooks/{Sid} | |
TemplatesApi | ListVerificationTemplate | Get /v2/Templates |
Documentation For Models
- ListMessagingConfigurationResponse
- VerifyV2RateLimit
- VerifyV2AccessToken
- VerifyV2Webhook
- ListServiceResponse
- VerifyV2Notification
- VerifyV2Factor
- VerifyV2Form
- VerifyV2VerificationAttempt
- VerifyV2Safelist
- VerifyV2Challenge
- ListEntityResponse
- ListWebhookResponse
- ListRateLimitResponse
- ListFactorResponse
- ListVerificationTemplateResponse
- VerifyV2MessagingConfiguration
- VerifyV2Service
- ListBucketResponseMeta
- VerifyV2VerificationTemplate
- VerifyV2VerificationCheck
- ListVerificationAttemptResponse
- VerifyV2NewFactor
- VerifyV2VerificationAttemptsSummary
- VerifyV2Verification
- ListBucketResponse
- ListChallengeResponse
- VerifyV2Bucket
- VerifyV2Entity
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.