# 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)