Skip to content

Commit 1dc45cf

Browse files
committed
minor updates
1 parent cee47ee commit 1dc45cf

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

README-stg.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<b>
2+
This README explains how to setup the sample to use the Staging environment vs Production.<br />
3+
It is a configuration which works only for people having access to the staging environment (Autodesk internal only)
4+
</b>
5+
<br />
6+
7+
18
# Autodesk View and Data API Node.js Basic Sample
29

310
This setup is only available for people having access to the staging server. If you do not have credentials for the staging server, do not use these instructions.
@@ -8,8 +15,6 @@ A sample demonstrating how to view a model in a web application with the Autodes
815
server and JavaScript/HTML5 client. This sample does not demonstrate how to upload a model to the Autodesk server for translation. See instructions below
916
to prepare a model to be consumed in this sample.
1017

11-
This README explains how to setup the sample to use the Staging environment vs Production.
12-
1318

1419
## Dependencies
1520
Install Node.js on your machine and clone this repo. Download the project dependencies using npm before running the app by running
@@ -38,13 +43,16 @@ get model URNs - as explained in the Setup/Usage Instructions.
3843
```
3944
cp credentials_.js credentials.js
4045
```
41-
* Replace the placeholder with your own keys in credentials.js, line #29 and #30 <br />
46+
* Replace the placeholder with your own keys in credentials.js, line #23 and #24 <br />
4247
```
4348
credentials.ClientId = '<replace with your consumer key>';
4449

4550
credentials.ClientSecret = '<replace with your consumer secret>';
4651
```
47-
* In file credentials.js, comment out line #23, and uncomment line #24
52+
* In file credentials.js line #26, replace the BaseUrl address by the staging server address <br />
53+
```
54+
credentials.BaseUrl = 'https://developer-stg.api.autodesk.com' ;
55+
```
4856
* Upload one of your models to your account and get its URN using another workflow sample, for example,
4957
- [this workflow sample in .Net WPF application](https://github.com/Developer-Autodesk/workflow-wpf-view.and.data.api) if you are using windows
5058
- or [this workflow sample in Mac OS Swift](https://github.com/Developer-Autodesk/workflow-macos-swift-view.and.data.api) if you are using Mac

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ get model URNs - as explained in the Setup/Usage Instructions.
3434
```
3535
cp credentials_.js credentials.js
3636
```
37-
* Replace the placeholder with your own keys in credentials.js, line #29 and #30 <br />
37+
* Replace the placeholder with your own keys in credentials.js, line #23 and #24 <br />
3838
```
3939
credentials.ClientId = '<replace with your consumer key>';
4040

credentials_.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818

1919
var credentials ={} ;
2020

21-
// If you which to use the Autodesk View & Data API on the staging server,
22-
// comment out the line #23 and uncomment line #24
23-
credentials.BaseUrl = 'https://developer.api.autodesk.com' ;
24-
//credentials.BaseUrl = 'https://developer-stg.api.autodesk.com' ;
25-
26-
// Replace placeholder below by the Consumer Key and Consumer secret you got from
21+
// Replace placeholder below by the Consumer Key and Consumer Secret you got from
2722
// http://developer.autodesk.com/ for the production server
28-
// or http://developer-stg.autodesk.com/ for the staging server
2923
credentials.ClientId ='<replace with your consumer key>' ;
3024
credentials.ClientSecret ='<replace with your consumer secret>' ;
3125

26+
// If you which to use the Autodesk View & Data API on the staging server, change this url
27+
credentials.BaseUrl = 'https://developer.api.autodesk.com' ;
28+
3229
module.exports =credentials ;

0 commit comments

Comments
 (0)