The sample helps viewing, building custom reports and exporting usage query & export usage query API data in the form of tables, charts from Business Success Plan Reporting Sample.
Uses 3-legged oAuth2 with implicit grant to authenticate with aps.
-
Autodesk Platform Services Account: Learn how to create a aps Account, activate subscription and create an app at this tutorial
-
Visual Studio Code
-
Go Live Extension in Visual Studio Code.
-
Tested to be working on: Chrome, IE Edge
-
When logging into the web dashboard, you should login with the ID of an administrator with premium benefits (EBA).If you login with a user that does not have such roles, the API will return no data.
-
Create a Autodesk Platform Services app with access to the Premium Reporting API.
-
Take note of the Client ID which you need to enter as soon as you login.
-
Use http://localhost:5500 as redirect URL in aps App.
-
Clone or download the folder. Open the folder inside in Visual Studio Code.
-
Use http://localhost:5500 as redirect URL in the js/method.js file.
-
Click Go live to run live server.
- Save your metadata in the JSON format in the root folder.
- Here is the sample of metadata.
- Make changes as per your mapping in js/jsonToTable.js file.
The above sample is deployed on https://autodesk-platform-services.github.io/aps-business-success-plan-report/
To deploy your changed code use GitHub pages. Follow this tutorial
Note- As soon as you deploy it the redirect URL becomes the deployment domain.
For support, please contact [email protected].
This sample is licensed under the terms of the MIT License. Please refer to LICENSE for more details.
Deepali Srivastava, Autodesk Platform Services Partner Development Group