Mail-Chimp3-0.04000755000155000036 013012654131 13040 5ustar00joshgopher000000000000README100644000155000036 61613012654131 13764 0ustar00joshgopher000000000000Mail-Chimp3-0.04 This archive contains the distribution Mail-Chimp3, version 0.04: An interface to mailchimp.com's RESTful Web API v3 using WEB::API This software is copyright (c) 2016 by Josh Lavin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v6.008. Changes100644000155000036 1554613012654131 14447 0ustar00joshgopher000000000000Mail-Chimp3-0.04================================================== Changes from 2015-11-16 00:00:00 +0000 to present. ================================================== ----------------------------------------- version 0.04 at 2016-11-15 18:47:50 +0000 ----------------------------------------- Change: be037896a16581ea3fa43c12685989420e59ce5e Author: Josh Lavin Date : 2016-11-15 10:45:22 +0000 add tests back Change: 5d32691a44d90a19ca3271363296a2646865ed13 Author: Josh Lavin Date : 2016-11-15 10:44:59 +0000 add contributors Change: 17af2fca307be44db0cd7c09c786d52575c22fff Author: Josh Lavin Date : 2016-11-15 10:23:43 +0000 Remove fake release Change: f65019d28a511cb1d905b24aed52ce479c11f40a Author: Josh Lavin Date : 2016-11-15 10:23:07 +0000 Revert "v0.04" (did not intend to push...) This reverts commit 6748b30230acd104d130b66c6835cd2cedb58a31. Change: 6748b30230acd104d130b66c6835cd2cedb58a31 Author: Josh Lavin Date : 2016-11-15 10:12:14 +0000 v0.04 Change: ac99c47e6b66e1f750bd0d949b1b21f304f4648f Author: Josh Lavin Date : 2016-11-15 09:48:54 +0000 Update tests Change: 51d20b12156247f225d18fcbc9c787bdcd045c2a Author: Josh Lavin Date : 2016-11-15 09:37:53 +0000 Add fake release configs Change: c8c7221fb4d0e47d8bf3237ad63ad06cbd04df4c Author: Josh Lavin Date : 2016-11-15 09:37:06 +0000 v0.03 ----------------------------------------- version 0.03 at 2016-11-15 17:35:12 +0000 ----------------------------------------- Change: e0ab21abb93496f318cb2f062c5c38e21e0b820f Author: Josh Lavin Date : 2016-11-15 09:35:12 +0000 Add batch_list to POD Change: 833df06908bb820a6ee41027bd674c68c39c57ee Author: Josh Lavin Date : 2016-11-15 08:50:02 +0000 Set minimum version for namespace::autoclean Change: 8edd5803476b2b843935866e7e4af97da1128a08 Author: Josh Lavin Date : 2016-11-15 08:48:32 +0000 Merge pull request #2 from karpet/master add batch_list endpoint Change: 13ef7cee879b4234d25744d5597e742a7ed836a6 Author: Peter Karman Date : 2016-11-11 16:09:02 +0000 add batch_list endpoint Change: 1431bd9d1432c5f1e80d5afbc0f116b9b762fe52 Author: Josh Lavin Date : 2016-08-11 10:36:47 +0000 v0.02 ----------------------------------------- version 0.02 at 2016-08-10 22:05:46 +0000 ----------------------------------------- Change: abea6e64f12c7edf9a6fe8b0c36f5399701f322d Author: Josh Lavin Date : 2016-08-10 15:05:46 +0000 Don't quote attributes if we don't need to Change: aec1c7f898334de7fb90b4e433565f070be5d60f Author: Josh Lavin Date : 2016-08-09 10:29:36 +0000 Add minimum Perl version Change: dac17ab7d250a78459615dd94bfa905a5a9e74ec Author: Josh Lavin Date : 2016-08-09 10:05:39 +0000 add META JSON Change: 7cc6324e95e81083915730610aa1f1772b87dbb0 Author: Josh Lavin Date : 2016-08-09 09:25:53 +0000 Merge branch 'own-decoder' Change: 7ce7fec3effd5bffa15116a8f569cc15f5058b77 Author: Josh Lavin Date : 2016-08-09 09:25:13 +0000 Use our own decoder - Need to be able to handle HTTP response of 204 No Content Change: 25a7b1fcdf02bc754710e4daf67a0073b75986a1 Author: Josh Lavin Date : 2016-08-04 16:46:32 +0000 Fix double-slashes in URI Change: 9bdc6ee4e833f9b1b5852400529f707dd5e8289c Author: Josh Lavin Date : 2016-08-04 16:46:20 +0000 dzil update Change: eae7010063308aca9ea63eb0df29e905a318aa5c Author: Josh Lavin Date : 2016-07-27 16:16:56 +0000 v0.01 ----------------------------------------- version 0.01 at 2016-07-27 23:15:37 +0000 ----------------------------------------- Change: 457ab31931b3d3398c8ad1650a91fb806a79a76b Author: Josh Lavin Date : 2016-07-27 16:15:37 +0000 fully implement all API endpoints Change: c4ba8a1f728be311db5f8bfb301a81b2f80874de Author: Josh Lavin Date : 2016-07-27 16:15:30 +0000 fallback for version Change: 27010ca7e180cbd032ebb1e60d1e9660ab11cbd7 Author: Josh Lavin Date : 2016-07-27 14:49:08 +0000 Use markdown readme, upload to cpan Change: 49e3c8853753d12fe24086cc209d08ed46b71793 Author: Josh Lavin Date : 2016-07-27 14:48:30 +0000 made README use markdown, not pod Change: 0f1c9039c4b715178d332c40a4dc132b41bf65fb Author: Josh Lavin Date : 2016-07-27 14:47:04 +0000 pod fixes Change: da3fd1f818e9e455a520b56df423510bfacc6ac5 Author: Josh Lavin Date : 2016-07-27 14:22:27 +0000 add dist.ini - excluding t/* tests for now, until I can figure out the LWP::Protocol::https problem Change: 8f0def149796a8f08575a015e91b702c5771fc2e Author: Josh Lavin Date : 2016-07-27 14:17:55 +0000 readme changes Change: 7270d5ae467b7eb602e253d2024eeca8c633a43d Author: Josh Lavin Date : 2016-07-27 14:17:36 +0000 Fix pod, use OurPkgVersion Change: ca0e69a9a397fabb12403536efe3607c5e18df2a Author: Josh Lavin Date : 2016-07-27 10:02:20 +0000 use Moo Change: 242ac437df27cdb02eaad612c7af4f6d5dae62cc Author: Josh Lavin Date : 2016-07-27 09:14:54 +0000 Namespace change Change: 57f6231c8a7ca792546fce392015b54e98bac204 Author: Josh Lavin Date : 2016-07-22 14:12:11 +0000 perltidy it up Change: 3440af8e729cbf048dc19f659c0b3162ad599c6b Author: Josh Lavin Date : 2016-07-22 13:57:58 +0000 flesh out docs Change: 5e741d8fdf0c71f1ecf6692afb62701a818c5610 Author: Josh Lavin Date : 2016-07-18 15:37:20 +0000 fix typo Change: 3737293a29062163acc95bb630beb2eae12a0c46 Author: Josh Lavin Date : 2016-07-18 15:36:57 +0000 sort methods in readme Change: 163a5cbefc63ededc8b7150f2804ced8dbd44aee Author: Josh Lavin Date : 2016-07-18 15:36:07 +0000 add name to readme Change: 8d2ebcfa84b9a14ebf6d4a71cb5dae634ebc4fe1 Author: Josh Lavin Date : 2016-07-18 15:34:09 +0000 sort methods in pod Change: 01148c1565d7a2ed1ebb1eb0a58ab70a03496499 Author: Josh Lavin Date : 2016-07-18 15:28:32 +0000 add README Change: 6e255b9a6792df6e194cad840e10a5750c73ca9b Author: Josh Lavin Date : 2016-07-18 15:22:02 +0000 Initial add ================ End of releases. ================ LICENSE100644000155000036 4364713012654131 14164 0ustar00joshgopher000000000000Mail-Chimp3-0.04This software is copyright (c) 2016 by Josh Lavin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2016 by Josh Lavin. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2016 by Josh Lavin. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End dist.ini100644000155000036 130113012654131 14560 0ustar00joshgopher000000000000Mail-Chimp3-0.04name = Mail-Chimp3 author = Josh Lavin license = Perl_5 copyright_holder = Josh Lavin copyright_year = 2016 [Git::NextVersion] first_version = 0.01 [ChangelogFromGit] file_name = Changes exclude_message = ^(forgot|typo) [Git::GatherDir] [Git::Check] allow_dirty = dist.ini allow_dirty = README.md [OurPkgVersion] [MetaJSON] [PodWeaver] [PodSyntaxTests] [PodCoverageTests] [Test::Perl::Critic] [AutoPrereqs] [@GitHub] bugs = 1 metacpan = 1 prompt_2fa = 1 [ReadmeAnyFromPod / ReadmePodInRoot] type = markdown filename = README.md location = root [@Filter] -bundle = @Basic -remove = GatherDir [Git::Tag] [Git::Commit] allow_dirty = README.md [Git::Push] META.yml100644000155000036 154613012654131 14400 0ustar00joshgopher000000000000Mail-Chimp3-0.04--- abstract: "An interface to mailchimp.com's RESTful Web API v3 using WEB::API" author: - 'Josh Lavin ' build_requires: Digest::MD5: '0' JSON: '0' Test::More: '0' strict: '0' warnings: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150001' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Mail-Chimp3 requires: Moo: '0' Types::Standard: '0' Web::API: '0' namespace::autoclean: '0.16' perl: '5.010001' strictures: '2' resources: bugtracker: https://github.com/jdigory/p5-Mail-Chimp3/issues homepage: http://metacpan.org/release/Mail-Chimp3/ repository: git://github.com/jdigory/p5-Mail-Chimp3.git version: '0.04' x_serialization_backend: 'YAML::Tiny version 1.69' MANIFEST100644000155000036 42113012654131 14227 0ustar00joshgopher000000000000Mail-Chimp3-0.04# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. Changes LICENSE MANIFEST META.json META.yml Makefile.PL README dist.ini lib/Mail/Chimp3.pm t/01_load.t t/02_basic.t t/03_live.t t/author-critic.t t/author-pod-coverage.t t/author-pod-syntax.t META.json100644000155000036 326313012654131 14546 0ustar00joshgopher000000000000Mail-Chimp3-0.04{ "abstract" : "An interface to mailchimp.com's RESTful Web API v3 using WEB::API", "author" : [ "Josh Lavin " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150001", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Mail-Chimp3", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Pod::Coverage::TrustPod" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" } }, "runtime" : { "requires" : { "Moo" : "0", "Types::Standard" : "0", "Web::API" : "0", "namespace::autoclean" : "0.16", "perl" : "5.010001", "strictures" : "2" } }, "test" : { "requires" : { "Digest::MD5" : "0", "JSON" : "0", "Test::More" : "0", "strict" : "0", "warnings" : "0" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/jdigory/p5-Mail-Chimp3/issues" }, "homepage" : "http://metacpan.org/release/Mail-Chimp3/", "repository" : { "type" : "git", "url" : "git://github.com/jdigory/p5-Mail-Chimp3.git", "web" : "https://github.com/jdigory/p5-Mail-Chimp3" } }, "version" : "0.04", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0217" } t000755000155000036 013012654131 13224 5ustar00joshgopher000000000000Mail-Chimp3-0.0401_load.t100644000155000036 6713012654131 14733 0ustar00joshgopher000000000000Mail-Chimp3-0.04/tuse Test::More; use_ok('Mail::Chimp3'); done_testing; 03_live.t100644000155000036 307313012654131 15015 0ustar00joshgopher000000000000Mail-Chimp3-0.04/tuse strict; use warnings; use Test::More; use JSON; use Digest::MD5 qw(md5_hex); BEGIN { plan skip_all => '$ENV{MAILCHIMP_APIKEY} not set, skipping live tests' unless defined $ENV{MAILCHIMP_APIKEY}; plan tests => 3; use_ok('Mail::Chimp3'); } my $apikey = $ENV{MAILCHIMP_APIKEY}; my $mailchimp = Mail::Chimp3->new( api_key => $apikey ); my $lists = $mailchimp->lists; my $list_id = $lists->{content}{lists}[0]->{id}; my %info1 = qw(email_address foo@foobar.com status subscribed); my %info2 = qw(email_address baz@quux.com status subscribed); my $batch = [ { method => 'POST', path => "lists/$list_id/members", body => encode_json(\%info1), }, { method => 'POST', path => "lists/$list_id/members", body => encode_json(\%info2), }, ]; #my $listBatchSubscribe_expected = { add_count => 2, error_count => 0, errors => [], update_count => 0 }; my $listBatchSubscribe = $mailchimp->add_batch( operations => $batch ); is( $listBatchSubscribe->{code}, 200, 'listBatchSubscribe succeeded' ); #my $listBatchUnsubscribe_expected = { success_count => 2, error_count => 0, errors => [] }; my $hash1 = md5_hex('foo@foobar.com'); my $hash2 = md5_hex('baz@quux.com'); my $listBatchUnsubscribe = $mailchimp->add_batch( operations => [ { method => 'DELETE', path => "lists/$list_id/members/$hash1", }, { method => 'DELETE', path => "lists/$list_id/members/$hash2", }, ] ); is( $listBatchUnsubscribe->{code}, 200, 'listBatchUnsubscribe succeeded' ); Makefile.PL100644000155000036 261213012654131 15074 0ustar00joshgopher000000000000Mail-Chimp3-0.04# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. use strict; use warnings; use 5.010001; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "An interface to mailchimp.com's RESTful Web API v3 using WEB::API", "AUTHOR" => "Josh Lavin ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Mail-Chimp3", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.010001", "NAME" => "Mail::Chimp3", "PREREQ_PM" => { "Moo" => 0, "Types::Standard" => 0, "Web::API" => 0, "namespace::autoclean" => "0.16", "strictures" => 2 }, "TEST_REQUIRES" => { "Digest::MD5" => 0, "JSON" => 0, "Test::More" => 0, "strict" => 0, "warnings" => 0 }, "VERSION" => "0.04", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Digest::MD5" => 0, "JSON" => 0, "Moo" => 0, "Test::More" => 0, "Types::Standard" => 0, "Web::API" => 0, "namespace::autoclean" => "0.16", "strict" => 0, "strictures" => 2, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); 02_basic.t100644000155000036 51013012654131 15107 0ustar00joshgopher000000000000Mail-Chimp3-0.04/tuse Test::More; BEGIN { use_ok('Mail::Chimp3'); }; my $apikey = $ENV{MAILCHIMP_APIKEY} || 'bogus-us1'; my $mailchimp = Mail::Chimp3->new( api_key => $apikey ); isa_ok($mailchimp, 'Mail::Chimp3'); is($mailchimp->base_url, 'https://' . $mailchimp->datacenter . '.api.mailchimp.com/3.0', 'base_url as expected'); done_testing; author-critic.t100644000155000036 63713012654131 16314 0ustar00joshgopher000000000000Mail-Chimp3-0.04/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } use strict; use warnings; use Test::More; use English qw(-no_match_vars); eval "use Test::Perl::Critic"; plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; all_critic_ok(); Mail000755000155000036 013012654131 14411 5ustar00joshgopher000000000000Mail-Chimp3-0.04/libChimp3.pm100644000155000036 10363313012654131 16300 0ustar00joshgopher000000000000Mail-Chimp3-0.04/lib/Mailpackage Mail::Chimp3; use 5.010001; use Moo; use strictures 2; use namespace::autoclean 0.16; use Types::Standard qw/ Num Str /; with 'Web::API'; # ABSTRACT: An interface to mailchimp.com's RESTful Web API v3 using WEB::API our $VERSION = '0.04'; # VERSION: generated by DZP::OurPkgVersion has endpoints => ( is => 'rw', default => sub { { root => { path => '/' }, # authorized apps authorized_apps => { path => 'authorized-apps' }, authorized_app => { path => 'authorized-apps/:app_id' }, add_authorized_app => { method => 'POST', path => 'authorized-apps', mandatory => [ 'client_id', 'client_secret', ], }, # automations automations => { path => 'automations' }, automation => { path => 'automations/:workflow_id' }, pause_automation => { method => 'POST', path => 'automations/:workflow_id/actions/pause-all-emails', }, start_automation => { method => 'POST', path => 'automations/:workflow_id/actions/start-all-emails', }, # automation emails automation_emails => { path => 'automations/:workflow_id/emails' }, automation_email => { path => 'automations/:workflow_id/emails/:workflow_email_id' }, pause_automation_email => { method => 'POST', path => 'automations/:workflow_id/emails/:workflow_email_id/actions/pause', }, start_automation_email => { method => 'POST', path => 'automations/:workflow_id/emails/:workflow_email_id/actions/start', }, add_automation_subscriber => { method => 'POST', path => 'automations/:workflow_id/emails/:workflow_email_id/queue', mandatory => ['email_address'], }, automation_subscribers => { path => 'automations/:workflow_id/emails/:workflow_email_id/queue', }, automation_subscriber => { path => 'automations/:workflow_id/emails/:workflow_email_id/queue/:subscriber_hash', }, remove_automation_subscriber => { method => 'POST', path => 'automations/:workflow_id/removed-subscribers', mandatory => ['email_address'], }, removed_automation_subscribers => { path => 'automations/:workflow_id/removed-subscribers' }, # batch batches => { path => 'batches' }, batch => { path => 'batches/:batch_id' }, add_batch => { method => 'POST', path => 'batches', mandatory => ['operations'], }, delete_batch => { method => 'DELETE', path => 'batches/:batch_id', }, # campaign folders campaign_folders => { path => 'campaign-folders' }, campaign_folder => { path => 'campaign-folders/:folder_id' }, add_campaign_folder => { method => 'POST', path => 'campaign-folders', mandatory => ['name'], }, update_campaign_folder => { method => 'PATCH', path => 'campaign-folders/:folder_id', mandatory => ['name'], }, delete_campaign_folder => { method => 'DELETE', path => 'campaign-folders/:folder_id', }, # campaigns campaigns => { path => 'campaigns' }, campaign => { path => 'campaigns/:campaign_id' }, add_campaign => { method => 'POST', path => 'campaigns', mandatory => [ 'type', 'settings' ], }, update_campaign => { method => 'PATCH', path => 'campaigns/:campaign_id', mandatory => [ 'type', 'settings' ], }, delete_campaign => { method => 'DELETE', path => 'campaigns/:campaign_id', }, cancel_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/cancel-send', }, pause_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/pause', }, replicate_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/replicate', }, resume_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/resume', }, schedule_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/schedule', mandatory => ['schedule_time'], }, send_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/send', }, test_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/test', mandatory => [ 'test_emails', 'send_type' ], }, unschedule_campaign => { method => 'POST', path => 'campaigns/:campaign_id/actions/unschedule', }, campaign_content => { path => 'campaigns/:campaign_id/content' }, set_campaign_content => { method => 'PUT', path => 'campaigns/:campaign_id/content', }, campaign_feedbacks => { path => 'campaigns/:campaign_id/feedback' }, campaign_feedback => { path => 'campaigns/:campaign_id/feedback/:feedback_id' }, add_campaign_feedback => { method => 'POST', path => 'campaigns/:campaign_id/feedback', mandatory => ['message'], }, update_campaign_feedback => { method => 'PATCH', path => 'campaigns/:campaign_id/feedback/:feedback_id', mandatory => ['message'], }, delete_campaign_feedback => { method => 'DELETE', path => 'campaigns/:campaign_id/feedback/:feedback_id', }, campaign_send_checklist => { path => 'campaigns/:campaign_id/send-checklist' }, # conversations conversations => { path => 'conversations' }, conversation => { path => 'conversations/:conversation_id' }, add_conversation_message => { method => 'POST', path => 'conversations/:conversation_id/messages', mandatory => [ 'from_email', 'read' ], }, conversation_messages => { path => 'conversation/:conversation_id/messages' }, conversation_message => { path => 'conversation/:conversation_id/messages/:message_id' }, # ecommerce stores stores => { path => 'ecommerce/stores' }, store => { path => 'ecommerce/stores/:store_id' }, add_store => { method => 'POST', path => 'ecommerce/stores', mandatory => [ 'id', 'list_id', 'name', 'currency_code', ], }, update_store => { method => 'PATCH', path => 'ecommerce/stores/:store_id', }, delete_store => { method => 'DELETE', path => 'ecommerce/stores/:store_id', }, # ecommerce carts carts => { path => 'ecommerce/stores/:store_id/carts' }, cart => { path => 'ecommerce/stores/:store_id/carts/:cart_id' }, add_cart => { method => 'POST', path => 'ecommerce/stores/:store_id/carts', mandatory => ['customer'], }, update_cart => { method => 'PATCH', path => 'ecommerce/stores/:store_id/carts/:cart_id', }, delete_cart => { method => 'DELETE', path => 'ecommerce/stores/:store_id/carts/:cart_id', }, # ecommerce cart lines cart_lines => { path => 'ecommerce/stores/:store_id/carts/:cart_id/lines' }, cart_line => { path => 'ecommerce/stores/:store_id/carts/:cart_id/lines/:line_id' }, add_cart_line => { method => 'POST', path => 'ecommerce/stores/:store_id/carts/:cart_id/lines', mandatory => [ qw/ id product_id product_variant_id quantity price / ], }, update_cart_line => { method => 'PATCH', path => 'ecommerce/stores/:store_id/carts/:cart_id/lines/:line_id', }, delete_cart_line => { method => 'DELETE', path => 'ecommerce/stores/:store_id/carts/:cart_id/lines/:line_id', }, # ecommerce customers customers => { path => 'ecommerce/stores/:store_id/customers' }, customer => { path => 'ecommerce/stores/:store_id/customers/:customer_id' }, add_customer => { method => 'POST', path => 'ecommerce/stores/:store_id/customers', mandatory => [ qw/ id email_address opt_in_status / ], }, update_customer => { method => 'PATCH', path => 'ecommerce/stores/:store_id/customers/:customer_id', }, upsert_customer => { method => 'PUT', path => 'ecommerce/stores/:store_id/customers/:customer_id', mandatory => [ qw/ id email_address opt_in_status / ], }, delete_customer => { method => 'DELETE', path => 'ecommerce/stores/:store_id/customers/:customer_id', }, # ecommerce orders orders => { path => 'ecommerce/stores/:store_id/orders' }, order => { path => 'ecommerce/stores/:store_id/orders/:order_id' }, add_order => { method => 'POST', path => 'ecommerce/stores/:store_id/orders', mandatory => [ qw/ id customer currency_code order_total lines / ], }, update_order => { method => 'PATCH', path => 'ecommerce/stores/:store_id/orders/:order_id', }, delete_order => { method => 'DELETE', path => 'ecommerce/stores/:store_id/orders/:order_id', }, # ecommerce order lines order_lines => { path => 'ecommerce/stores/:store_id/orders/:order_id/lines' }, order_line => { path => 'ecommerce/stores/:store_id/orders/:order_id/lines/:line_id' }, add_order_line => { method => 'POST', path => 'ecommerce/stores/:store_id/orders/:order_id/lines', mandatory => [ qw/ id product_id product_variant_id quantity price / ], }, update_order_line => { method => 'PATCH', path => 'ecommerce/stores/:store_id/orders/:order_id/lines/:line_id', }, delete_order_line => { method => 'DELETE', path => 'ecommerce/stores/:store_id/orders/:order_id/lines/:line_id', }, # ecommerce products products => { path => 'ecommerce/stores/:store_id/products' }, product => { path => 'ecommerce/stores/:store_id/products/:product_id' }, add_product => { method => 'POST', path => 'ecommerce/stores/:store_id/products', mandatory => [ 'id', 'title', 'variants', ], }, delete_product => { method => 'DELETE', path => 'ecommerce/stores/:store_id/products/:product_id', }, # ecommerce product variants variants => { path => 'ecommerce/stores/:store_id/products/:product_id/variants' }, variant => { path => 'ecommerce/stores/:store_id/products/:product_id/variants/:variant_id' }, add_variant => { method => 'POST', path => 'ecommerce/stores/:store_id/products/:product_id/variants', mandatory => [ 'id', 'title', ], }, update_variant => { method => 'PATCH', path => 'ecommerce/stores/:store_id/products/:product_id/variants/:variant_id', }, upsert_variant => { method => 'PUT', path => 'ecommerce/stores/:store_id/products/:product_id/variants/:variant_id', mandatory => [ 'id', 'title', ], }, delete_variant => { method => 'DELETE', path => 'ecommerce/stores/:store_id/products/:product_id/variants/:variant_id', }, # file manager files file_manager_files => { path => 'file-manager/files' }, file_manager_file => { path => 'file-manager/files/:file_id' }, add_file_manager_file => { method => 'POST', path => 'file-manager/files', mandatory => [ 'name', 'file_data' ], }, update_file_manager_file => { method => 'PATCH', path => 'file-manager/files/:file_id', mandatory => [ 'name', 'file_data' ], }, delete_file_manager_file => { method => 'DELETE', path => 'file-manager/files/:file_id', }, # file manager folders file_manager_folders => { path => 'file-manager/folders' }, file_manager_folder => { path => 'file-manager/folders/:folder_id' }, add_file_manager_folder => { method => 'POST', path => 'file-manager/folders', mandatory => ['name'], }, update_file_manager_folder => { method => 'PATCH', path => 'file-manager/folders/:folder_id', mandatory => ['name'], }, delete_file_manager_folder => { method => 'DELETE', path => 'file-manager/folders/:folder_id', }, # lists lists => { path => 'lists' }, list => { path => 'lists/:list_id' }, add_list => { method => 'POST', path => 'lists', mandatory => [ qw/ name contact permission_reminder campaign_defaults email_type_option / ], }, update_list => { method => 'PATCH', path => 'lists/:list_id', mandatory => [ qw/ name contact permission_reminder campaign_defaults email_type_option / ], }, delete_list => { method => 'DELETE', path => 'lists/:list_id', }, batch_list => { method => 'POST', path => 'lists/:list_id', mandatory => ['members'], }, abuse_reports => { path => 'lists/:list_id/abuse-reports' }, abuse_report => { path => 'lists/:list_id/abuse-reports/:report_id' }, list_activity => { path => 'lists/:list_id/activity' }, list_clients => { path => 'lists/:list_id/clients' }, growth_history => { path => 'lists/:list_id/growth-history' }, growth_history_month => { path => 'lists/:list_id/growth-history/:month' }, # list interests interest_categories => { path => 'lists/:list_id/interest-categories' }, interest_category => { path => 'lists/:list_id/interest-categories/:interest_category_id' }, add_interest_category => { method => 'POST', path => 'lists/:list_id/interest-categories', mandatory => [ 'title', 'type' ], }, update_interest_category => { method => 'PATCH', path => 'lists/:list_id/interest-categories/:interest_category_id', mandatory => [ 'title', 'type' ], }, delete_interest_category => { method => 'DELETE', path => 'lists/:list_id/interest-categories/:interest_category_id', }, interests => { path => 'lists/:list_id/interest-categories/:interest_category_id/interests' }, interest => { path => 'lists/:list_id/interest-categories/:interest_category_id/interests/:interest_id' }, add_interest => { method => 'POST', path => 'lists/:list_id/interest-categories/:interest_category_id/interests', mandatory => ['name'], }, update_interest => { method => 'PATCH', path => 'lists/:list_id/interest-categories/:interest_category_id/interests/:interest_id', mandatory => ['name'], }, delete_interest => { method => 'DELETE', path => 'lists/:list_id/interest-categories/:interest_category_id/interests/:interest_id', }, # list members members => { path => 'lists/:list_id/members' }, member => { path => 'lists/:list_id/members/:subscriber_hash' }, add_member => { method => 'POST', path => 'lists/:list_id/members', mandatory => [ 'status', 'email_address', ], }, update_member => { method => 'PATCH', path => 'lists/:list_id/members/:subscriber_hash', }, upsert_member => { method => 'PUT', path => 'lists/:list_id/members/:subscriber_hash', mandatory => [ qw/ email_address status_if_new / ], }, delete_member => { method => 'DELETE', path => 'lists/:list_id/members/:subscriber_hash', }, member_activity => { path => 'lists/:list_id/members/:subscriber_hash/activity' }, member_goals => { path => 'lists/:list_id/members/:subscriber_hash/goals' }, # list member notes member_notes => { path => 'lists/:list_id/members/:subscriber_hash/notes' }, member_note => { path => 'lists/:list_id/members/:subscriber_hash/notes/:note_id' }, add_member_note => { method => 'POST', path => 'lists/:list_id/members/:subscriber_hash/notes', mandatory => ['note'], }, update_member_note => { method => 'POST', path => 'lists/:list_id/members/:subscriber_hash/notes/:note_id', mandatory => ['note'], }, delete_member_note => { method => 'DELETE', path => 'lists/:list_id/members/:subscriber_hash/notes/:note_id', }, # list merge fields merge_fields => { path => 'lists/:list_id/merge-fields' }, merge_field => { path => 'lists/:list_id/merge-fields/:merge_id' }, add_merge_field => { method => 'POST', path => 'lists/:list_id/merge-fields', mandatory => [ 'name', 'type', ], }, update_merge_field => { method => 'PATCH', path => 'lists/:list_id/merge-fields/:merge_id', }, delete_merge_field => { method => 'DELETE', path => 'lists/:list_id/merge-fields/:merge_id', }, # list segments segments => { path => 'lists/:list_id/segments' }, segment => { path => 'lists/:list_id/segments/:segment_id' }, add_segment => { method => 'POST', path => 'lists/:list_id/segments', mandatory => ['name'], }, update_segment => { method => 'PATCH', path => 'lists/:list_id/segments/:segment_id', }, delete_segment => { method => 'DELETE', path => 'lists/:list_id/segments/:segment_id', }, segment_members => { path => 'lists/:list_id/segments/:segment_id/members' }, add_segment_member => { method => 'POST', path => 'lists/:list_id/segments/:segment_id/members' }, delete_segment_member => { method => 'DELETE', path => 'lists/:list_id/segments/:segment_id/members/:subscriber_hash' }, # list other twitter_cards => { path => 'lists/:list_id/twitter-lead-gen-cards' }, twitter_card => { path => 'lists/:list_id/twitter-lead-gen-cards/:twitter_card_id' }, add_twitter_card => { method => 'POST', path => 'lists/:list_id/twitter-lead-gen-cards', mandatory => [ qw/ name title cta_text privacy_policy_url image_url twitter_account_id / ], }, webhooks => { path => 'lists/:list_id/webhooks' }, webhook => { path => 'lists/:list_id/webhooks/:webhook_id' }, add_webhook => { method => 'POST', path => 'lists/:list_id/webhooks' }, delete_webhook => { method => 'DELETE', path => 'lists/:list_id/webhooks/:webhook_id' }, # reports reports => { path => 'reports' }, report => { path => 'reports/:campaign_id' }, abuse_reports => { path => 'reports/:campaign_id/abuse-reports' }, abuse_report => { path => 'reports/:campaign_id/abuse-reports/:report_id' }, advice => { path => 'reports/:campaign_id/advice' }, click_details => { path => 'reports/:campaign_id/click-details' }, click_detail => { path => 'reports/:campaign_id/click-details/:link_id' }, click_details_members => { path => 'reports/:campaign_id/click-details/:link_id/members' }, click_details_member => { path => 'reports/:campaign_id/click-details/:link_id/members/:subscriber_hash' }, domain_performance => { path => 'reports/:campaign_id/domain-performance' }, eepurl => { path => 'reports/:campaign_id/eepurl' }, email_activity => { path => 'reports/:campaign_id/email-activity' }, member_email_activity => { path => 'reports/:campaign_id/email-activity/:subscriber_hash' }, locations => { path => 'reports/:campaign_id/locations' }, sent_to => { path => 'reports/:campaign_id/sent-to' }, member_sent_to => { path => 'reports/:campaign_id/sent-to/:subscriber_hash' }, sub_reports => { path => 'reports/:campaign_id/sub-reports' }, unsubscribed => { path => 'reports/:campaign_id/unsubscribed' }, member_unsubscribed => { path => 'reports/:campaign_id/unsubscribed/:subscriber_hash' }, # template folders template_folders => { path => 'template-folders' }, template_folder => { path => 'template-folders/:folder_id' }, add_template_folder => { method => 'POST', path => 'template-folders', mandatory => ['name'], }, update_template_folder => { method => 'PATCH', path => 'template-folders/:folder_id', mandatory => ['name'], }, delete_template_folder => { method => 'DELETE', path => 'template-folders/:folder_id', }, # templates templates => { path => 'templates' }, template => { path => 'templates/:template_id' }, add_template => { method => 'POST', path => 'templates', mandatory => [ 'name', 'html' ], }, update_template => { method => 'PATCH', path => 'templates/:template_id', mandatory => [ 'name', 'html' ], }, delete_template => { method => 'DELETE', path => 'templates/:template_id', }, template_default_content => { path => 'templates/:template_id/default-content' }, }; }, ); has api_version => ( is => 'ro', isa => Num, default => sub { '3.0' }, ); has datacenter => ( is => 'lazy', isa => Str, default => sub { my $self = shift; if ($self->api_key) { my ($dc) = ( $self->api_key =~ /\-(\w+)$/ ); return $dc; } else { return 'us1'; } }, ); has '+decoder' => ( builder => 1, ); sub _build_decoder { my $self = shift; return sub { my ($content, $content_type) = @_; my $data = {}; return $data unless $content; for ($content_type) { /plain/ and do { chomp $content; $data = { text => $content }; }; /urlencoded/ and do { for (split /&/, $content) { my ($key, $value) = split /=/; $data->{ uri_unescape($key) } = uri_unescape($value); } }; /json/ and $data = $self->json->decode($content); /(xml|html)/ and $data = $self->xml->XMLin( $content, NoAttr => 0 ); } return $data; }; } sub commands { my ($self) = @_; return $self->endpoints; } sub BUILD { my ($self) = @_; $self->user_agent( __PACKAGE__ . ' ' . ($Mail::Chimp3::VERSION || '') ); $self->base_url( 'https://' . $self->datacenter . '.api.mailchimp.com/' . $self->api_version ); $self->auth_type('basic'); $self->user('anystring'); $self->content_type('application/json'); return $self; } 1; __END__ =pod =encoding UTF-8 =head1 NAME Mail::Chimp3 - An interface to mailchimp.com's RESTful Web API v3 using WEB::API =head1 VERSION version 0.04 =head1 SYNOPSIS This is for the MailChimp API v3.0. Please refer to the API documentation at L use Mail::Chimp3; my $mailchimp = Mail::Chimp3->new( api_key => $apikey, ); my $response = $mailchimp->add_store( store_id => '123', cart_id => '456', ); =head1 METHODS =over =item abuse_report =item abuse_reports =item add_authorized_app =item add_automation_subscriber =item add_batch =item add_campaign =item add_campaign_feedback =item add_campaign_folder =item add_cart =item add_cart_line =item add_conversation_message =item add_customer =item add_file_manager_file =item add_file_manager_folder =item add_interest =item add_interest_category =item add_list =item add_member =item add_member_note =item add_merge_field =item add_order =item add_order_line =item add_product =item add_segment =item add_segment_member =item add_store =item add_template =item add_template_folder =item add_twitter_card =item add_variant =item add_webhook =item advice =item authorized_app =item authorized_apps =item automation =item automation_email =item automation_emails =item automation_subscriber =item automation_subscribers =item automations =item batch =item batches =item batch_list =item campaign =item campaign_content =item campaign_feedback =item campaign_feedbacks =item campaign_folder =item campaign_folders =item campaign_send_checklist =item campaigns =item cancel_campaign =item cart =item cart_line =item cart_lines =item carts =item click_detail =item click_details =item click_details_member =item click_details_members =item conversation =item conversation_message =item conversation_messages =item conversations =item customer =item customers =item delete_batch =item delete_campaign =item delete_campaign_feedback =item delete_campaign_folder =item delete_cart =item delete_cart_line =item delete_customer =item delete_file_manager_file =item delete_file_manager_folder =item delete_interest =item delete_interest_category =item delete_list =item delete_member =item delete_member_note =item delete_merge_field =item delete_order =item delete_order_line =item delete_product =item delete_segment =item delete_segment_member =item delete_store =item delete_template =item delete_template_folder =item delete_variant =item delete_webhook =item domain_performance =item eepurl =item email_activity =item file_manager_file =item file_manager_files =item file_manager_folder =item file_manager_folders =item growth_history =item growth_history_month =item interest =item interest_categories =item interest_category =item interests =item list =item list_activity =item list_clients =item lists =item locations =item member =item member_activity =item member_email_activity =item member_goals =item member_note =item member_notes =item member_sent_to =item member_unsubscribed =item members =item merge_field =item merge_fields =item order =item order_line =item order_lines =item orders =item pause_automation =item pause_automation_email =item pause_campaign =item product =item products =item remove_automation_subscriber =item removed_automation_subscribers =item replicate_campaign =item report =item reports =item resume_campaign =item root =item schedule_campaign =item segment =item segment_members =item segments =item send_campaign =item sent_to =item set_campaign_content =item start_automation =item start_automation_email =item store =item stores =item sub_reports =item template =item template_default_content =item template_folder =item template_folders =item templates =item test_campaign =item twitter_card =item twitter_cards =item unschedule_campaign =item unsubscribed =item update_campaign =item update_campaign_feedback =item update_campaign_folder =item update_cart =item update_cart_line =item update_customer =item update_file_manager_file =item update_file_manager_folder =item update_interest =item update_interest_category =item update_list =item update_member =item update_member_note =item update_merge_field =item update_order =item update_order_line =item update_segment =item update_store =item update_template =item update_template_folder =item update_variant =item upsert_customer =item upsert_member =item upsert_variant =item variant =item variants =item webhook =item webhooks =back =head1 INTERNALS =over =item commands Required by Web::API =back =head2 BUILD basic configuration for the client API happens usually in the BUILD method when using Web::API =head1 BUGS Please report any bugs or feature requests on GitHub's issue tracker L. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Mail::Chimp3 You can also look for information at: =over 4 =item * GitHub repository L =back =head1 CONTRIBUTORS Peter Karman (pkarman) =head1 AUTHOR Josh Lavin =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2016 by Josh Lavin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut author-pod-syntax.t100644000155000036 45413012654131 17142 0ustar00joshgopher000000000000Mail-Chimp3-0.04/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); author-pod-coverage.t100644000155000036 53613012654131 17410 0ustar00joshgopher000000000000Mail-Chimp3-0.04/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. use Test::Pod::Coverage 1.08; use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });