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
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ and 3-legged tokens for calling different Data Management endpoints.
32
32
#### 2-Legged Token
33
33
34
34
This type of token is given directly to the application.
35
-
To get a 2-legged token run the following code:
35
+
To get a 2-legged token run the following code. Note that you need to replace `your-client-id` and `your-client-secret` with your [app](https://developer.autodesk.com/myapps)'s client ID and client secret.
To ask for permissions from a user to retrieve an access token, you
62
-
redirect the user to a consent page. Run this code to create a consent page URL:
62
+
redirect the user to a consent page.
63
+
64
+
Replace `your-client-id`, `your-client-secret`, and `your-redirect-url` with your [app](https://developer.autodesk.com/myapps)'s client ID, client secret, and redirect URL, and run the code to create a consent page URL.
65
+
66
+
Note that the redirect URL must match the pattern of the callback URL field of the app’s registration in the My Apps section. The pattern may include wildcards after the hostname, allowing different redirect URL values to be specified in different parts of your app.
**objectName** | **String**| URL-encoded object name |
243
-
**sessionId** | **String**| Unique identifier of a session of a file being uploaded |
241
+
**id** | **String**| Id of signed resource |
242
+
**range** | **String**| A range of bytes to download from the specified object. | [optional]
243
+
**ifNoneMatch** | **String**| The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included. | [optional]
244
+
**ifModifiedSince** | **Date**| If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body. | [optional]
245
+
**acceptEncoding** | **String**| When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used. | [optional]
246
+
**region** | **String**| The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US` | [optional][default to US]
244
247
245
248
### Return type
246
249
247
-
[**Result**](Result.md)
250
+
**Object**
248
251
249
252
### Authorization
250
253
@@ -253,30 +256,27 @@ Name | Type | Description | Notes
**range** | **String**| A range of bytes to download from the specified object. | [optional]
272
-
**ifNoneMatch** | **String**| The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included. | [optional]
273
-
**ifModifiedSince** | **Date**| If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body. | [optional]
274
-
**acceptEncoding** | **String**| When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used. | [optional]
275
-
**region** | **String**| The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US` | [optional][default to US]
* @param {String} objectName URL-encoded object name
404
-
* @param {String} sessionId Unique identifier of a session of a file being uploaded
405
-
* data is of type: {module:model/Result}
401
+
* Download an object using a signed URL.
402
+
* @param {String} id Id of signed resource
403
+
* @param {Object} opts Optional parameters
404
+
* @param {String} opts.range A range of bytes to download from the specified object.
405
+
* @param {String} opts.ifNoneMatch The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included.
406
+
* @param {Date} opts.ifModifiedSince If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body.
407
+
* @param {String} opts.acceptEncoding When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used.
408
+
* @param {module:model/String} opts.region The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US` (default to US)
409
+
* data is of type: {Object}
406
410
* @param {Object} oauth2client oauth2client for the call
407
411
* @param {Object} credentials credentials for the call
* @param {String} opts.range A range of bytes to download from the specified object.
457
-
* @param {String} opts.ifNoneMatch The value of this header is compared to the ETAG of the object. If they match, the body will not be included in the response. Only the object information will be included.
458
-
* @param {Date} opts.ifModifiedSince If the requested object has not been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (not modified) response will be returned without any message body.
459
-
* @param {String} opts.acceptEncoding When gzip is specified, a gzip compressed stream of the object’s bytes will be returned in the response. Cannot use “Accept-Encoding:gzip” with Range header containing an end byte range. End byte range will not be honored if “Accept-Encoding: gzip” header is used.
460
-
* @param {module:model/String} opts.region The region where the bucket resides Acceptable values: `US`, `EMEA` Default is `US` (default to US)
461
-
* data is of type: {Object}
451
+
* This endpoint returns status information about a resumable upload.
0 commit comments