2 parents afb90be + 8fa4625 commit 9c1f5acCopy full SHA for 9c1f5ac
1 file changed
lib/tweetkit/connection.rb
@@ -27,7 +27,7 @@ def request(method, endpoint, data, **options)
27
if auth_type == 'oauth1'
28
conn.request :oauth, consumer_key: @consumer_key, consumer_secret: @consumer_secret
29
else
30
- conn.authorization :Bearer, @bearer_token
+ conn.request :authorization, 'Bearer', @bearer_token
31
end
32
33
response = connection.get(url)
0 commit comments