Skip to content

Commit

Permalink
some adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
luancazarine committed May 24, 2024
1 parent 688dd8b commit 69d10f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
maxBodyLength: Infinity,
});

if (!response.code != 200) throw new ConfigurationError(response.message || response.type);
if (response.code != 200) throw new ConfigurationError(response.message || response.type);

$.export("$summary", `Successfully sent personalization request for video Id: ${this.videoId}`);
return response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
},
});

if (!response.status) throw new ConfigurationError(response.message);
if (response.code != "200") throw new ConfigurationError(response.message);

$.export("$summary", `Video uploaded successfully with Id: ${response.video_id}`);
return response;
Expand Down
7 changes: 7 additions & 0 deletions components/hippo_video/hippo_video.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ export default {
...opts,
});
},
personalizeVideo(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/api/v1/me/video/bulk_personalize",
...opts,
});
},
uploadVideo(opts = {}) {
return this._makeRequest({
method: "POST",
Expand Down

0 comments on commit 69d10f7

Please sign in to comment.