Skip to content

Latest commit

 

History

History
2002 lines (1270 loc) · 50.5 KB

AdminAPI.md

File metadata and controls

2002 lines (1270 loc) · 50.5 KB

\AdminAPI

All URIs are relative to https://your_deployment.multibaas.com/api/v0

Method HTTP request Description
AcceptInvite Post /invites/{inviteID} Accept invite
AddCorsOrigin Post /cors Add CORS origin
AddGroupApiKey Put /groups/{groupID}/api_keys/{apiKeyID} Add API key to group
AddGroupRole Put /groups/{groupID}/roles/{roleShortName} Add role to group
AddGroupUser Put /groups/{groupID}/users/{userID} Add user to group
CheckInvite Get /invites/{inviteID} Check invite
CreateApiKey Post /api_keys Create API key
DeleteApiKey Delete /api_keys/{apiKeyID} Delete API key
DeleteUser Delete /users/{userID} Delete user
GetApiKey Get /api_keys/{apiKeyID} Get API Key
InviteUser Post /invites Invite user
ListApiKeys Get /api_keys List API keys
ListAuditLogs Get /systemactivities List audit logs
ListCorsOrigins Get /cors List CORS origins
ListGroups Get /groups List groups
ListUserSigners Get /users/{userID}/signers List user signers
ListUsers Get /users List users
RemoveCorsOrigin Delete /cors/{originID} Remove CORS Origin
RemoveGroupApiKey Delete /groups/{groupID}/api_keys/{apiKeyID} Remove API key from group
RemoveGroupRole Delete /groups/{groupID}/roles/{roleShortName} Remove role from group
RemoveGroupUser Delete /groups/{groupID}/users/{userID} Remove user from group
RemoveUserSignerCloudWallet Delete /users/{userID}/cloudwallets/{wallet_address} Remove user cloud wallet signer
RemoveUserSignerSafeAccount Delete /users/{userID}/safeaccounts/{wallet_address} Remove user safe account signer
RemoveUserSignerWeb3Wallet Delete /users/{userID}/web3wallets/{wallet_address} Remove user web3 wallet signer
SetUserSignerCloudWallet Put /users/{userID}/cloudwallets/{wallet_address} Add or update user cloud wallet signer
SetUserSignerSafeAccount Put /users/{userID}/safeaccounts/{wallet_address} Add or update user safe account signer
SetUserSignerWeb3Wallet Put /users/{userID}/web3wallets/{wallet_address} Add or update user web3 wallet signer
UpdateApiKey Put /api_keys/{apiKeyID} Update API key

AcceptInvite

AcceptInvite200Response AcceptInvite(ctx, inviteID).AcceptInviteRequest(acceptInviteRequest).Execute()

Accept invite

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	inviteID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | 
	acceptInviteRequest := *openapiclient.NewAcceptInviteRequest() // AcceptInviteRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.AcceptInvite(context.Background(), inviteID).AcceptInviteRequest(acceptInviteRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AcceptInvite``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AcceptInvite`: AcceptInvite200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AcceptInvite`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
inviteID string

Other Parameters

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

Name Type Description Notes

acceptInviteRequest | AcceptInviteRequest | |

Return type

AcceptInvite200Response

Authorization

bearer

HTTP request headers

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

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

AddCorsOrigin

BaseResponse AddCorsOrigin(ctx).CORSOrigin(cORSOrigin).Execute()

Add CORS origin

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	cORSOrigin := *openapiclient.NewCORSOrigin() // CORSOrigin | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.AddCorsOrigin(context.Background()).CORSOrigin(cORSOrigin).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AddCorsOrigin``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AddCorsOrigin`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AddCorsOrigin`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
cORSOrigin CORSOrigin

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

AddGroupApiKey

BaseResponse AddGroupApiKey(ctx, groupID, apiKeyID).Execute()

