Search code examples
autodeskforgeautodesk-forgeautodesk-data-managementautodesk-bim360

Cant get hubs from BIM 360 by using Forge Data Management API


I am trying to get all my hubs from a360 and BIM360. I already have access to my BIM 360 Account and “Apps & Integrations” is visible to me. Also added integration with Forge application.

I have sent a request with my 3-Legged Token:

curl -X GET -H "Authorization: Bearer wIHYfJt80v2AvkTSUZxxxxxxxxxx" "https://developer.api.autodesk.com/project/v1/hubs"

But responce contains only a360 hubs and error message

"warnings": [
      {
        "Id": null,
        "HttpStatusCode": "403",
        "ErrorCode": "BIM360DM_ERROR",
        "Title": null,
        "Detail": "Failed to get the hubs.",
        "AboutLink": null,
        "meta": []
      }

Could you please explain me what could be wrong? Maybe you had the same issue.


Solution

  • 2/23/2017 - Update. You can access BIM 360 Docs hubs now if you have an enterprise account. For more information, please refer to this post:

    https://fieldofviewblog.wordpress.com/2017/01/19/bim-360-enterprise-activating-api-access-to-docs/

    11/8/2016 - original. Right now, the scope of BIM 360 API is limitted to Account level. Also, it uses 2-legged.

    For further explanations, please refer to these page:

    https://fieldofviewblog.wordpress.com/2016/08/09/bim-360-api-on-forge/

    https://fieldofviewblog.wordpress.com/2016/08/02/bim-360-account-level-api-available-as-preview-beta/

    Hope to have it exposed near future.

    I hope this clarifies.