Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods CRUD do cliente #79

Open
ZyronAlex opened this issue Jun 21, 2018 · 1 comment
Open

Methods CRUD do cliente #79

ZyronAlex opened this issue Jun 21, 2018 · 1 comment

Comments

@ZyronAlex
Copy link

ZyronAlex commented Jun 21, 2018

Olá estou tendo problemas na minha aplicara com os methods do cliente , quando eu faço o um request direto para https://api.iugu.com/v1/customers funciona, mas na aplicação esta me retornando close connection.

public async Task InsertCustomer(CustomerRequestMessage dadosClienteIugu)
{
CustomerModel customer;
try
{
using (var iuguCustumer = new Vendr_Iugu.Lib.Customer())
{
customer = await iuguCustumer.CreateAsync(dadosClienteIugu, null).ConfigureAwait(false);
}
}
catch (Exception ex)
{
var erro = ex;
throw;
}

        return customer;
    }

Em dadosClienteIugu eu tenho Email, Name, CpfOrCnpj, ZipCode e Number preenchidos corretamente, testei minha credencias e esse dados utilizando uma ferramente de request e funcionou mas na aplicação não funciona

@izabellaorezende
Copy link

Boa noite, troque CpfOrCnpj por cpf_cnpj. Aconteceu comigo e funcionou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants