diff --git a/lib/vimeo_me2/base.rb b/lib/vimeo_me2/base.rb index 8b80119..55812cd 100644 --- a/lib/vimeo_me2/base.rb +++ b/lib/vimeo_me2/base.rb @@ -15,7 +15,7 @@ def initialize token, api_version = "3.4" ["get", "post", "delete", "put","patch"].each do |method| define_method(method) do |url, **params| params[:method] = "#{method}" - request request_uri(url), params + request request_uri(url), **params end end diff --git a/lib/vimeo_me2/user/videos.rb b/lib/vimeo_me2/user/videos.rb index a6fc742..5d93bed 100644 --- a/lib/vimeo_me2/user/videos.rb +++ b/lib/vimeo_me2/user/videos.rb @@ -5,7 +5,7 @@ module Videos # Get a list of albums for the current user. # @param [Object] Arguments passed to http_request (optional keys include: headers, query) def get_video_list(**args) - get("/videos", args) + get("/videos", **args) end # Get one album by it's ID