public static XeroCoreApi CoreApi(XeroApiSettings xeroApiSettings) { var xeroCoreApi = new XeroCoreApi(xeroApiSettings.Uri, new PrivateAuthenticator(xeroApiSettings.SigningCertificatePath), new Consumer(xeroApiSettings.Key, xeroApiSettings.Secret), null, new DefaultMapper(), new DefaultMapper()); return xeroCoreApi; }
public ExportingContactsToXEROLogic(string uri, string signingCertificatePath, string key, string secret) { xeroApiSettings = new XeroApiSettings(); xeroApiSettings.Uri = uri; xeroApiSettings.Secret = secret; xeroApiSettings.Key = key; xeroApiSettings.SigningCertificatePath = signingCertificatePath; xeroCoreApi = XeroApiHelper.CoreApi(xeroApiSettings); }
public GetPaymentController() { xeroApiSettings = new XeroApiSettings(); xeroApiSettings.Uri = ConfigurationManager.AppSettings["BaseUrl"]; xeroApiSettings.Secret = ConfigurationManager.AppSettings["ConsumerSecret"]; xeroApiSettings.Key = ConfigurationManager.AppSettings["ConsumerKey"]; xeroApiSettings.SigningCertificatePath = ConfigurationManager.AppSettings["SigningCertificate"]; xeroCoreApi = XeroApiHelper.CoreApi(xeroApiSettings); }