This project is read-only.

The server returned 'Unauthorized' with the status code Unauthorized (401) when posting ''.



I am trying to connect to Chargify using .net sdk installed from nu-get packages version 1.1.6085.28452.

I am using the following code to create a customer
var chargifyinst = new ChargifyConnect("", "xxxx", "xxxx", "xxx");    
            chargifyinst.ProtocolType = SecurityProtocolType.Tls12;      
            var savedcust = chargifyinst.CreateCustomer(customer);
I am using the password from the api keys I generated for the chagify direct api section in the chargify account portal.

I am using the api v2 keys.

When I am trying to save I am receiving 401 unauthorized response. Can any one help where I am going wrong.