From 3c6af40f71811346f6fa64f604465e14b0703b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Wei=C3=9F?= Date: Fri, 22 Jun 2018 22:30:14 +0200 Subject: [PATCH] Update README.md --- README.md | 78 +++++++------------------------------------------------ 1 file changed, 10 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 236f38a..2cd2fff 100755 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Add this dependency to your pom.xml to use **bananaj** in your project. com.github.alexanderwe bananaj - 1.2.4-alpha + 0.5.0 ``` @@ -103,7 +103,7 @@ fileManager.upload("folder_id","filename", myFile); ## Download a file To download a file from the MailChimp File Manager you have to specifiy the file you want to download and the directory in which it should be saved after download. The file extension is set automatically. ``` -fileManager.getFileManagerFile("fileID").downloadFile("./") //Download a file in the current directory +fileManager.getFileManagerFile("fileID").download("./") //Download a file in the current directory ``` ## Methods @@ -121,75 +121,17 @@ Every endpoint supports GET, POST, and DELETE requests. So it is possible to ful - **"https://"+server+".api.mailchimp.com/3.0/file-manager/folders"** - **"https://"+server+".api.mailchimp.com/3.0/file-manager/files"** - -# Package structure -``` -|-- com.github.alexanderwe.bananaj.connection -| |-- Account.java -| |-- Connection.java -| `-- MailChimpConnection.java -|-- com.github.alexanderwe.bananaj.exceptions -| |-- EmailException.java -| |-- FileFormatException.java -| `-- SegmentException.java -|-- com.github.alexanderwe.bananaj.model -| |-- MailchimpObject.java -| |-- automation -| | |-- Automation.java -| | `-- AutomationStatus.java -| |-- campaign -| | |-- Bounce.java -| | |-- Campaign.java -| | |-- CampaignContent.java -| | |-- CampaignDefaults.java -| | |-- CampaignFolder.java -| | |-- CampaignSettings.java -| | |-- CampaignStatus.java -| | `-- CampaignType.java -| |-- conversation -| | `-- Conversation.java -| |-- filemanager -| | |-- FileManager.java -| | |-- FileManagerFile.java -| | `-- FileManagerFolder.java -| |-- list -| | |-- GrowthHistory.java -| | |-- MailChimpList.java -| | |-- member -| | | |-- Member.java -| | | |-- MemberActivity.java -| | | `-- MemberStatus.java -| | |-- mergefield -| | | |-- MergeField.java -| | | `-- MergeFieldOptions.java -| | `-- segment -| | |-- Condition.java -| | |-- MatchType.java -| | |-- Operator.java -| | |-- Options.java -| | |-- Segment.java -| | `-- SegmentType.java -| |-- report -| | |-- Click.java -| | |-- FacebookLikes.java -| | |-- Forward.java -| | |-- IndustryStats.java -| | |-- Open.java -| | |-- Report.java -| | `-- ReportListStats.java -| `-- template -| |-- Template.java -| |-- TemplateFolder.java -| `-- TemplateType.java -`-- com.github.alexanderwe.bananaj.utils - |-- DateConverter.java - |-- EmailValidator.java - `-- FileInspector.java -``` - # To do - Add missing edit function to the different endpoints +# Contributors + +Thanks a lot to all contributors: + +* (gscriver)[https://github.com/gscriver] +* (bphilipnyc)[https://github.com/bphilipnyc] +* (icu222much)[https://github.com/icu222much] + # License The MIT License (MIT)