https://github.com/autodesk-platform-services/aps-hubs-xls
Extract metadata of model on your Autodesk360, BIM360 or Autodesk Construction Cloud(ACC) account, into an excel spreadsheet.
https://github.com/autodesk-platform-services/aps-hubs-xls
aps docs excel-export nodejs sample
Last synced: about 1 month ago
JSON representation
Extract metadata of model on your Autodesk360, BIM360 or Autodesk Construction Cloud(ACC) account, into an excel spreadsheet.
- Host: GitHub
- URL: https://github.com/autodesk-platform-services/aps-hubs-xls
- Owner: autodesk-platform-services
- License: mit
- Created: 2024-06-25T05:27:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T15:34:44.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T16:57:35.351Z (over 1 year ago)
- Topics: aps, docs, excel-export, nodejs, sample
- Language: JavaScript
- Homepage: https://aps-hubs-xls.autodesk.io
- Size: 327 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# APS Hubs XLS (Node.js)

[](https://nodejs.org)
[](https://www.npmjs.com/)
[](https://opensource.org/licenses/MIT)
This sample application demonstrates how to extract metadata of model on your Autodesk360, BIM360 acount or Autodesk Forma hub, into an excel spreadsheet. The sample code demonstates 3-legged OAuth, a simple viewer extension and code to handle meta-data and format it into an excel spreadsheet file.

## Development
### Prerequisites
- [APS credentials](https://aps.autodesk.com/en/docs/oauth/v2/tutorials/create-app)
- Provisioned access to [BIM 360 Docs](https://aps.autodesk.com/en/docs/bim360/v1/tutorials/getting-started/manage-access-to-docs/)
or Autodesk Forma
- [Node.js](https://nodejs.org) (Long Term Support version is recommended)
- Command-line terminal such as [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/overview)
or [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) (should already be available on your system)
> We recommend using [Visual Studio Code](https://code.visualstudio.com) which, among other benefits,
> provides an [integrated terminal](https://code.visualstudio.com/docs/terminal/basics) as well.
### Setup & Run
- Clone this repository: `git clone https://github.com/autodesk-platform-services/aps-hubs-browser-nodejs`
- Go to the project folder: `cd aps-hubs-browser-nodejs`
- Install Node.js dependencies: `npm install`
- Open the project folder in a code editor of your choice
- Create a _.env_ file in the project folder, and populate it with the snippet below,
replacing `` and `` with your APS Client ID and Client Secret,
and `` with an arbitrary string:
```bash
APS_CLIENT_ID=""
APS_CLIENT_SECRET=""
APS_CALLBACK_URL="http://localhost:8080/api/auth/callback" # URL your users will be redirected to after logging in with their Autodesk account
SERVER_SESSION_SECRET="" # phrase used to encrypt/decrypt server session cookies
```
> For applications deployed to a custom domain, the callback URL will be `http:///api/auth/callback`
> or `https:///api/auth/callback`. Do not forget to update the callback URL for your application
> in https://aps.autodesk.com/myapps as well.
- Run the application, either from your code editor, or by running `npm start` in terminal
- Open http://localhost:8080
> When using [Visual Studio Code](https://code.visualstudio.com), you can run & debug
> the application by pressing `F5`.
## Troubleshooting
Please contact us via https://aps.autodesk.com/en/support/get-help.
## License
This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Please see the [LICENSE](LICENSE) file for more details.