All URIs are relative to https://api.paxos.com/v2
Method | HTTP request | Description |
---|---|---|
AddAccountMembers | Post /identity/account-members | Add Account Members |
DeleteAccountMember | Delete /identity/account-members/{id} | Remove Account Member |
AddAccountMembersResponse AddAccountMembers(ctx).AddAccountMembersRequest(addAccountMembersRequest).Execute()
Add Account Members
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/avianlabs/paxos-go"
)
func main() {
addAccountMembersRequest := *openapiclient.NewAddAccountMembersRequest("AccountId_example", []openapiclient.AccountMember{*openapiclient.NewAccountMember()}) // AddAccountMembersRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountMembersAPI.AddAccountMembers(context.Background()).AddAccountMembersRequest(addAccountMembersRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountMembersAPI.AddAccountMembers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddAccountMembers`: AddAccountMembersResponse
fmt.Fprintf(os.Stdout, "Response from `AccountMembersAPI.AddAccountMembers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAddAccountMembersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
addAccountMembersRequest | AddAccountMembersRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteAccountMember(ctx, id).Execute()
Remove Account Member
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/avianlabs/paxos-go"
)
func main() {
id := "id_example" // string | The account member ID that should be removed from the account.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccountMembersAPI.DeleteAccountMember(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountMembersAPI.DeleteAccountMember``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAccountMember`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `AccountMembersAPI.DeleteAccountMember`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The account member ID that should be removed from the account. |
Other parameters are passed through a pointer to a apiDeleteAccountMemberRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]