I want to make web api which contacts to XERO.
Can anyone please help how to create rest api for this.
I have tried following but it is not working https://github.com/XeroAPI/Xero-Net but it doesnot work without taking user to browser.
I have also tried to create Following
var private_app_api = new XeroCoreApi("https://api.xero.com", new
PrivateAuthenticator(@"C:\Dev\your_public_privatekey.pfx"),
new Consumer("your-consumer-key", "your-consumer-secret"),
null,
new DefaultMapper(), new DefaultMapper());
but from Xero.Api.Core i am getting
"Error CS1729 'XeroCoreApi' does not contain a constructor that takes 6 arguments AHFXEROService"
Can anybody please help??