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);
 }
Example #4
0
 public ApiDataCreation(XeroCoreApi api)
 {
     _api = api;
 }
Example #5
0
 public XeroAPI(XeroCoreApi api)
 {
     _api = api;
 }
 public AutomationAPI_Tester(XeroCoreApi api)
 {
     _api = api;
 }
Example #7
0
 public Lister(XeroCoreApi api)
 {
     _api = api;
 }