Comments (5)
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.
@prashant-earth try commenting this line https://github.com/ActiveCampaign/activecampaign-api-php/blob/master/includes/Connector.class.php#L205
from activecampaign-api-php.
@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.
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.
@dieend Ok, thanks!
from activecampaign-api-php.
Related Issues (20)
- An unespected problem occurred with the api HOT 1
- Address api endpoint HOT 2
- Date custom field HOT 12
- Your session has expired. Please login again. HOT 6
- No support for tasks HOT 2
- Coonect a store via API
- composer install says Nothing to install or update HOT 1
- Docs HOT 2
- Search User by First Name
- Create contact with Address and Address2 values HOT 2
- Bom characters in response as exception
- Don't disable TLS verification by default
- Changing versions breaks url_base property in ActiveCampaign class
- contact/sync width custom checkbox field.
- using api to send email with template HOT 1
- version 3 support? HOT 7
- Api v3
- API Wrapper not working with PHP 8.1.11 HOT 1
- Get all contacts of a tag
- Repository hasn't been updated since Dec 7, 2017
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activecampaign-api-php.