How to Connect Block.io API via a Heroku App
Table of contents
Are you trying to connect Block.io API via your Heroku app? You’ve found the right article.
Here is an example of how to use block.io with a proxy:
https://github.com/BlockIo/gem-block-io/blob/master/examples/proxy.rb
You would need to modify that example as such:
proxy = URI(ENV["QUOTAGUARDSTATIC_URL"])
blockio = BlockIo::Client.new(:api_key => ENV['API_KEY'], :pin => ENV['PIN'], :version => 2, :proxy => {
hostname: proxy.host,
port: proxy.port,
username: proxy.user,
password: proxy.password
}
)
If you’re still having issues, please contact us at Support so we can help!