Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法访问Microsoft Dynamics 365 Business Central的API_Php_Dynamics Business Central - Fatal编程技术网

Php 无法访问Microsoft Dynamics 365 Business Central的API

Php 无法访问Microsoft Dynamics 365 Business Central的API,php,dynamics-business-central,Php,Dynamics Business Central,我必须将Microsoft Dynamics 365的API实现到我的网站中,但无法访问它。我已经用这个实现了身份验证,它工作得很好。Microsoft graph API正在工作,但我无法使用Microsoft Dynamics 365 在应用程序中,我还添加了Microsoft Dynamics 365 Business central的权限。参考此文档获取公司详细信息,我尝试了以下方法: 终点 https://api.businesscentral.dynamics.com/v2.0/pr

我必须将Microsoft Dynamics 365的API实现到我的网站中,但无法访问它。我已经用这个实现了身份验证,它工作得很好。Microsoft graph API正在工作,但我无法使用Microsoft Dynamics 365

在应用程序中,我还添加了Microsoft Dynamics 365 Business central的权限。参考此文档获取公司详细信息,我尝试了以下方法:

终点

https://api.businesscentral.dynamics.com/v2.0/production/abc.onmicrosoft.com/api/v1.0/companies
Method - Get
用我从身份验证中得到的令牌

我得到了这个错误-

    {
     "error": {
        "code": "RequestDataInvalid",
        "message": "Request data is invalid."
     }
    }
但是,我可以访问Microsoft graph API。
请让我知道我做错了什么,我错过了什么吗?

我两个都在为此挣扎

tenantId和环境在其演示中混淆的接缝

这对我很有用: {tenantid}/{environment}/api/v1.0/companys


我两个都在挣扎

tenantId和环境在其演示中混淆的接缝

这对我很有用: {tenantid}/{environment}/api/v1.0/companys