Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Start support MailChimp API v2. #34

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Start support MailChimp API v2. #34

wants to merge 7 commits into from

Conversation

miguel250
Copy link
Owner

Fix: #33
Close: #25

@stefantalen
Copy link

Are you applying some kind of coding style?

If not, I'd be willing to make the bits of code that you've finished in this PR compatible with PSR-2.

I'm not really sure if I can just pick the code from the branch API-v2 you've created so let me know what you think.

@miguel250
Copy link
Owner Author

@stefantalen I am not sure yet but I can ping you I get the correct structure and standard.

@miguel250 miguel250 modified the milestone: v2 Oct 7, 2014
@stefantalen
Copy link

Looks like I can create a new PR based on the branch API-v2, for the file structure you could use PSR-4 since it already kind of has that structure now in the v2-branch.

@miguel250
Copy link
Owner Author

Yeah. You can give it a try. I want to keep all the endpoints in their own classes.

Thanks!


Miguel Perez

On Tue, Oct 7, 2014 at 7:35 PM, Stefan Talen notifications@github.com
wrote:

Looks like I can create a new PR based on the branch API-v2, for the file structure you could use PSR-4 since it already kind of has that structure now in the v2-branch.

Reply to this email directly or view it on GitHub:
#34 (comment)

@stefantalen
Copy link

Looks like a Symfony Bundle should have a recommended structure: http://symfony.com/doc/master/cookbook/bundles/best_practices.html

I guess there is no need for a src folder then.

@miguel250
Copy link
Owner Author

@stefantalen yeah the bundle was following before but they are make changes to the structure in symfony 3. Coming back from Python and Java I had been using src/ but if you see any reason not to use it I am up to changing it back.

It also looks like Symfony uses it too https://github.com/symfony/symfony.

@stefantalen
Copy link

@miguel250 I'm not considering the symfony/symfony as a pure bundle so I'm not sure if that applies to the structure.

In the end it doesn't really matter that much, let's keep it in the src-folder just to keep the focus on making this bundle work with the API

@medy36
Copy link

medy36 commented Oct 15, 2014

Hello,

i would like to know how i can contribute to this bundle. i really need to delete static segments. i tried to override the bundle by adding this function and it' s working fine

 /**
     * delete segment by ID
     * @return bool
     */
    public function listStaticSegmentDel($seg_id)
    {
        $payload = array(
                'id'    => $this->listId,
        'seg_id' => $seg_id,

        );
        $apiCall = 'listStaticSegmentDel';
        $data = $this->makeRequest($apiCall, $payload);
        return $data;
    }

i finally found the right URLs for all methodes http://apidocs.mailchimp.com/api/1.3/#listrelated

@medy36
Copy link

medy36 commented Oct 15, 2014

i have most of the methods needed implemented well in your bundle, tell me if i can contribute to your work. thanks

@stefantalen
Copy link

@miguel250 The composer.lock file should not be ignored https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file

@miguel250
Copy link
Owner Author

@stefantalen here says you can ignore it for libraries if you want since it doesn't do anything. https://getcomposer.org/doc/02-libraries.md#lock-file

@stefantalen
Copy link

@miguel250 Makes sense 👍

@TomSchillemans
Copy link

I kinda need this bundle, I was wondering if v2 is ready yet. I mean last time something updated was 28 days ago!

@evertharmeling
Copy link

Yeah would love to use the v2 version too, at least be able to subscribe to a list (and unsubscribe). Anyway we could help otherwise?

@alexandretaz
Copy link

Guys Needs Help for this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't work anymore because API v1.3 is deprecated
6 participants