# 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
Class | Method | HTTP request | Description |
---|---|---|---|
ComplianceInquiriesCustomersInitializeApi | CreateComplianceInquiry | Post /v1/ComplianceInquiries/Customers/Initialize | |
ComplianceInquiriesCustomersInitializeApi | UpdateComplianceInquiry | Post /v1/ComplianceInquiries/Customers/{CustomerId}/Initialize | |
ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi | CreateComplianceRegistration | Post /v1/ComplianceInquiries/Registration/RegulatoryCompliance/GB/Initialize | |
ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi | UpdateComplianceRegistration | Post /v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize | |
ComplianceInquiriesTollfreeInitializeApi | CreateComplianceTollfreeInquiry | Post /v1/ComplianceInquiries/Tollfree/Initialize | |
CustomerProfilesApi | CreateCustomerProfile | Post /v1/CustomerProfiles | |
CustomerProfilesApi | DeleteCustomerProfile | Delete /v1/CustomerProfiles/{Sid} | |
CustomerProfilesApi | FetchCustomerProfile | Get /v1/CustomerProfiles/{Sid} | |
CustomerProfilesApi | ListCustomerProfile | Get /v1/CustomerProfiles | |
CustomerProfilesApi | UpdateCustomerProfile | Post /v1/CustomerProfiles/{Sid} | |
CustomerProfilesChannelEndpointAssignmentsApi | CreateCustomerProfileChannelEndpointAssignment | Post /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments | |
CustomerProfilesChannelEndpointAssignmentsApi | DeleteCustomerProfileChannelEndpointAssignment | Delete /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid} | |
CustomerProfilesChannelEndpointAssignmentsApi | FetchCustomerProfileChannelEndpointAssignment | Get /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid} | |
CustomerProfilesChannelEndpointAssignmentsApi | ListCustomerProfileChannelEndpointAssignment | Get /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments | |
CustomerProfilesEntityAssignmentsApi | CreateCustomerProfileEntityAssignment | Post /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments | |
CustomerProfilesEntityAssignmentsApi | DeleteCustomerProfileEntityAssignment | Delete /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid} | |
CustomerProfilesEntityAssignmentsApi | FetchCustomerProfileEntityAssignment | Get /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid} | |
CustomerProfilesEntityAssignmentsApi | ListCustomerProfileEntityAssignment | Get /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments | |
CustomerProfilesEvaluationsApi | CreateCustomerProfileEvaluation | Post /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations | |
CustomerProfilesEvaluationsApi | FetchCustomerProfileEvaluation | Get /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations/{Sid} | |
CustomerProfilesEvaluationsApi | ListCustomerProfileEvaluation | Get /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations | |
EndUserTypesApi | FetchEndUserType | Get /v1/EndUserTypes/{Sid} | |
EndUserTypesApi | ListEndUserType | Get /v1/EndUserTypes | |
EndUsersApi | CreateEndUser | Post /v1/EndUsers | |
EndUsersApi | DeleteEndUser | Delete /v1/EndUsers/{Sid} | |
EndUsersApi | FetchEndUser | Get /v1/EndUsers/{Sid} | |
EndUsersApi | ListEndUser | Get /v1/EndUsers | |
EndUsersApi | UpdateEndUser | Post /v1/EndUsers/{Sid} | |
PoliciesApi | FetchPolicies | Get /v1/Policies/{Sid} | |
PoliciesApi | ListPolicies | Get /v1/Policies | |
SupportingDocumentTypesApi | FetchSupportingDocumentType | Get /v1/SupportingDocumentTypes/{Sid} | |
SupportingDocumentTypesApi | ListSupportingDocumentType | Get /v1/SupportingDocumentTypes | |
SupportingDocumentsApi | CreateSupportingDocument | Post /v1/SupportingDocuments | |
SupportingDocumentsApi | DeleteSupportingDocument | Delete /v1/SupportingDocuments/{Sid} | |
SupportingDocumentsApi | FetchSupportingDocument | Get /v1/SupportingDocuments/{Sid} | |
SupportingDocumentsApi | ListSupportingDocument | Get /v1/SupportingDocuments | |
SupportingDocumentsApi | UpdateSupportingDocument | Post /v1/SupportingDocuments/{Sid} | |
TrustProductsApi | CreateTrustProduct | Post /v1/TrustProducts | |
TrustProductsApi | DeleteTrustProduct | Delete /v1/TrustProducts/{Sid} | |
TrustProductsApi | FetchTrustProduct | Get /v1/TrustProducts/{Sid} | |
TrustProductsApi | ListTrustProduct | Get /v1/TrustProducts | |
TrustProductsApi | UpdateTrustProduct | Post /v1/TrustProducts/{Sid} | |
TrustProductsChannelEndpointAssignmentsApi | CreateTrustProductChannelEndpointAssignment | Post /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments | |
TrustProductsChannelEndpointAssignmentsApi | DeleteTrustProductChannelEndpointAssignment | Delete /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid} | |
TrustProductsChannelEndpointAssignmentsApi | FetchTrustProductChannelEndpointAssignment | Get /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid} | |
TrustProductsChannelEndpointAssignmentsApi | ListTrustProductChannelEndpointAssignment | Get /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments | |
TrustProductsEntityAssignmentsApi | CreateTrustProductEntityAssignment | Post /v1/TrustProducts/{TrustProductSid}/EntityAssignments | |
TrustProductsEntityAssignmentsApi | DeleteTrustProductEntityAssignment | Delete /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid} | |
TrustProductsEntityAssignmentsApi | FetchTrustProductEntityAssignment | Get /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid} | |
TrustProductsEntityAssignmentsApi | ListTrustProductEntityAssignment | Get /v1/TrustProducts/{TrustProductSid}/EntityAssignments | |
TrustProductsEvaluationsApi | CreateTrustProductEvaluation | Post /v1/TrustProducts/{TrustProductSid}/Evaluations | |
TrustProductsEvaluationsApi | FetchTrustProductEvaluation | Get /v1/TrustProducts/{TrustProductSid}/Evaluations/{Sid} | |
TrustProductsEvaluationsApi | ListTrustProductEvaluation | Get /v1/TrustProducts/{TrustProductSid}/Evaluations |
Documentation For Models
- TrusthubV1EndUserType
- ListTrustProductChannelEndpointAssignmentResponse
- TrusthubV1CustomerProfileEntityAssignment
- TrusthubV1SupportingDocumentType
- TrusthubV1EndUser
- ListCustomerProfileResponse
- TrusthubV1SupportingDocument
- TrusthubV1TrustProductChannelEndpointAssignment
- TrusthubV1TrustProduct
- ListSupportingDocumentResponse
- ListTrustProductEntityAssignmentResponse
- ListSupportingDocumentTypeResponse
- ListTrustProductEvaluationResponse
- TrusthubV1CustomerProfile
- TrusthubV1CustomerProfileChannelEndpointAssignment
- ListCustomerProfileEntityAssignmentResponse
- ListCustomerProfileResponseMeta
- ListEndUserTypeResponse
- TrusthubV1TrustProductEntityAssignment
- ListEndUserResponse
- TrusthubV1Policies
- ListCustomerProfileEvaluationResponse
- TrusthubV1TrustProductEvaluation
- TrusthubV1ComplianceInquiry
- ListPoliciesResponse
- ListTrustProductResponse
- ListCustomerProfileChannelEndpointAssignmentResponse
- TrusthubV1ComplianceTollfreeInquiry
- TrusthubV1CustomerProfileEvaluation
- TrusthubV1ComplianceRegistration
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'.