Stack:Laravel,XeroPHP
我无法访问发票附件,因为我得到了一个ForbiddenException:
You are not permitted to access this resource
我已经连接到API,并且正在获取发票数据,但是当我调用发票附件时,这个异常将被抛出。
我相信我在另一层上遗漏了一些东西,而不是这里。也许是因为Xero帐户的问题?我正在使用Demo用户及其预定义的数据(以及在此基础上创建的一些新发票)。
当我撞到:
-我得到了结果
但当我撞到:
我得到了:
{
"Type": null,
"Title"
因此,我试图使用Composer安装calcinai/xero-php,但是得到了具体的错误。
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package calcinai/xero-php No version set (parsed as 1.0.0) is satisfiable by calcinai/xero-php[No version set (parsed as 1.0.0)] but these confl
应用程序如何检查用户是否拥有正确的密钥?证书,并根据中的要求验证这些要求?我目前的算法只检查建立到api的初始连接所需的可访问性,但不一定检查信息是否有效。
//check for files/keys before running xero
function provideXeroConnection($request = 'xml'){
//validate everything is inplace
if(validateXeroAuth()){
//if it is then bubble the object up to (XeroAc
我想连接到Xero API,我有以下代码:
using Xero.Api;
using Xero.Api.Core;
using Xero.Api.Example.Applications.Public;
using Xero.Api.Infrastructure.OAuth;
using Xero.Api.Infrastructure.Interfaces;
using Xero.Api.Serialization;
var public_app_api = new XeroCoreApi("https://api.xero.com", new PublicAuthenti
我想集成xero与c# windows服务应用程序。我没有找到一个简单的代码片段来连接xero和c#。我不希望在使用xero授权用户时进行任何用户交互。
我找到了下面的代码,但它将我重定向到xero登录页面进行身份验证,然后生成验证码,我如何避免这一点并继续进行,因为在windows服务中,我将没有任何gui来输入验证码。
using System;
using System.Linq;
using System.Windows.Forms;
using Xero.Api.Core;
using Xero.Api.Example.Applications.Public;
using Xero.
我不经常使用Composer,所以这可能是用户错误!我正在尝试从的GitHub安装Xero的oAuth2包
按照说明,我在composer.json中添加了以下内容:
"require": {
"xeroapi/xero-php-oauth2": "0.2.0"
}
但是,当我运行composer install时,我看到以下内容:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The reques
我正在尝试使用xero删除帐户或更新帐户。Api给了我像400这样的状态代码的异常。
发生验证异常时,不能对银行帐户使用DELETE方法。
附加的是密码。
//deleting account using unique id
xeroClient.deleteAccount("XXXXX-XxxxX-Xxxx-XXXX-XXXXXXX");
//setting deleted status via update()
Account account=new Account();
account.setAccountID("XXXXX-XxxxX-Xxx