in reply to Re: LWP::UserAgent Alternatives for API data
in thread LWP::UserAgent Alternatives for API data
I think marto's reply to a similar question from me is relevant: Re: polishing up a json fetching script for weather data.
# the API docs says you must identify yourself, please make this somet +hing legit my $name = '(example.com, contact@example.com)'; my $ua = Mojo::UserAgent->new; $ua->transactor->name( $name ); # get JSON response my $json = $ua->get( $url )->res->json->{properties};
I wonder if we're looking at the same API...are you shy to post your source?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: LWP::UserAgent Alternatives for API data
by johnfl68 (Scribe) on Jul 07, 2020 at 15:07 UTC | |
by Fletch (Bishop) on Jul 07, 2020 at 15:45 UTC | |
by marto (Cardinal) on Jul 07, 2020 at 16:10 UTC | |
by johnfl68 (Scribe) on Jul 07, 2020 at 23:23 UTC | |
by marto (Cardinal) on Jul 10, 2020 at 08:03 UTC |
In Section
Seekers of Perl Wisdom