-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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"` |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
No description provided.