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)

# 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 'CreateComplianceInquiry'.
Optional parameters for the method 'CreateComplianceRegistration'.
Optional parameters for the method 'CreateComplianceTollfreeInquiry'.
Optional parameters for the method 'CreateCustomerProfileChannelEndpointAssignment'.
Optional parameters for the method 'CreateCustomerProfileEntityAssignment'.
Optional parameters for the method 'CreateCustomerProfileEvaluation'.
Optional parameters for the method 'CreateCustomerProfile'.
Optional parameters for the method 'CreateEndUser'.
Optional parameters for the method 'CreateSupportingDocument'.
Optional parameters for the method 'CreateTrustProductChannelEndpointAssignment'.
Optional parameters for the method 'CreateTrustProductEntityAssignment'.
Optional parameters for the method 'CreateTrustProductEvaluation'.
Optional parameters for the method 'CreateTrustProduct'.
Optional parameters for the method 'ListCustomerProfileChannelEndpointAssignment'.
ListCustomerProfileChannelEndpointAssignmentResponse struct for ListCustomerProfileChannelEndpointAssignmentResponse.
Optional parameters for the method 'ListCustomerProfileEntityAssignment'.
ListCustomerProfileEntityAssignmentResponse struct for ListCustomerProfileEntityAssignmentResponse.
Optional parameters for the method 'ListCustomerProfileEvaluation'.
ListCustomerProfileEvaluationResponse struct for ListCustomerProfileEvaluationResponse.
Optional parameters for the method 'ListCustomerProfile'.
ListCustomerProfileResponse struct for ListCustomerProfileResponse.
ListCustomerProfileResponseMeta struct for ListCustomerProfileResponseMeta.
Optional parameters for the method 'ListEndUser'.
ListEndUserResponse struct for ListEndUserResponse.
Optional parameters for the method 'ListEndUserType'.
ListEndUserTypeResponse struct for ListEndUserTypeResponse.
Optional parameters for the method 'ListPolicies'.
ListPoliciesResponse struct for ListPoliciesResponse.
Optional parameters for the method 'ListSupportingDocument'.
ListSupportingDocumentResponse struct for ListSupportingDocumentResponse.
Optional parameters for the method 'ListSupportingDocumentType'.
ListSupportingDocumentTypeResponse struct for ListSupportingDocumentTypeResponse.
Optional parameters for the method 'ListTrustProductChannelEndpointAssignment'.
ListTrustProductChannelEndpointAssignmentResponse struct for ListTrustProductChannelEndpointAssignmentResponse.
Optional parameters for the method 'ListTrustProductEntityAssignment'.
ListTrustProductEntityAssignmentResponse struct for ListTrustProductEntityAssignmentResponse.
Optional parameters for the method 'ListTrustProductEvaluation'.
ListTrustProductEvaluationResponse struct for ListTrustProductEvaluationResponse.
Optional parameters for the method 'ListTrustProduct'.
ListTrustProductResponse struct for ListTrustProductResponse.
TrusthubV1ComplianceInquiry struct for TrusthubV1ComplianceInquiry.
TrusthubV1ComplianceRegistration struct for TrusthubV1ComplianceRegistration.
TrusthubV1ComplianceTollfreeInquiry struct for TrusthubV1ComplianceTollfreeInquiry.
TrusthubV1CustomerProfile struct for TrusthubV1CustomerProfile.
TrusthubV1CustomerProfileChannelEndpointAssignment struct for TrusthubV1CustomerProfileChannelEndpointAssignment.
TrusthubV1CustomerProfileEntityAssignment struct for TrusthubV1CustomerProfileEntityAssignment.
TrusthubV1CustomerProfileEvaluation struct for TrusthubV1CustomerProfileEvaluation.
TrusthubV1EndUser struct for TrusthubV1EndUser.
TrusthubV1EndUserType struct for TrusthubV1EndUserType.
TrusthubV1Policies struct for TrusthubV1Policies.
TrusthubV1SupportingDocument struct for TrusthubV1SupportingDocument.
TrusthubV1SupportingDocumentType struct for TrusthubV1SupportingDocumentType.
TrusthubV1TrustProduct struct for TrusthubV1TrustProduct.
TrusthubV1TrustProductChannelEndpointAssignment struct for TrusthubV1TrustProductChannelEndpointAssignment.
TrusthubV1TrustProductEntityAssignment struct for TrusthubV1TrustProductEntityAssignment.
TrusthubV1TrustProductEvaluation struct for TrusthubV1TrustProductEvaluation.
Optional parameters for the method 'UpdateComplianceInquiry'.
Optional parameters for the method 'UpdateComplianceRegistration'.
Optional parameters for the method 'UpdateCustomerProfile'.
Optional parameters for the method 'UpdateEndUser'.
Optional parameters for the method 'UpdateSupportingDocument'.
Optional parameters for the method 'UpdateTrustProduct'.