Giter VIP home page Giter VIP logo

cloudflare-client's People

Contributors

pwr22 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

cloudflare-client's Issues

Handroll .travis.yml

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

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.

Invalid Input - missing 'act' param

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

Use Moo

Unless Moose features are needed

Does not work with current version of Moo (March release)

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.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.