@@ -58,7 +58,7 @@ Whenever the API makes a call and runs into a catch block, you will get an error
58
58
}
59
59
```
60
60
61
- ### getPreSignedData({ fileName: string, acl: string, expiration: number }) [ GET /api/v1/pre-sign] ( https://dev-dms.meetmaestro.com:3000/ #api-Signing-Pre_Sign_Url )
61
+ ### getPreSignedData({ fileName: string, acl: string, expiration: number }) [ GET /api/v1/pre-sign] ( https://dev-dms.meetmaestro.com/docs/development/index.html #api-Signing-Pre_Sign_Url )
62
62
63
63
This endpoint is used for creating policies in order to upload content to your S3 bucket Note: You must send the payload to S3 in the order that we send them back.
64
64
@@ -97,7 +97,7 @@ dms.getPreSignedConfig({
97
97
}
98
98
```
99
99
100
- ### getSignedUrl(url: string, expiration: number) [ GET /api/v1/sign] ( https://dev-dms.meetmaestro.com:3000/ #api-Signing-Sign_Url )
100
+ ### getSignedUrl(url: string, expiration: number) [ GET /api/v1/sign] ( https://dev-dms.meetmaestro.com/docs/development/index.html #api-Signing-Sign_Url )
101
101
This endpoint is used for signing your S3 private content
102
102
103
103
** Parameters**
@@ -119,6 +119,79 @@ dms.getSignedUrl('https://new-media-test-bucket.s3.amazonaws.com/test.pdf', 2000
119
119
}
120
120
```
121
121
122
+ ### register(options: DocumentServiceOptions.RegistrationData) [ POST /api/v1/register] (https://dev-dms.meetmaestro.com/docs/development/index.html#api-Signing-Sign_Url)
123
+ This endpoint is used to register your content with the document service.
124
+
125
+ ** Parameters**
126
+
127
+ | Name| Type| Required| Description|
128
+ | ---| ---| ---| ---|
129
+ | options.title| string| True| The title of the content|
130
+ | options.identity| string| True| The identity that DMS will use for callbacks|
131
+ | options.path| string| True| The location of the content in S3|
132
+ | options.mediaType| MediaType| True| The contents media type used for determining all the registration requirements|
133
+ | options.shouldConvert| boolean| False| If the file should be converted|
134
+ | options.shouldGenerateThumbnail| boolean| False| If a thumbnail should be generated|
135
+
136
+ ** Request Example:**
137
+ ``` javascript
138
+ dms .register ({
139
+ title: ' Training Intro' ,
140
+ identity: ' ad9991a8-ab82-4521-befe-a8f2f956ce12' ,
141
+ path: ' https://new-media-test-bucket.s3.amazonaws.com/test.pdf' ,
142
+ mediaType: ' PDF' ,
143
+ shouldGenerateThumbnail: true
144
+ })
145
+ ```
146
+ ** Response Example:**
147
+ ```
148
+ {
149
+ "code": "MEDIA_PROCESSING"
150
+ }
151
+ ```
152
+
153
+ ### view(options: DocumentServiceOptions.RegistrationData) [ POST /api/v1/view] (https://dev-dms.meetmaestro.com/docs/development/index.html#api-Signing-Sign_Url)
154
+ This endpoint is used for generating the information you need to view the content
155
+
156
+ The payload will be a little dynamic based on the content type
157
+
158
+ ** Parameters**
159
+
160
+ | Name| Type| Required| Description|
161
+ | ---| ---| ---| ---|
162
+ | options.title| string| True| The title of the content|
163
+ | options.identity| string| True| The identity that DMS will use for callbacks|
164
+ | options.path| string| True| The location of the content in S3|
165
+ | options.mediaType| MediaType| True| The contents media type used for determining all the registration requirements|
166
+
167
+ ** Request Example:**
168
+ ``` javascript
169
+ dms .view ({
170
+ title: ' Training Intro' ,
171
+ identity: ' ad9991a8-ab82-4521-befe-a8f2f956ce12' ,
172
+ path: ' https://new-media-test-bucket.s3.amazonaws.com/test.pdf' ,
173
+ mediaType: ' PDF'
174
+ })
175
+ ```
176
+
177
+ ** Response Example:**
178
+ ```
179
+ {
180
+ "url": "https://bucket.s3.amazonaws.com/73aff5ee-a986-4af...",
181
+ "downloadUrl": "https://bucket.s3.amazonaws.com/73aff5ee-a986-4af...",
182
+ "expiration": "2017-04-06T14:49:16.267Z",
183
+ "jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2V..", (PDF only - The JWT needed for opening the pdf with PSPDFKit)
184
+ "documentId": 3 (PDF only - The documentId needed for opening the pdf with PSPDFKit)
185
+ "convertedContent": {
186
+ "url": "https://bucket.s3.amazonaws.com/73aff5ee-a986-4af...",
187
+ "downloadUrl": "https://bucket.s3.amazonaws.com/73aff5ee-a986-4af...",
188
+ "expiration": "2017-04-06T14:49:16.267Z",
189
+ "jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2V..", (PDF only - The JWT needed for opening the pdf with PSPDFKit)
190
+ "documentId": 3 (PDF only - The documentId needed for opening the pdf with PSPDFKit)
191
+ }
192
+ }
193
+ ```
194
+
122
195
# Contributors
123
196
124
197
[ <img alt =" John Pinkster " src =" https://avatars1.githubusercontent.com/u/5350861?v=3&s=460 " width =" 117 " >] ( https://github.com/jpinkster ) |
0 commit comments