lib/vkontakte_api/api.rb in vkontakte_api-1.4.3 vs lib/vkontakte_api/api.rb in vkontakte_api-1.4.4
- old
+ new
@@ -26,17 +26,17 @@
def connection(options = {})
url = options.delete(:url)
token = options.delete(:token)
Faraday.new(url, VkontakteApi.faraday_options) do |builder|
- builder.request :oauth2, token unless token.nil?
+ builder.request :oauth2, token, token_type: 'param' unless token.nil?
builder.request :multipart
builder.request :url_encoded
builder.request :retry, VkontakteApi.max_retries
builder.response :vk_logger
builder.response :mashify
- builder.response :oj, preserve_raw: true
+ builder.response :multi_json, preserve_raw: true
builder.adapter VkontakteApi.adapter
end
end
end