public_privatekey.pfx
Install-Package Xero.API.SDK
using System.Security.Cryptography.X509Certificates;
using Xero.Api;
using Xero.Api.Core;
using Xero.Api.Example.Applications;
using Xero.Api.Example.Applications.Private;
using Xero.Api.Infrastructure.OAuth;
using Xero.Api.Serialization;
X509Certificate2 cert = new X509Certificate2(@"C:OpenSSL-Win32binpublic_privatekey.pfx", "testitout");
var private_app_api = new XeroCoreApi("https://api.xero.com", new PrivateAuthenticator(cert),
new Consumer("XE7A2PCGHNEQZYTBKNNT05NAIECSXS", "ILCZGF2ME9CJDQYRZW0ADYI4UWYWBJ"), null,
new DefaultMapper(), new DefaultMapper());
var org = private_app_api.Organisation;
Console.WriteLine("Org Name: " + org.Name);
var user = new ApiUser { Name = Environment.MachineName };
System.Security.Cryptography.CryptographicException was unhandled
HResult=-2147024810
Message=The specified network password is not correct.
Source=mscorlib
AdinThis page was really helpful. Thanks. |
PaulThank you for this. Got me up and running really quick. |
ArifThanks a lot. very clear directions. I was able to integrate my app to xero after reading your tips. |
Our network of experienced computer programmers can develop custom software solutions in any language on any platform.
We maintain a network of local freelance computer programmers that we place in teams to match project requirements. This gives us expertise in a broad range of industries, languages & platforms
We can fix broken legacy systems, plan and oversee a difficult upgrade, add or unlock new features to your existing software. Or install and set-up new systems from scratch, including hardware and software
We can build solutions fast, Software as a Service (Saas), apps, web applications, desktop software, Minimum Viable Product using Agile Development practices
We can build simple to complex websites, we can deliver the whole package including site design, branding, logos, domains and hosting
PHP, MYSQL, C#,
C/C++, Java, JavaScript,
Python, Swift, Meteor,
Objective C
MYSQL, SQLServer,
MongoDB, NoSQL
Linux, Mac, Windows, iPhone, Android, Smart Phones, Tablets
Wordpress, Drupal, Magento, Moodle, Sharepoint Online, Office 365