Hi guys i'm new on RoR and have an question.
I'm trying to integrate an API from Coinmarketcap. I had an good start but now i have an problem with certificate verify failed.
For sure i researched about it and found this: RestClient::SSLCertificateNotVerified: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
but it didn't solve my problem.
Here my Code:
require 'rubygems'
require 'httparty'
url = 'https://api.coinmarketcap.com/v2/listings/'
response = HTTParty.get(url)
response.parsed_response
class Coinmarketcap
include HTTParty
base_uri 'api.coinmarketcap.com'
def listings
self.class.get('/v2/listings/')
end
end
coinmarketcap = Coinmarketcap.new
puts coinmarketcap.listings