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://trusthub.twilio.com

ClassMethodHTTP requestDescription
ComplianceInquiriesCustomersInitializeApiCreateComplianceInquiryPost /v1/ComplianceInquiries/Customers/Initialize
ComplianceInquiriesCustomersInitializeApiUpdateComplianceInquiryPost /v1/ComplianceInquiries/Customers/{CustomerId}/Initialize
ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApiCreateComplianceRegistrationPost /v1/ComplianceInquiries/Registration/RegulatoryCompliance/GB/Initialize
ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApiUpdateComplianceRegistrationPost /v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize
ComplianceInquiriesTollfreeInitializeApiCreateComplianceTollfreeInquiryPost /v1/ComplianceInquiries/Tollfree/Initialize
CustomerProfilesApiCreateCustomerProfilePost /v1/CustomerProfiles
CustomerProfilesApiDeleteCustomerProfileDelete /v1/CustomerProfiles/{Sid}
CustomerProfilesApiFetchCustomerProfileGet /v1/CustomerProfiles/{Sid}
CustomerProfilesApiListCustomerProfileGet /v1/CustomerProfiles
CustomerProfilesApiUpdateCustomerProfilePost /v1/CustomerProfiles/{Sid}
CustomerProfilesChannelEndpointAssignmentsApiCreateCustomerProfileChannelEndpointAssignmentPost /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments
CustomerProfilesChannelEndpointAssignmentsApiDeleteCustomerProfileChannelEndpointAssignmentDelete /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}
CustomerProfilesChannelEndpointAssignmentsApiFetchCustomerProfileChannelEndpointAssignmentGet /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}
CustomerProfilesChannelEndpointAssignmentsApiListCustomerProfileChannelEndpointAssignmentGet /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments
CustomerProfilesEntityAssignmentsApiCreateCustomerProfileEntityAssignmentPost /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments
CustomerProfilesEntityAssignmentsApiDeleteCustomerProfileEntityAssignmentDelete /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}
CustomerProfilesEntityAssignmentsApiFetchCustomerProfileEntityAssignmentGet /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}
CustomerProfilesEntityAssignmentsApiListCustomerProfileEntityAssignmentGet /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments
CustomerProfilesEvaluationsApiCreateCustomerProfileEvaluationPost /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations
CustomerProfilesEvaluationsApiFetchCustomerProfileEvaluationGet /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations/{Sid}
CustomerProfilesEvaluationsApiListCustomerProfileEvaluationGet /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations
EndUserTypesApiFetchEndUserTypeGet /v1/EndUserTypes/{Sid}
EndUserTypesApiListEndUserTypeGet /v1/EndUserTypes
EndUsersApiCreateEndUserPost /v1/EndUsers
EndUsersApiDeleteEndUserDelete /v1/EndUsers/{Sid}
EndUsersApiFetchEndUserGet /v1/EndUsers/{Sid}
EndUsersApiListEndUserGet /v1/EndUsers
EndUsersApiUpdateEndUserPost /v1/EndUsers/{Sid}
PoliciesApiFetchPoliciesGet /v1/Policies/{Sid}
PoliciesApiListPoliciesGet /v1/Policies
SupportingDocumentTypesApiFetchSupportingDocumentTypeGet /v1/SupportingDocumentTypes/{Sid}
SupportingDocumentTypesApiListSupportingDocumentTypeGet /v1/SupportingDocumentTypes
SupportingDocumentsApiCreateSupportingDocumentPost /v1/SupportingDocuments
SupportingDocumentsApiDeleteSupportingDocumentDelete /v1/SupportingDocuments/{Sid}
SupportingDocumentsApiFetchSupportingDocumentGet /v1/SupportingDocuments/{Sid}
SupportingDocumentsApiListSupportingDocumentGet /v1/SupportingDocuments
SupportingDocumentsApiUpdateSupportingDocumentPost /v1/SupportingDocuments/{Sid}
TrustProductsApiCreateTrustProductPost /v1/TrustProducts
TrustProductsApiDeleteTrustProductDelete /v1/TrustProducts/{Sid}
TrustProductsApiFetchTrustProductGet /v1/TrustProducts/{Sid}
TrustProductsApiListTrustProductGet /v1/TrustProducts
TrustProductsApiUpdateTrustProductPost /v1/TrustProducts/{Sid}
TrustProductsChannelEndpointAssignmentsApiCreateTrustProductChannelEndpointAssignmentPost /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
TrustProductsChannelEndpointAssignmentsApiDeleteTrustProductChannelEndpointAssignmentDelete /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}
TrustProductsChannelEndpointAssignmentsApiFetchTrustProductChannelEndpointAssignmentGet /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}
TrustProductsChannelEndpointAssignmentsApiListTrustProductChannelEndpointAssignmentGet /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
TrustProductsEntityAssignmentsApiCreateTrustProductEntityAssignmentPost /v1/TrustProducts/{TrustProductSid}/EntityAssignments
TrustProductsEntityAssignmentsApiDeleteTrustProductEntityAssignmentDelete /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}
TrustProductsEntityAssignmentsApiFetchTrustProductEntityAssignmentGet /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}
TrustProductsEntityAssignmentsApiListTrustProductEntityAssignmentGet /v1/TrustProducts/{TrustProductSid}/EntityAssignments
TrustProductsEvaluationsApiCreateTrustProductEvaluationPost /v1/TrustProducts/{TrustProductSid}/Evaluations
TrustProductsEvaluationsApiFetchTrustProductEvaluationGet /v1/TrustProducts/{TrustProductSid}/Evaluations/{Sid}
TrustProductsEvaluationsApiListTrustProductEvaluationGet /v1/TrustProducts/{TrustProductSid}/Evaluations

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)