我试图允许在 xero 中访问它,但允许访问的按钮显示为灰色。我尝试在线查看文档,发现它可能与范围有关:https://developer.xero.com/documentation/guides/oauth2/scopes/#organisation-scopes
这里有很多范围,其中一个在该链接中称为组织范围,错误显示
you do not have suffiecient access to connect to organisation
所以我的代码中是否缺少范围?此外,在上面组织范围下的链接中有很多组织范围,所以我怎么知道我应该在我的代码中使用哪个?
// Scope defines the data your app has permission to access.
// Learn more about scopes at https://developer.xero.com/documentation/oauth2/scopes
$options = [
'scope' => ['openid email profile payroll.employees payroll.payruns payroll.payslip payroll.timesheets payroll.settings']
];