configureAccount method

Future<GetAccountResponseMessage> configureAccount(
  1. AccountConfigurationRequestMessage request,
  2. String accountApiToken
)

Configura parâmetros de uma sub-conta, utilizando um apiToken customizado

Configurações Live Api Token da conta

Implementation

Future<GetAccountResponseMessage> configureAccount(AccountConfigurationRequestMessage request, String accountApiToken) async {
  var result = await apiResource.post(
    data: request.toMap(),
    partOfUrl: "/configuration",
    apiUserToken: accountApiToken,
  );
  return GetAccountResponseMessage.fromMap(result);
}