pwr22 / cloudflare-client Goto Github PK
View Code? Open in Web Editor NEWCloudFlare::Client Perl module
Home Page: https://metacpan.org/pod/CloudFlare::Client
CloudFlare::Client Perl module
Home Page: https://metacpan.org/pod/CloudFlare::Client
Provide a way to specifying the API version wanted
Using a Dist::Zilla plugin to do this is a bit overkill and note really necessary. Additionally it doesn't really make sense for the module build tool to be writing bits of the module build infra
JSON::Any is being phased out in favour of JSON::MaybeXS, which handles the edge cases more gracefully - you probably want to switch to that, unless you rely on some of the legacy stuff (e.g. JSON::DWIM and ::Syck support) in JSON::Any.
per #2 this lib no longer works.
Or some other more lightweight module
Seems like your currect code that on MetaCPAN doesn't work.
When I trying to output list of zones that is available for managing under my account
use Data::Dumper;
use CloudFlare::Client;
my $api = CloudFlare::Client->new(
user => '[email protected]',
apikey => '11111111111111111111111111' # of course in real script I substitute user and apikey to real
);
my $z = $api->zones;
warn Dumper $z;
i got:
Invalid Input - missing 'act' param
Trace begun at /usr/local/share/perl/5.18.2/CloudFlare/Client.pm line 65
CloudFlare::Client::_apiCall('CloudFlare::Client=HASH(0x9b1dc0c)', 'zones') called at /usr/local/share/perl/5.18.2/CloudFlare/Client.pm line 77
CloudFlare::Client::AUTOLOAD('CloudFlare::Client=HASH(0x9b1dc0c)') called at clf.pl line 28
Unless Moose features are needed
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Can't call method "add_attribute" on an undefined value at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 169.
Compilation failed in require at /usr/local/share/perl/5.22.1/CloudFlare/Client.pm line 15.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.22.1/CloudFlare/Client.pm line 15.
Build tests also fail:
Building and testing CloudFlare-Client-v0.55.4
cp lib/CloudFlare/Client.pm blib/lib/CloudFlare/Client.pm
cp lib/CloudFlare/Client/Exception/Upstream.pm blib/lib/CloudFlare/Client/Exception/Upstream.pm
cp lib/CloudFlare/Client/Types.pm blib/lib/CloudFlare/Client/Types.pm
cp lib/CloudFlare/Client/Exception/Connection.pm blib/lib/CloudFlare/Client/Exception/Connection.pm
Manifying 4 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'CloudFlare/Client.pm loaded ok'
# at t/00-compile.t line 40.
# got: '65280'
# expected: '0'
Can't call method "add_attribute" on an undefined value at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 169.
Compilation failed in require at /root/.cpanm/work/1496245968.10663/CloudFlare-Client-v0.55.4/blib/lib/CloudFlare/Client.pm line 15.
BEGIN failed--compilation aborted at /root/.cpanm/work/1496245968.10663/CloudFlare-Client-v0.55.4/blib/lib/CloudFlare/Client.pm line 15.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.