Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding thumbnail to video #152

Closed
majdkilou opened this issue Mar 18, 2022 · 9 comments
Closed

adding thumbnail to video #152

majdkilou opened this issue Mar 18, 2022 · 9 comments

Comments

@majdkilou
Copy link

majdkilou commented Mar 18, 2022

hello, Im trying to make the requests that mentioned in uploading thumbnail https://developer.vimeo.com/api/upload/thumbnails#table-1
anyway I have a problem with getting the requests works in my backend repo, as I want to call the request from my frontend repo then.

@majdkilou
Copy link
Author

it seems vimeo.js has no support! still waiting some advise on my issue, specially with getting the upload link step.

@aaronm67
Copy link

Please isolate your issue and ask a question about that, we can't debug your entire app.

@majdkilou
Copy link
Author

yes my bad, I just want to ask which is the best way to do step 2 of Getting the upload link for the thumbnail. knowing that the "picture_uri" is : https://api.vimeo.com/videos/${videoCardId}/pictures

@aaronm67
Copy link

POST https://api.vimeo.com/videos/${videoCardId}/pictures

Will return a "link" field in the response, this is the upload link for the thumbnail.

@majdkilou
Copy link
Author

thanks for the advise, I did the post request but still getting status code 500 Internal Server Error,

const ThumbnailUploadlink = (res, req) => {
  const { videoId } = req.body;
  const clientServerOptions11 = {
    uri: `https://api.vimeo.com/videos/${videoId}/pictures/`,
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/vnd.vimeo.*+json;version=3.4',
      Authorization: getVimeoAuthorization(),
    },
  };
  request(clientServerOptions11, function (error, response) {
    if (error) {
      res.send(error);
    } else {
      res.send(response);
    }
  });
};

@aaronm67
Copy link

There is no trailing slash in the uri

@majdkilou
Copy link
Author

removed the trailing slash, still getting same status code.

@aaronm67
Copy link

You can probably try hard coding your video ID and authorization, the URI is looks fine. I'm going to close this issue, please open a support ticket, https://vimeo.com/help/contact - this isn't a library issue, it's not able to be debugged without your specific account and request information.

@karlhorky
Copy link
Contributor

Anyone who is coming here to try to create thumbnails from a frame of the video, you can check out my comment over here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants