xero-api

Connect Azure Website to Xero Partner Application

邮差的信 提交于 2019-12-21 11:01:08
问题 I'm integrating my app with Xero which requires two certificates. I uploaded them to Azure with help from this article, but I'm still unable to connect to the Xero API. I'm hoping someone has experience integrating a Xero Partner Application with an Azure Web App. I've uploaded two pfx files; one is a self-signed certificate and the other is the partner certificate issued by Xero. The latter pfx file contains two certificates; an Entrust Commercial Private Sub CA1 (whatever than means) and a

Xero API Auth fails using query string using Google Apps Script

谁说我不能喝 提交于 2019-12-13 07:28:19
问题 I have successfully authorised my Google Apps Script app with the Xero API, and can get trial balances. However once I add a query string (?date=YYYY-mm-dd) to the request I get 401 - not authorised. Adding the query string in the same way I've successfully used paging for getting payments and invoices. Can anyone see the problem: (The Gist) function getTrialBalancesWithNoDate() { // . // . // . fetchPublicAppData('Reports/TrialBalance', '', '') // OK // . // . // . } function

Can I, how do I, supply a settings file to an Azure Function?

若如初见. 提交于 2019-12-08 19:34:19
问题 When porting an application that uses a settings file to an Azure Function, is it necessary to remove reliance on the file? I want to write a function app to import data from Xero into an Azure sql database. The Xero SDK I am using is expecting an appsettings.json file. Consequently when the function runs I get the error System.Private.CoreLib: Exception while executing function: FunctionXeroSync. Xero.Api: The type initializer for 'Xero.Api.Infrastructure.Applications.Private.Core' threw an

PHP - Setup Webhook Receiver with signature verification

允我心安 提交于 2019-12-07 07:01:07
问题 I need to setup a PHP page for receiving Webhooks - I've done many of these in the past so that is not a problem, but the API I'm working with for this project requires that my webhook verifies the signature provided in the header. As part of the validation request it will send the following: HEADER: "x-xero-signature" : HASH_VALUE PAYLOAD: { "events": [], "lastEventSequence": 0, "firstEventSequence": 0, "entropy": "S0m3r4N0m3t3xt" } I've created a Webhook key (e.g. 'ABC123'), and as part of

PHP - Setup Webhook Receiver with signature verification

三世轮回 提交于 2019-12-05 12:31:53
I need to setup a PHP page for receiving Webhooks - I've done many of these in the past so that is not a problem, but the API I'm working with for this project requires that my webhook verifies the signature provided in the header. As part of the validation request it will send the following: HEADER: "x-xero-signature" : HASH_VALUE PAYLOAD: { "events": [], "lastEventSequence": 0, "firstEventSequence": 0, "entropy": "S0m3r4N0m3t3xt" } I've created a Webhook key (e.g. 'ABC123'), and as part of the validation request for this Webhook I must ensure that the payload which is hashed using HMACSHA256