Group
Extension

Matches 8

Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/scripts/generate_classes.pl ( view source; MetaCPAN )
#!/usr/bin/env perl

use JSON::XS;
use Template;
use Data::Dumper;
use feature qw(say);

open(FI,"data/endpoints.json");
my $data = JSON::XS::decode_json(join("",<FI>));
my $tt = Template->new();
fore
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/lib/Imgur/API/Endpoint/Gallery.pod ( view source; MetaCPAN )
mages in the gallery. For example the main gallery is https://api.imgur.com/3/gallery/hot/viral/0.json

=back

B<Parameters>

=over 4


=item *
 C<sort> I<optional>

viral | top | time | rising (only 
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/scripts/scrape_endpoints.pl ( view source; MetaCPAN )

use strict;
use feature qw(say);
use Web::Scraper;
use URI;
use Data::Dumper;
use JSON::XS;
use HTML::TreeBuilder::LibXML;
use LWP::UserAgent;
use HTTP::Message;
use Template;

my $template = Templat
q('$_')} @urlparams_opt),
		};
		push(@{$api->{$endpoint}},$details);
	}
}

my $json =  JSON::XS->new->pretty;
say $json->encode($api);


sub get_page {
	my ($url) = @_;

	my $ua = LWP::UserAgent->new
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/scripts/scrape_models.pl ( view source; MetaCPAN )
se Data::Dumper;
use JSON::XS;
use HTML::TreeBuilder::LibXML;
use LWP::UserAgent;
use HTTP::Message;
use Template;
use Try::Tiny;

my $template = Template->new();

my $json = JSON::XS->new->pretty;

m
ok_down(_tag=>'div',class=>'textbox');

	my ($example) = ($content->look_down(_tag=>"div",class=>"json"));
	if ($example) {
		my $ext = $example->as_text;
		$ext=~s/\n//g;
		$ext=~s/\s{2,}//g;
		$ext=
t=~s/[^'|"](\w+):[^\/]/"$1":/g;
		$ext=~s/""/","/g;

		
			
		try {	
			$res->{example} = $json->encode($json->decode($ext));
		} catch {		
			$res->{example} = $example->as_text;
		};
	}

	$res->{des
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/scripts/generate_model_pod.pl ( view source; MetaCPAN )
#!/usr/bin/env perl

use JSON::XS;
use Template;
use Data::Dumper;
use feature qw(say);

open(FI,"data/models.json");
my $data = JSON::XS::decode_json(join("",<FI>));
my $tt = Template->new();
foreach
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/lib/Imgur/API/Response.pm ( view source; MetaCPAN )
use strict;

sub is_success { 1; }

sub new {
	my ($class,$json) = @_;

	my $this = $json->{data};
	if (ref($this) ne "HASH") {
		$this={data=>$json->{data}};
	}

	return bless $this,$class;
}

1;

	
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/lib/Imgur/API.pm ( view source; MetaCPAN )
mgur::API::Stats;
use Data::Dumper;
use LWP::UserAgent;
use HTTP::Message;
use HTTP::Request;
use JSON::XS;
use URI::Escape;

use Moo;

has client_secret=>(is=>'ro');
has client_id=>(is=>'ro',required
PI::Stats->new();});

sub request {
	my ($this,$path,$method,$params) = @_;

	$params->{_format}="json";

	$this->ua->agent("Imgur::API/0.0,1");

	my $auth;
	if ($this->access_token) {
		$auth="Bearer
cation/json") {
		$this->stats->update($response);
		my $json = JSON::XS::decode_json($response->decoded_content);
		if  (!$json->{success}) {
			my $e =  Imgur::API::Exception->new(code=>$json->{stat
Imgur-API ( M/ML/MLHOLLEN/Imgur-API-0.1.3.tar.gz, MLHOLLEN, 2017; MetaCPAN )
Imgur-API/scripts/generate_pod.pl ( view source; MetaCPAN )
#!/usr/bin/env perl

use JSON::XS;
use Template;
use Data::Dumper;
use feature qw(say);

open(FI,"data/endpoints.json");
my $data = JSON::XS::decode_json(join("",<FI>));
my $tt = Template->new();
fore

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.