Add API key to group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	apiKeyID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.AddGroupApiKey(context.Background(), groupID, apiKeyID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AddGroupApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AddGroupApiKey`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AddGroupApiKey`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
apiKeyID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

AddGroupRole

BaseResponse AddGroupRole(ctx, groupID, roleShortName).Execute()

Add role to group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	roleShortName := "roleShortName_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.AddGroupRole(context.Background(), groupID, roleShortName).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AddGroupRole``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AddGroupRole`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AddGroupRole`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
roleShortName string

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

AddGroupUser

BaseResponse AddGroupUser(ctx, groupID, userID).Execute()

Add user to group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	userID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.AddGroupUser(context.Background(), groupID, userID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AddGroupUser``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AddGroupUser`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AddGroupUser`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
userID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

CheckInvite

BaseResponse CheckInvite(ctx, inviteID).Execute()

Check invite

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	inviteID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.CheckInvite(context.Background(), inviteID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.CheckInvite``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CheckInvite`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.CheckInvite`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
inviteID string

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

No authorization required

HTTP request headers

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

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

CreateApiKey

CreateApiKey200Response CreateApiKey(ctx).CreateApiKeyRequest(createApiKeyRequest).Execute()

Create API key

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	createApiKeyRequest := *openapiclient.NewCreateApiKeyRequest("Label_example") // CreateApiKeyRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.CreateApiKey(context.Background()).CreateApiKeyRequest(createApiKeyRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.CreateApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateApiKey`: CreateApiKey200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.CreateApiKey`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
createApiKeyRequest CreateApiKeyRequest

Return type

CreateApiKey200Response

Authorization

cookie, bearer

HTTP request headers

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

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

DeleteApiKey

BaseResponse DeleteApiKey(ctx, apiKeyID).Execute()

Delete API key

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	apiKeyID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.DeleteApiKey(context.Background(), apiKeyID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.DeleteApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteApiKey`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.DeleteApiKey`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
apiKeyID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

DeleteUser

BaseResponse DeleteUser(ctx, userID).Execute()

Delete user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.DeleteUser(context.Background(), userID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.DeleteUser``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteUser`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.DeleteUser`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

GetApiKey

GetApiKey200Response GetApiKey(ctx, apiKeyID).Execute()

Get API Key

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	apiKeyID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.GetApiKey(context.Background(), apiKeyID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.GetApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetApiKey`: GetApiKey200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.GetApiKey`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
apiKeyID int64

Other Parameters

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

Name Type Description Notes

Return type

GetApiKey200Response

Authorization

cookie, bearer

HTTP request headers

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

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

InviteUser

BaseResponse InviteUser(ctx).Invite(invite).Execute()

Invite user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	invite := *openapiclient.NewInvite("Email_example") // Invite | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.InviteUser(context.Background()).Invite(invite).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.InviteUser``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `InviteUser`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.InviteUser`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
invite Invite

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

ListApiKeys

ListApiKeys200Response ListApiKeys(ctx).All(all).Execute()

List API keys

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	all := true // bool | If true, returns all API keys on the system, otherwise, returns only the API keys owned by the calling user. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListApiKeys(context.Background()).All(all).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListApiKeys``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListApiKeys`: ListApiKeys200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListApiKeys`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
all bool If true, returns all API keys on the system, otherwise, returns only the API keys owned by the calling user.

Return type

ListApiKeys200Response

Authorization

cookie, bearer

HTTP request headers

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

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

ListAuditLogs

ListAuditLogs200Response ListAuditLogs(ctx).Execute()

List audit logs

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListAuditLogs(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListAuditLogs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListAuditLogs`: ListAuditLogs200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListAuditLogs`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ListAuditLogs200Response

Authorization

cookie, bearer

HTTP request headers

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

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

ListCorsOrigins

ListCorsOrigins200Response ListCorsOrigins(ctx).Execute()

List CORS origins

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListCorsOrigins(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListCorsOrigins``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListCorsOrigins`: ListCorsOrigins200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListCorsOrigins`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ListCorsOrigins200Response

Authorization

cookie, bearer

HTTP request headers

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

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

ListGroups

ListGroups200Response ListGroups(ctx).UserID(userID).ApiKeyID(apiKeyID).Assignable(assignable).Execute()

List groups

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 |  (optional)
	apiKeyID := int64(789) // int64 |  (optional)
	assignable := true // bool |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListGroups(context.Background()).UserID(userID).ApiKeyID(apiKeyID).Assignable(assignable).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListGroups``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListGroups`: ListGroups200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListGroups`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
userID int64
apiKeyID int64
assignable bool

Return type

ListGroups200Response

Authorization

cookie, bearer

HTTP request headers

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

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

ListUserSigners

ListUserSigners200Response ListUserSigners(ctx, userID).Execute()

List user signers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListUserSigners(context.Background(), userID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListUserSigners``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListUserSigners`: ListUserSigners200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListUserSigners`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64

Other Parameters

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

Name Type Description Notes

Return type

ListUserSigners200Response

Authorization

cookie, bearer

HTTP request headers

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

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

ListUsers

ListUsers200Response ListUsers(ctx).GroupID(groupID).Execute()

List users

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.ListUsers(context.Background()).GroupID(groupID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.ListUsers``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListUsers`: ListUsers200Response
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.ListUsers`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
groupID int64

Return type

ListUsers200Response

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveCorsOrigin

BaseResponse RemoveCorsOrigin(ctx, originID).Execute()

Remove CORS Origin

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	originID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveCorsOrigin(context.Background(), originID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveCorsOrigin``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveCorsOrigin`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveCorsOrigin`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
originID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveGroupApiKey

BaseResponse RemoveGroupApiKey(ctx, groupID, apiKeyID).Execute()

Remove API key from group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	apiKeyID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveGroupApiKey(context.Background(), groupID, apiKeyID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveGroupApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveGroupApiKey`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveGroupApiKey`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
apiKeyID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveGroupRole

BaseResponse RemoveGroupRole(ctx, groupID, roleShortName).Execute()

Remove role from group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	roleShortName := "roleShortName_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveGroupRole(context.Background(), groupID, roleShortName).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveGroupRole``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveGroupRole`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveGroupRole`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
roleShortName string

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveGroupUser

BaseResponse RemoveGroupUser(ctx, groupID, userID).Execute()

Remove user from group

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	groupID := int64(789) // int64 | 
	userID := int64(789) // int64 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveGroupUser(context.Background(), groupID, userID).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveGroupUser``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveGroupUser`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveGroupUser`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
groupID int64
userID int64

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveUserSignerCloudWallet

BaseResponse RemoveUserSignerCloudWallet(ctx, userID, walletAddress).Execute()

Remove user cloud wallet signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveUserSignerCloudWallet(context.Background(), userID, walletAddress).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveUserSignerCloudWallet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveUserSignerCloudWallet`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveUserSignerCloudWallet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveUserSignerSafeAccount

BaseResponse RemoveUserSignerSafeAccount(ctx, userID, walletAddress).Execute()

Remove user safe account signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveUserSignerSafeAccount(context.Background(), userID, walletAddress).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveUserSignerSafeAccount``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveUserSignerSafeAccount`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveUserSignerSafeAccount`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

RemoveUserSignerWeb3Wallet

BaseResponse RemoveUserSignerWeb3Wallet(ctx, userID, walletAddress).Execute()

Remove user web3 wallet signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.RemoveUserSignerWeb3Wallet(context.Background(), userID, walletAddress).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.RemoveUserSignerWeb3Wallet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `RemoveUserSignerWeb3Wallet`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.RemoveUserSignerWeb3Wallet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

SetUserSignerCloudWallet

BaseResponse SetUserSignerCloudWallet(ctx, userID, walletAddress).Execute()

Add or update user cloud wallet signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.SetUserSignerCloudWallet(context.Background(), userID, walletAddress).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.SetUserSignerCloudWallet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SetUserSignerCloudWallet`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.SetUserSignerCloudWallet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

SetUserSignerSafeAccount

BaseResponse SetUserSignerSafeAccount(ctx, userID, walletAddress).SignerLabel(signerLabel).Execute()

Add or update user safe account signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.
	signerLabel := *openapiclient.NewSignerLabel("Label_example") // SignerLabel | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.SetUserSignerSafeAccount(context.Background(), userID, walletAddress).SignerLabel(signerLabel).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.SetUserSignerSafeAccount``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SetUserSignerSafeAccount`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.SetUserSignerSafeAccount`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

signerLabel | SignerLabel | |

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

SetUserSignerWeb3Wallet

BaseResponse SetUserSignerWeb3Wallet(ctx, userID, walletAddress).SignerLabel(signerLabel).Execute()

Add or update user web3 wallet signer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	userID := int64(789) // int64 | 
	walletAddress := "walletAddress_example" // string | An Ethereum address.
	signerLabel := *openapiclient.NewSignerLabel("Label_example") // SignerLabel | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.SetUserSignerWeb3Wallet(context.Background(), userID, walletAddress).SignerLabel(signerLabel).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.SetUserSignerWeb3Wallet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SetUserSignerWeb3Wallet`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.SetUserSignerWeb3Wallet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userID int64
walletAddress string An Ethereum address.

Other Parameters

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

Name Type Description Notes

signerLabel | SignerLabel | |

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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

UpdateApiKey

BaseResponse UpdateApiKey(ctx, apiKeyID).BaseAPIKey(baseAPIKey).Execute()

Update API key

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/curvegrid/multibaas-sdk-go"
)

func main() {
	apiKeyID := int64(789) // int64 | 
	baseAPIKey := *openapiclient.NewBaseAPIKey("Label_example") // BaseAPIKey | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AdminAPI.UpdateApiKey(context.Background(), apiKeyID).BaseAPIKey(baseAPIKey).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.UpdateApiKey``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateApiKey`: BaseResponse
	fmt.Fprintf(os.Stdout, "Response from `AdminAPI.UpdateApiKey`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
apiKeyID int64

Other Parameters

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

Name Type Description Notes

baseAPIKey | BaseAPIKey | |

Return type

BaseResponse

Authorization

cookie, bearer

HTTP request headers

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

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