Code Monkey home page Code Monkey logo

Comments (5)

mthommes avatar mthommes commented on July 23, 2024

Hi, we already provide a debugging mechanism that outputs the full request details. Just do this before calling api():

$ac->debug = true;

Otherwise, anywhere in Connector.class.php you can output debug statements like this:

$this->dbg("my debug stuff");

Hope that helps!

from activecampaign-api-php.

dieend avatar dieend commented on July 23, 2024

@prashant-earth try commenting this line https://github.com/ActiveCampaign/activecampaign-api-php/blob/master/includes/Connector.class.php#L205

from activecampaign-api-php.

prashant-earth avatar prashant-earth commented on July 23, 2024

@dieend Instead of commenting that line can you make following change to the library so that the change is hosted at activecampaign library itself and does not get removed with composer updates.
And it will be available to everyone.

This fix will NOT send headers when the invocation is from Command Line Interface.

    $php_sapi = php_sapi_name();
    if($php_sapi !== 'cli'){ 
        header("HTTP/1.1 " . $http_code);
    }

from activecampaign-api-php.

dieend avatar dieend commented on July 23, 2024

I've actually done that before commenting here. See #30 @prashant-earth You can vote there to make this repo maintainer merge it.

from activecampaign-api-php.

prashant-earth avatar prashant-earth commented on July 23, 2024

@dieend Ok, thanks!

from activecampaign-api-php.

Related Issues (20)

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.