You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
@@ -57,17 +64,21 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
57
64
npm link
58
65
```
59
66
60
-
Finally, switch to the directory you want to use your mdes_digital_enablement_api from, and run:
67
+
To use the link you just defined in your project, switch to the directory you want to use your mdes_digital_enablement_api from, and run:
61
68
62
69
```shell
63
70
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
64
71
```
65
72
66
-
You should now be able to `require('mdes_digital_enablement_api')` in javascript files from the directory you ran the last command above from.
73
+
Finally, you need to build the module:
67
74
68
-
### git
75
+
```shell
76
+
npm run build
77
+
```
78
+
79
+
#### git
69
80
70
-
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
81
+
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
71
82
then install it via:
72
83
73
84
```shell
@@ -76,7 +87,9 @@ then install it via:
76
87
77
88
### For browser
78
89
79
-
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following the above steps with Node.js and installing browserify with `npm install -g browserify`, perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually use this library):
90
+
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
91
+
the above steps with Node.js and installing browserify with `npm install -g browserify`,
92
+
perform the following (assuming *main.js* is your entry file):
80
93
81
94
```shell
82
95
browserify main.js > bundle.js
@@ -114,7 +127,6 @@ var api = new MdesDigitalEnablementApi.DeleteApi()
114
127
var opts = {
115
128
'deleteRequestSchema':newMdesDigitalEnablementApi.DeleteRequestSchema() // {DeleteRequestSchema} Contains the details of the request message.
var apiInstance =newMdesDigitalEnablementApi.GetAssetApi();
25
-
var assetId ="assetId_example"; // String | An Asset ID corresponds to an individual Digital Asset. Digital Assets are returned as part of the Product Configuration from the Tokenize Response. The Asset ID itself is supplied as a Get request in the form of https://{INSERT ENVIRONMENT URL HERE}/mdes/assets/static/1/0/asset/{AssetID} - See JSON examples for details.
26
-
varcallback=function(error, data, response) {
24
+
let apiInstance =newMdesDigitalEnablementApi.GetAssetApi();
25
+
let assetId ="assetId_example"; // String | An Asset ID corresponds to an individual Digital Asset. Digital Assets are returned as part of the Product Configuration from the Tokenize Response. The Asset ID itself is supplied as a Get request in the form of https://{INSERT ENVIRONMENT URL HERE}/mdes/assets/static/1/0/asset/{AssetID} - See JSON examples for details.
**assetId** | **String**| An Asset ID corresponds to an individual Digital Asset. Digital Assets are returned as part of the Product Configuration from the Tokenize Response. The Asset ID itself is supplied as a Get request in the form of https://{INSERT ENVIRONMENT URL HERE}/mdes/assets/static/1/0/asset/{AssetID} - See JSON examples for details. |
var apiInstance =newMdesDigitalEnablementApi.GetTaskStatusApi();
25
-
var opts = {
24
+
let apiInstance =newMdesDigitalEnablementApi.GetTaskStatusApi();
25
+
let opts = {
26
26
'getTaskStatusRequestSchema':newMdesDigitalEnablementApi.GetTaskStatusRequestSchema() // GetTaskStatusRequestSchema | Contains the details of the request message.
**getTaskStatusRequestSchema** | [**GetTaskStatusRequestSchema**](GetTaskStatusRequestSchema.md)| Contains the details of the request message. | [optional]
var apiInstance =newMdesDigitalEnablementApi.NotifyTokenUpdatedApi();
25
-
var opts = {
24
+
let apiInstance =newMdesDigitalEnablementApi.NotifyTokenUpdatedApi();
25
+
let opts = {
26
26
'notifyTokenUpdatedRequestSchema':newMdesDigitalEnablementApi.NotifyTokenUpdatedRequestSchema() // NotifyTokenUpdatedRequestSchema | Contains the details of the request message.
**notifyTokenUpdatedRequestSchema** | [**NotifyTokenUpdatedRequestSchema**](NotifyTokenUpdatedRequestSchema.md)| Contains the details of the request message. | [optional]
var apiInstance =newMdesDigitalEnablementApi.SearchTokensApi();
25
-
var opts = {
24
+
let apiInstance =newMdesDigitalEnablementApi.SearchTokensApi();
25
+
let opts = {
26
26
'searchTokensRequestSchema':newMdesDigitalEnablementApi.SearchTokensRequestSchema() // SearchTokensRequestSchema | Contains the details of the request message.
**searchTokensRequestSchema** | [**SearchTokensRequestSchema**](SearchTokensRequestSchema.md)| Contains the details of the request message. | [optional]
0 commit comments