Skip to content

Commit

Permalink
Merge pull request #10 from hipsterelitist/master
Browse files Browse the repository at this point in the history
Peg VimeoMe2 at version 3.2 of the Vimeo API
  • Loading branch information
bo-oz authored Apr 1, 2018
2 parents 6652727 + 7dc2c82 commit 4e8515c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/vimeo_me2/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ def get_object

def request(url=@base_uri, method:'get', code: 200, headers:nil, body:nil, query:nil)
@client.body = body
# Vimeo API version 3.4 contains some breaking changes to things like upload
# The endpoints implemented by VimeoMe2 all seem to work up to at least version 3.2
# https://developer.vimeo.com/api/changelog#34
@client.add_header(
'Accept',
'application/vnd.vimeo.*+json;version=3.2',
)
@client.add_headers(headers)
@client.add_queries(query)
@client.make_http_request(method, url, code)
Expand Down

0 comments on commit 4e8515c

Please sign in to comment.