API | Operation Description |
Get document preview URL | |
Get photo/video cover thumbnail URL |
QCloudSMHGetPresignedURLRequest *req = [QCloudSMHGetPresignedURLRequest new];// Media Library ID, required parameterreq.libraryId = @"libraryId";// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameterreq.spaceId = @"spaceId";// version idreq.historyId = @"historVersionId";// file pathreq.filePath = @"filePath";req.purpose = QCloudSMHPurposePreview;[req setFinishBlock:^(NSString *result, NSError *_Nullable error) {// result preview URL.}];[[QCloudSMHService defaultSMHService] getPresignedURL:req];
QCloudSMHGetPresignedURLRequest *req = [QCloudSMHGetPresignedURLRequest new];// Media Library ID, required parameterreq.libraryId = @"libraryId";// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameterreq.spaceId = @"spaceId";// version idreq.historyId = @"historVersionId";// file pathreq.filePath = @"filePath";// number of frames, frame processing targeting gifreq.frameNumber = 10;// For image transformation parameters like size, scale, heightSize, and widthSize, check the api documentation.req.size = size;req.purpose = QCloudSMHPurposePreview;[req setFinishBlock:^(NSString *result, NSError *_Nullable error) {// result preview URL.}];[[QCloudSMHService defaultSMHService] getPresignedURL:req];
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback