Skip to content

Latest commit

 

History

History
146 lines (91 loc) · 3.96 KB

AccountMembersAPI.md

File metadata and controls

146 lines (91 loc) · 3.96 KB

\AccountMembersAPI

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

AddAccountMembers

AddAccountMembersResponse AddAccountMembers(ctx).AddAccountMembersRequest(addAccountMembersRequest).Execute()

Add Account Members

Example

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

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAddAccountMembersRequest struct via the builder pattern

Name Type Description Notes
addAccountMembersRequest AddAccountMembersRequest

Return type

AddAccountMembersResponse

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAccountMember

map[string]interface{} DeleteAccountMember(ctx, id).Execute()

Remove Account Member

Example

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

Path Parameters

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

Other parameters are passed through a pointer to a apiDeleteAccountMemberRequest struct via the builder pattern

Name Type Description Notes

Return type

map[string]interface{}

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]