Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 73959dd

Browse files
Merge pull request #19 from tuimz/allow-file-saving
Return the response instead of null so one can save the resulting file
2 parents 6ebf6de + b8ac4dd commit 73959dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Api/DerivativesApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getDerivativeManifest($urn, $derivative_urn, $range = null)
159159
* @param string $derivative_urn The URL-encoded URN of the derivatives. The URN is retrieved from the GET :urn/manifest endpoint. (required)
160160
* @param int $range This is the standard RFC 2616 range request header. It only supports one range specifier per request: 1. Range:bytes=0-63 (returns the first 64 bytes) 2. Range:bytes=64-127 (returns the second set of 64 bytes) 3. Range:bytes=1022- (returns all the bytes from offset 1022 to the end) 4. If the range header is not specified, the whole content is returned. (optional)
161161
* @throws \Autodesk\Forge\Client\ApiException on non-2xx response
162-
* @return array of null, HTTP status code, HTTP response headers (array of strings)
162+
* @return array of file content, HTTP status code, HTTP response headers (array of strings)
163163
*/
164164
public function getDerivativeManifestWithHttpInfo($urn, $derivative_urn, $range = null)
165165
{
@@ -225,7 +225,7 @@ public function getDerivativeManifestWithHttpInfo($urn, $derivative_urn, $range
225225
'/modelderivative/v2/designdata/{urn}/manifest/{derivativeUrn}'
226226
);
227227

228-
return [null, $statusCode, $httpHeader];
228+
return [$response, $statusCode, $httpHeader];
229229
} catch (ApiException $e) {
230230
switch ($e->getCode()) {
231231
}

0 commit comments

Comments
 (0)