in reply to Re: bitcoin price from command line
in thread bitcoin price from command line
But I got the following error :#!/usr/bin/perl -w use feature 'say'; use Mojo::UserAgent; my $ua = Mojo::UserAgent->new; my $coinbaseURL = 'https://api.coindesk.com/v1/bpi/currentprice/usd.js +on'; my $value = $ua->get( $coinbaseURL )->result->json->{bpi}{USD}{rate}; #say "Bitcoin Price (USD): $value"; print "Content-Type: text/html\n\n"; print "Bitcoin Price (USD): $value";
EDIT : After upgrading IO::Socket::SSL it's work fine thanks you guys[error] [client 127.0.0.1] IO::Socket::SSL 2.009+ required for TLS sup +port at /home/alexandre/apache/cgi-bin/helloWorld.cgi line 10.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: bitcoin price from command line
by marto (Cardinal) on Jan 08, 2019 at 13:07 UTC |