Rails. Upload videos to Vimeo using the Vimeo API

I am trying to upload videos to my Vimeo account from my RoR 5
application using the Vimeo api and the option “Resumable HTTP PUT
uploads”:
https://developer.vimeo.com/api/upload/videos#resumable-http-put-uploads

For this I’am using paperclip to upload the video to my application and
after I want to do a multipart put request to send the file with the
“Content-Length:” “Content-Type:” headers as specify the API
documentation, but I don’t have idea how to send the video file via put
request. Any help?.
Thanks in advance.