Code Monkey home page Code Monkey logo

activecampaign-v3-php's Issues

Error psr-4 case sensitive

Hello, I'm was struggling with an error with the namespaces, in my mac environment works fine the package but when I upload it to my server with Linux the namespaces was not working. So I renamed the folders to case-sensitive form from lists to Lists for example.

Are you agree of that?

How I can get error information?

Hi I have some problem. On the local PC its work fine. But when I opload to server its not working.
I try to find error. But I don't see it.
Where I can get information about it.

suggestion : get tags for a contact

    public function listTags(int $id)
    {
        $req = $this->client
            ->getClient()
            ->get('/api/3/contacts/' . $id . '/contactTags' );

        return $req->getBody()->getContents();
    }

Client Class not found

First of all thank you for making this wrapper.
The issue that I'm facing is which ever class object I'm trying to intialize from the sdk I get the class not found error except for the Client.php class.
The issue can be resolved by matching the directory name and the class namespace.
e.g namespace Mediatoolkit\ActiveCampaign\Contacts;
should be namespace Mediatoolkit\ActiveCampaign\contacts;

namespace Mediatoolkit\ActiveCampaign\Deals;
should be namespace Mediatoolkit\ActiveCampaign\deals;

Psr-4 error

Hi, news about psr-4 autoloading standard ? i'm Still get that error

Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Contacts\Contacts located in ./vendor/mediatoolkit/activecampaign-v3-php/src/contacts/Contacts.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Organizations\Organizations located in ./vendor/mediatoolkit/activecampaign-v3-php/src/organizations/Organizations.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Tracking\SiteTracking located in ./vendor/mediatoolkit/activecampaign-v3-php/src/tracking/SiteTracking.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Tracking\EventTracking located in ./vendor/mediatoolkit/activecampaign-v3-php/src/tracking/EventTracking.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Tags\Tags located in ./vendor/mediatoolkit/activecampaign-v3-php/src/tags/Tags.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Lists\Lists located in ./vendor/mediatoolkit/activecampaign-v3-php/src/lists/Lists.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Mediatoolkit\ActiveCampaign\Deals\Deals located in ./vendor/mediatoolkit/activecampaign-v3-php/src/deals/Deals.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

Wrong API url

Contacts.php#321 should be /api/3/contactAutomations/'

Suggestion : Search On email

Can you add the findEmail function ?

    public function findEmail(string $email)
    {
        $req = $this->client
            ->getClient()
            ->get('/api/3/contacts/?search=' . $email);

        return $req->getBody()->getContents();
    }

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.