I cannot seem to get anything to work with the tumblr_client gem in ruby.
I've tried:
require 'tumblr_client'
Tumblr.configure do |config|
config.consumer_key = "cKEY"
config.consumer_secret = "cSECRET"
config.oauth_token = "oTOKEN"
config.oauth_token_secret = "oSECRET"
end
client = Tumblr::Client.new
client.info
And:
require 'tumblr_client'
client = Tumblr::Client.new({
:consumer_key => 'cKEY',
:consumer_secret => 'cSECRET',
:oauth_token => 'oTOKEN',
:oauth_token_secret => 'oSECRET'
})
client.info
But both return with faraday ssl errors, this one from a call client.dashboard:
Faraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `connect'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
from C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `connect'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:851:in `start'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:1367:in `request'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:1126:in `get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:80:in `perform_request'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:40:in `block in call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:32:in `call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday_middleware-0.9.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/request/url_encoded.rb:15:in `call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/request/multipart.rb:14:in `call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday_middleware-0.9.1/lib/faraday_middleware/request/oauth.rb:42:in `call'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/rack_builder.rb:139:in `build_response'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/connection.rb:377:in `run_request'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/faraday-0.9.1/lib/faraday/connection.rb:140:in `get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tumblr_client-0.8.5/lib/tumblr/request.rb:8:in `get_response'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tumblr_client-0.8.5/lib/tumblr/request.rb:26:in `get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tumblr_client-0.8.5/lib/tumblr/user.rb:11:in `dashboard'
from (irb):13
from C:/Ruby200-x64/bin/irb:12:in `<main>'irb(main):014:0>
Here are my faraday and tumblr_cleint versions
faraday (0.9.1)
faraday_middleware (0.9.1)
tumblr_client (0.8.5)
Can anyone help me? I've been struggling with this for a couple days now and I cant seem to get anything to work.