All URIs are relative to https://hlconnect-api.mu.se
| Method | HTTP request | Description |
|---|---|---|
| connectorPurchaseViewUrl | GET /purchase/view-url | Get asset view URL |
ViewUrl connectorPurchaseViewUrl(orderId, orderLineId)
Get asset view URL
Generates and returns a secure, time-limited view URL for a purchased digital asset. The URL can be used to view the asset online (e.g., sheet music viewer).
import HlConnect from 'hl_connect';
let defaultClient = HlConnect.ApiClient.instance;
// Configure Bearer access token for authorization: access_token
let access_token = defaultClient.authentications['access_token'];
access_token.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new HlConnect.PurchaseViewUrlApi();
let orderId = 12345; // Number | Vendor order ID that contains the asset to view
let orderLineId = 1; // Number | Specific line item within the order that identifies the asset to view
apiInstance.connectorPurchaseViewUrl(orderId, orderLineId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| orderId | Number | Vendor order ID that contains the asset to view | |
| orderLineId | Number | Specific line item within the order that identifies the asset to view |
- Content-Type: Not defined
- Accept: application/json