All URIs are relative to https://api.paxos.com/v2
Method | HTTP request | Description |
---|---|---|
DocumentUpload | Put /identity/identities/{identity_id}/documents | Document Upload |
ListIdentityDocuments | Get /identity/identities/{identity_id}/documents | List Identity Documents |
DocumentUploadResponse DocumentUpload(ctx, identityId).DocumentUploadRequest(documentUploadRequest).Execute()
Document Upload
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/avianlabs/paxos-go"
)
func main() {
identityId := "identityId_example" // string | The id of the identity the document is associated with.
documentUploadRequest := *openapiclient.NewDocumentUploadRequest("Name_example") // DocumentUploadRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IdentityDocumentsAPI.DocumentUpload(context.Background(), identityId).DocumentUploadRequest(documentUploadRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IdentityDocumentsAPI.DocumentUpload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DocumentUpload`: DocumentUploadResponse
fmt.Fprintf(os.Stdout, "Response from `IdentityDocumentsAPI.DocumentUpload`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
identityId | string | The id of the identity the document is associated with. |
Other parameters are passed through a pointer to a apiDocumentUploadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
documentUploadRequest | DocumentUploadRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListIdentityDocumentsResponse ListIdentityDocuments(ctx, identityId).IncludePendingDocs(includePendingDocs).Execute()
List Identity Documents
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/avianlabs/paxos-go"
)
func main() {
identityId := "identityId_example" // string | id associated with the identity
includePendingDocs := true // bool | Add a list of pending document types for the identity (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IdentityDocumentsAPI.ListIdentityDocuments(context.Background(), identityId).IncludePendingDocs(includePendingDocs).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IdentityDocumentsAPI.ListIdentityDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListIdentityDocuments`: ListIdentityDocumentsResponse
fmt.Fprintf(os.Stdout, "Response from `IdentityDocumentsAPI.ListIdentityDocuments`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
identityId | string | id associated with the identity |
Other parameters are passed through a pointer to a apiListIdentityDocumentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
includePendingDocs | bool | Add a list of pending document types for the identity |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]