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

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.

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.

This is a old question, but the problem is presenting itself now.
Our application has been connected to BIM 360 Docs, however a request to get all hubs from Forge will not return this BIM 360 Docs hub.
We've verified that the administrator has activated the app in the Administrative tool.
What else should be checked?

Related

Does the Forge API support 2-legged bearer tokens for Bim360 Team hub types?

The Forge API works like a champ for Bim360 Docs hub types using 2-legged bearer token. However, I can't find documentation that confirms whether or not 2-legged authentication works for Bim360 Team hubs. Can anyone confirm this? Thanks.
You can use Data Management API to access BIM 360 Docs hubs using 2 legged OAuth, which is intended for background automation. You may consider adding the x-user-id header to enforce permissions.

AutoDesk API for List of Fusion 360 Files

Using the Autodesk Forge Auth API, I can get a bearer token for my app and I can get the ID of the user. I want to get a list of Fusion 360 files that the user owns. How can I do this? It seems like it would be part of the Data Management API, but I can't find it.
I use the forge api for data management to ask for the hubs for a user. I get a response that has a 200 status, but there is nothing in the response - no data and nothing like what is in the example.
Any ideals as to how to get those files?
If the GET Hubs response is empty, most likely that user don't have any hub. Is there any warning or error on the response body?
And this tutorial should help you get started, or try this live sample (source in .NET)

Autodesk Forge 403 When Trying to Retrieve Issues

I'm following the Issue Retrieval tutorial: https://forge.autodesk.com/en/docs/bim360/v1/tutorials/retrieve-issues/
After getting a token I'm able to retrieve my hubs, then my projects, but when it comes time to retrieve issues in a project I am getting a 403 forbidden.
Trying to retrieve issues with the following URL:
https://developer.api.autodesk.com/issues/v1/containers/[issue_container_id]/issues
where [issue_container_id] is retrieved from data[0].relationships.issues.data.id from the https://developer.api.autodesk.com/project/v1/hubs/[hub_id]/projects response
My auth token scope is data:read and I've even tried with data:read and data:write since I was initially trying to write an issue, but also got a 403.
My Forge app has access to BIM 360 API, Data Management API, and WebHook API.
My BIM 360 integration gives the Forge app acess to BIM 360 Account Admin and Document management.
According to our engineering team, BIM360 Issue APIs support three-legged token only currently. Apologizing for the confusion, the tutorial will be updated soon.

API not exposing items:autodesk.bim360:C4RModel

Reworded Question
Are items:autodesk.bim360:* objects available through BIM 360 Team hubs, or only through BIM 360 Docs hubs?
Original Description
I am trying to work through the tutorial on https://developer.autodesk.com/en/docs/data/v2/tutorials/publish-model/ and ran into an issue in Step 4. I initiated collaboration from inside Revit, but when I filter the contents to extension items:autodesk.bim360:C4RModel, there are no results returned. All the .rvt files have extension type items:autodesk.core:File.
Here is an abbreviated example:
{
"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:RYWSlvzKSVC_5npo6r4IpQ",
"attributes": {
"displayName": "C4RForgeAPITestProject.rvt",
"extension": {
"type": "items:autodesk.core:File",
"version": "1.0",
}
},
}
After going back and trying step 3 again, I noticed that my results from https://developer.api.autodesk.com/project/v1/hubs/$hubid/projects/$projectId/topFolders had extension type folders:autodesk.core:Folder whereas the tutorial showed folders:autodesk.bim360:Folder
Potentially a separate issue: I was using BIM 360 Team, but then looked at the fact that all the documents say BIM 360 Docs, and figured I might only be able to get to the C4R models through BIM 360 Docs, so I signed up for a trial there, created a brand new project, went to follow the instructions on http://help.autodesk.com/view/RVT/2018/ENU/?guid=GUID-AD16C560-F033-448F-8E9E-93939E40F246 to upload a model, but My collaborate dialog only has two options: Collaborate within your network and Collaborate using the cloud. When I select the latter, I can only see my BIM 360 Team Projects, not my BIM 360 Docs projects.
It feels like I am missing some large piece here. Can anyone help me figure out what that missing piece is?

How do I enable Google Maps Tile API?

I found out from here that there is a Google Maps Tile API (official documentation here).
However, I can't seem to find a way to enable this API.
Except for the link found in the question mentioned above, I couldn't find any other reference to this API, anywhere. It's not even listed on the main page of the Maps API (here) or the documentation page.
The API is also not listed in the Developer Console API Library.
I've tried sending a session request (as explained in the documentation) but received this response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Maps Tile API has not been used in project XXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX"
}
],
"code": 403,
"message": "Access Not Configured. Maps Tile API has not been used in project XXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
Following the link to the Developer Console, I receive this message:
The API "tile.googleapis.com" doesn't exist or you don't have
permission to access it
Is this a Google Maps premium feature? Does any one have more information on this API?
The Tile API is not available for Standard plan users. Neither for Premium plan users [1]. It requires a special license. You should contact Google's sales team directly in order to get some additional information regarding Tile API.
[1] https://developers.google.com/maps/premium/overview#package