Issue with uploading file to BIM 360 using forge API - autodesk-forge

I am using two-legged authentication for uploading files to BIM, the bucket API response says success but I cannot see files in the respective folder.
The response from Bucket api is like this: https://i.stack.imgur.com/BePMC.png
Any suggestions on the issue?

Look you haven't created the first version tip. Here is the tutorial page:
https://forge.autodesk.com/en/docs/bim360/v1/tutorials/document-management/upload-document/#step-7-create-the-first-version-of-the-file

Related

Why does the webContentLink access I get through the http interface of the Google cloud disk list report 404

I obtained the file download url through the following interface, and the corresponding field is webContentLink, but why did I return a 404 status code when I accessed this download url. I have tested this problem only with some of these accounts. There is no idea to solve this problem now.
interface address:https://developers.google.com/drive/api/v3/reference/files/list?hl=en&authuser=1
According to their docs, WebContentLink is only available for files with binary content in Google Drive.
If you want to download all kind of file then use the files.get method with the ID of the file to download and set the alt=media URL parameter
Reference: https://developers.google.com/drive/api/guides/manage-downloads#download_a_file_stored_on_google_drive

How to automatically download files from Sharepoint via REST API using postman

Stuck with a requirement where I have some CSV files in Sharepoint and I need to download them using REST API.
I am using postman for this task. After generating access token and running the REST API
https://xyz.sharepoint.com/sites/YYYFILES/_api/Web/GetFolderByServerRelativeUrl('test_library/lib')/Files
in postman, I am able to see JSON but files are not being downloaded automatically in local system.
Your ideas will be so helpful!
Thanks a ton in Advance!
Please try to add '$value' after '/Files'
Here is an example you can refer to:
https://xxxxx.sharepoint.com/sites/_api/web/GetFolderByServerRelativeUrl('test_library/lib')/Files('Document1.docx')/$value

How to get all elements from Revit files uploaded in the system using Revit API

we can view the Revit file on Autodesk forge viewer.
And we need to get all elements from Revit files uploaded in system using Revit API.
we are trying using below link
https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-GET/
But unfortunately we are getting below error
"Token does not have the privilege for this request."
errorcode : AUTH-010
Please help me how to resolve the error
Our main aim is to get all elements(equipments,floors,rooms,spaces etc)
Please make sure you have given the proper scopes, call this API using the internal token from your server.
Ref:
https://learnforge.autodesk.io/#/oauth/?id=scopes
https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/scopes/

Thumbnails of shared Google docs give 404

When I request file info via the Google Drive API for a Google Docs file that can be viewed by anyoneWithLink I get a thumbnailLink that produces a 404 Error if you view it as an anonymous user. Is there a way to get a thumbnail for such shared files that can be viewed by anyone? For Drawings I found https://docs.google.com/drawings/d/FILE_ID/image?w=WIDTH, but I didn't find anything for the other file formats.
Please use the thumbnailLink provided on the file resource. https://developers.google.com/drive/v2/reference/files#resource

Box API 2.0 : How to upload a file to your Box (apps) folder when you use /tokens API

I'm using the /tokens API from Box v2 and am able to get both the token and an apps specific folder id after I use the /tokens API. When I use this token to list all folders in my Box account, it appears to correctly list only my apps folder. However, I'm unable to upload a file to my apps folder using the token and the folder_id that I obtained from the /tokens API.
I can get the upload to work with a regular auth_token. I can't figure out how to make upload work with the instant mode token. Has anyone else had luck with this?
UPDATE: This issue has been resolved as of 6/7/2012.
We did some further investigation and it appears that there is a bug preventing uploads in Instant Mode. We're on fixing it and will hopefully have a resolution soon.