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

added video upload by title and description #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spl0i7
Copy link

@spl0i7 spl0i7 commented Oct 20, 2018

No description provided.

@codecov
Copy link

codecov bot commented Oct 20, 2018

Codecov Report

Merging #9 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage    69.9%   69.85%   -0.05%     
==========================================
  Files          18       18              
  Lines        1409     1410       +1     
==========================================
  Hits          985      985              
- Misses        251      252       +1     
  Partials      173      173
Impacted Files Coverage Δ
vimeo/users.go 78.27% <0%> (ø) ⬆️
vimeo/videos.go 58.33% <0%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bfcee49...ba9b56a. Read the comment docs.

@@ -226,7 +226,8 @@ func (v Video) GetID() int {
// UploadVideoRequest specifies the optional parameters to the
// uploadVideo method.
type UploadVideoRequest struct {
FileName string `json:"file_name"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file_name required field for replace video

@@ -558,15 +558,15 @@ func (s *UsersService) GetVideo(uid string, vid int, opt ...CallOption) (*Video,
// Passing the empty string will edit authenticated user.
//
// Vimeo API docs: https://developer.vimeo.com/api/playground/users/%7Buser_id%7D/videos
func (s *UsersService) UploadVideo(uid string, file *os.File) (*Video, *Response, error) {
func (s *UsersService) UploadVideo(uid, title, description string, file *os.File) (*Video, *Response, error) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe create UploadVideoWithTitle or the like for save backward compatibility

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

Successfully merging this pull request may close these issues.

2 participants